Mail Archives: cygwin/2009/06/10/12:31:23
2009/6/10 Dave Korn:
> Corinna Vinschen wrote:
>
>> What's new in contrast to 1.7.0-48
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>
>> - When running Cygwin applications in the Windows console window, the
>> =C2=A0 Backspace key now returns ASCII DEL (^?, \177) instead of ASCII BS
>> =C2=A0 (^H, \008). =C2=A0The Control-Backspace key now returns ESC-DEL (=
^[^?,
>> =C2=A0 \033\177) or \377, dependent on the meta mode set by the setmetam=
ode
>> =C2=A0 utility, rather than DEL. =C2=A0Control-Space now returns ASCII N=
UL.
>> =C2=A0 These changes should running emacs in a console window support be=
tter
>> =C2=A0 and improve compatibility with the Linux Console and xterm.
>
> =C2=A0This has some unexpected results for me. =C2=A0Starting up a shell =
(DOS console,
> notty) everything behaves as before. =C2=A0After 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] =3D CERASE;
+ tc->ti.c_cc[VERASE] =3D 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=3D^H, kcub1=3D\E[D, kcud1=3D\E[B, kcuf1=3D\E[C, kcuu1=3D\E[A,
+ kbs=3D^?, kcub1=3D\E[D, kcud1=3D\E[B, kcuf1=3D\E[C, kcuu1=3D\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/
- Raw text -