Keyboard problems

Randall R Schulz rrschulz@cris.com
Thu Aug 22 15:23:00 GMT 2002


Joe,

And as I have recently learned, the "tty" option in the CYGWIN environment 
variable is a rather "fine-grained" attribute, so even if you don't 
generally (like to) run with the tty option set, you can invoke Emacs thusly:

CYGWIN="tty $CYGWIN" emacs

And have the tty mode apply only to Emacs.

However, when you exit emacs, the tty driver is out of kilter (perhaps it's 
the readline library that's out of kilter w.r.t. the tty driver, I don't 
really know). To resolve this issue, something like this in your 
"~/.bashrc" might work well for everyday use:

EMACS="$(which emacs)"
emacs() {
         TTY_MODES="$(stty -g)"
         CYGWIN="tty $CYGWIN" "$EMACS" "$@"
         stty "$TTY_MODES"
}


By the way, Joe, is the "binmode" essential to resolving Tim's problem? I 
use binmode routinely, but is it relevant to the problem with Emacs 
sequences that include CTRL-C or other signal-generating keys when "tty" is 
not set?


Randall Schulz
Mountain View, CA USA


At 12:48 2002-08-22, Joe Buehler wrote:
>Tim Chartier wrote:
>
>>Later, I ran emacs and it did not understand C-x C-c to exit.
>
>Set a system environment variable CYGWIN on your Windows machine
>with value "tty binmode" (no quotes).
>
>Joe Buehler


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list