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:
Fatih Aşıcı
2010-05-18 06:16:23 +00:00
parent 0cf8cc6e7c
commit 05a1f77b4b
+1 -1
View File
@@ -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):