Sun, Nov 10 2002
10:15:23
|
|
Request created by guest
|
|
Subject: don't ignore C-z suspend in many forms
Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0pre1
many grass programs ignore C-z, the suspend char, for no good reason, during,
e.g. a form filling out session. Yes, some of us might still prefer to
use the C-z to do some quick shell commands [with the grass envronment] rather
than
start another window with their window manager.
At least d.3d ignores C-z. |
|
Sun, Nov 10 2002
11:01:21
|
|
Mail sent by glynn.clements@virgin.net
|
|
Return-Path |
<glynn.clements@virgin.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn.clements@virgin.net>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<15822.11641.29972.476491@cerise.nosuchdomain.co.uk>
|
Date |
Sun, 10 Nov 2002 09:57:13 +0000
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #1407] (grass) don't ignore C-z suspend in many forms
|
In-Reply-To |
<20021110091523.9BF3D13ABE@lists.intevation.de>
|
References |
<20021110091523.9BF3D13ABE@lists.intevation.de>
|
X-Mailer |
VM 6.94 under 21.4 (patch 10) "Military Intelligence" XEmacs Lucid
|
X-Spam-Status |
No, hits=-11.6 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01 version=2.41
|
X-Spam-Level |
|
Request Tracker wrote:
> Subject: don't ignore C-z suspend in many forms
> many grass programs ignore C-z, the suspend char, for no good reason, during,
> e.g. a form filling out session. Yes, some of us might still prefer to
> use the C-z to do some quick shell commands [with the grass envronment] rather
than
> start another window with their window manager.
All programs which use the vask library will behave this way, as
V_init() calls raw(), which causes the signalling codes (Ctrl-C,
Ctrl-Z etc) to be passed through to the application rather than
generating signals.
There are four plausible approaches:
1. Leave as is.
2. Don't call raw(); Ctrl-C will then (typically) generate SIGINT,
which would need to be caught. Ctrl-Z will (typically) generate
SIGTSTP, which will suspend the program; however, it is necessary to
suspend curses first (so that the terminal is usable), and resume
curses and refresh the screen upon resumption (SIGCONT). I say
"typically", because the exact codes which generate the signals can be
user configured, e.g. via stty.
3. Call raw(), but have the application explicitly handle code 26
(Ctrl-Z), similar to the handling of code 3 (Ctrl-C).
4. Similar to the previous option, but use tcgetattr(), gtty() or
ioctl(TCGETA) to read the terminal configuration rather than assuming
Ctrl-C -> SIGINT, Ctrl-Z -> SIGTSTP etc.
--
Glynn Clements <glynn.clements@virgin.net>
|
|
Tue, Jun 19 2007
12:47:25
|
|
Status changed to stalled by hbowman
|
|
Tue, Jun 19 2007
12:47:25
|
|
Comments added by hbowman
|
|
lib/vask is used less and less, and AFAIK will be retired for GRASS 7.
so not much motivation to fix this one.
Hamish
|
|