This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-49


2009/6/10 Dave Korn:
> Corinna Vinschen wrote:
>
>> What's new in contrast to 1.7.0-48
>> ===================================
>>
>> - When running Cygwin applications in the Windows console window, the
>> Â Backspace key now returns ASCII DEL (^?, \177) instead of ASCII BS
>> Â (^H, \008). ÂThe Control-Backspace key now returns ESC-DEL (^[^?,
>> Â \033\177) or \377, dependent on the meta mode set by the setmetamode
>> Â utility, rather than DEL. ÂControl-Space now returns ASCII NUL.
>> Â These changes should running emacs in a console window support better
>> Â and improve compatibility with the Linux Console and xterm.
>
> ÂThis has some unexpected results for me. ÂStarting up a shell (DOS console,
> notty) everything behaves as before. ÂAfter running "stty sane", the backspace
> key now starts printing ^? symbols instead of backspacing.

The rtermios default setting will need to change accordingly,
either by changing the definition of CERASE in include/sys/termios.h:

-#define CERASE CTRL('H')
+#define CERASE CDEL

Or by changing the initialisation in fhandler_termios.c:

-      tc->ti.c_cc[VERASE]      = CERASE;
+      tc->ti.c_cc[VERASE]      = CDEL;

The cygwin section in /etc/termcap doesn't have a kb entry, so luckily
no change needed there.

terminfo has an entry for backspace though:

$ tput -T cygwin kbs | cat -v
^H

So this has to to change as well:

+++ terminfo.src        2009-05-30 07:50:44.893933600 +0100
@@ -5221,7 +5221,7 @@
-       kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
+       kbs=^?, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,

And then there are rxvt and xterm and their termcap and terminfo
entries as well ...

Andy

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]