cli/history: Pass -K option to less
This causes less to exit cleanly when an interrupt character is typed. BUG:FIXED:12947
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ Lists previous operations.""")
|
||||
class LessPipe():
|
||||
def __init__(self):
|
||||
import subprocess
|
||||
self.less = subprocess.Popen(["less", "-"],
|
||||
self.less = subprocess.Popen(["less", "-K", "-"],
|
||||
stdin=subprocess.PIPE)
|
||||
|
||||
def __del__(self):
|
||||
|
||||
Reference in New Issue
Block a user