From 05a1f77b4b7154720501da007c9385b590189813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Tue, 18 May 2010 06:16:23 +0000 Subject: [PATCH] cli/history: Pass -K option to less This causes less to exit cleanly when an interrupt character is typed. BUG:FIXED:12947 --- pisi/cli/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/cli/history.py b/pisi/cli/history.py index 23742833..eea314b9 100644 --- a/pisi/cli/history.py +++ b/pisi/cli/history.py @@ -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):