[<prev] [next>] [day] [month] [year] [list]
Message-ID: <475561E7.80304@skyrush.com>
Date: Tue, 04 Dec 2007 07:19:19 -0700
From: Joe Peterson <joe@...rush.com>
To: linux-kernel@...r.kernel.org
Subject: [PATCH] echo ctrl characters on INTR/QUIT/SUSP
The stty setting, "echoctl", directs the tty to echo control characters
as a normal letter prefixed by "^" (such as "^C" for the default INTR
setting). Linux does not currently echo for the INTR/QUIT/SUSP signals,
whereas all other "unix" variants I have used over the years do, to my
recollection anyway (I recently tested: Solaris, BSD, Mac OS X). I find
this a really nice feature, since it becomes very clear at a glance that
a terminal process was interrupted explicitly rather than finishing
normally (when I am running many things in different windows, it's nice
to verify which ones I interrupted). It's just nice to see that echo
for positive feedback, and it seems to be standard OS behavior.
If you try this patch and don't see the echo, make sure echoctl is on
("stty echoctl"). I have applied this patch to 2.6.22 in my tests. I
welcome feedback, as I have not seen this issue addressed before.
Please cc me at my address above on replies.
Thanks, Joe
View attachment "gentoo-sources-2.6.22-echoctl.patch" of type "text/plain" (337 bytes)
Powered by blists - more mailing lists