mit-scheme-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MIT-Scheme-devel] tty interrupt characters


From: Taylor R Campbell
Subject: [MIT-Scheme-devel] tty interrupt characters
Date: Mon, 11 Apr 2011 00:46:52 +0000
User-agent: IMAIL/1.21; Edwin/3.116; MIT-Scheme/9.1

When I use Scheme in batch mode, e.g. from `make' or shell scripts,
it's confusing that the tty interrupt characters change for a non-
interactive program: since my terminal is set up to deliver SIGINT on
^C, I expect ^C to interrupt the foreground process group -- not make
everything dump core and leave temporary files lying around, which is
what happens (as intended) when the process group receives SIGQUIT.

I could change the microcode not to set up the tty interrupt
characters by default, and have Edwin, and perhaps the REPL, do it
explicitly so that ^G does the right thing in Edwin.

I could change the logic in uxtop.c to decide that --batch-mode
without --interactive implies non-interactive, irrespective of whether
any of stdin, stdout, or stderr is a tty.

Opinions?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]