Getting backspace to work with RXVT/Eterm/konsole/etc

View: New views
11 Messages — Rating Filter:   Alert me  

Getting backspace to work with RXVT/Eterm/konsole/etc

by Bugzilla from giles@spacepigs.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

I'm having difficulty getting cone to detect my backspace key.  Has anyone
managed to get cone to work with a term such as RXVT or Eterm without
changing the behavior of the backspace to emit '^H'?

My backspace key currently emits '^?' which is correct, but only hitting
ctrl-H in cone seems to delete backwards.

In rxvt, I have the TERM variable set to "rxvt", and I have this in my termcap
database.  I've tried changing it to "ansi" and things, but with no effect.  
All other apps I have used with this terminal detect backspace correctly.

Incidentally, a standard 'xterm' works, but only because backspace produces a
'^H', which breaks all sorts of other apps.

Any help would be much appreciated.

Thanks,

Giles


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-cone mailing list
Courier-cone@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone

Re: Getting backspace to work with RXVT/Eterm/konsole/etc

by Sam Varshavchik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Giles writes:

> In rxvt, I have the TERM variable set to "rxvt", and I have this in my termcap

Cone does not use termcap.  Cone uses terminfo.




attachment0 (198 bytes) Download Attachment

Re: Getting backspace to work with RXVT/Eterm/konsole/etc

by Bugzilla from giles@spacepigs.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 25 April 2006 23:32, Sam Varshavchik wrote:
> Giles writes:
> > In rxvt, I have the TERM variable set to "rxvt", and I have this in my
> > termcap
>
> Cone does not use termcap.  Cone uses terminfo.

Sorry, I meant terminfo.  Regardless, cone doesn't appear to work out of the
box with rxvt (also out of the box) or Eterm.  Do you know of a setting which
will cause it to detect backspace correctly?


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-cone mailing list
Courier-cone@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone

Re: Getting backspace to work with RXVT/Eterm/konsole/etc

by Bugzilla from giles@spacepigs.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 26 April 2006 10:19, I wrote:
>
> Sorry, I meant terminfo.  Regardless, cone doesn't appear to work out of
> the box with rxvt (also out of the box) or Eterm.

Or gnome-terminal, or aterm, or konsole, or wterm, or xvt.  It works in the
linux console, and with an out of box xterm, both of which default to
emitting '^H' from the backspace key unless configured otherwise, at which
point, cone breaks there too.

Do I need to set any environment variables?

"stty -a" output for most terminals:

[snip]
        intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 =
<undef>; swtch = <undef>;
[/snip]


output for xterm (which uses '^H' incorrectly):

[snip]
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>; eol2 =
<undef>; swtch = <undef>;
[/snip]



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-cone mailing list
Courier-cone@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone

Re: Getting backspace to work with RXVT/Eterm/konsole/etc

by Sam Varshavchik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Giles writes:

> On Tuesday 25 April 2006 23:32, Sam Varshavchik wrote:
>> Giles writes:
>> > In rxvt, I have the TERM variable set to "rxvt", and I have this in my
>> > termcap
>>
>> Cone does not use termcap.  Cone uses terminfo.
>
> Sorry, I meant terminfo.  Regardless, cone doesn't appear to work out of the
> box with rxvt (also out of the box) or Eterm.  Do you know of a setting which
> will cause it to detect backspace correctly?
Cone uses the terminfo to process keys.  You need to fix your terminfo
configuration.




attachment0 (198 bytes) Download Attachment

Re: Getting backspace to work with RXVT/Eterm/konsole/etc

by Sam Varshavchik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Giles writes:

> On Wednesday 26 April 2006 10:19, I wrote:
>>
>> Sorry, I meant terminfo.  Regardless, cone doesn't appear to work out of
>> the box with rxvt (also out of the box) or Eterm.
>
> Or gnome-terminal, or aterm, or konsole, or wterm, or xvt.  It works in the

Works fine for me on gnome-terminal.




attachment0 (198 bytes) Download Attachment

Re: Getting backspace to work with RXVT/Eterm/konsole/etc

by Bugzilla from giles@spacepigs.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 26 April 2006 11:46, Sam Varshavchik wrote:
>
> Cone uses the terminfo to process keys.  You need to fix your terminfo
> configuration.

Any ideas where to start?  It works with absolutely everything else, and doing
a quick test, hitting backspace definately produces the correct symbol.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-cone mailing list
Courier-cone@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone

Re: Getting backspace to work with RXVT/Eterm/konsole/etc

by Bugzilla from giles@spacepigs.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 26 April 2006 11:47, Sam Varshavchik wrote:
>
> Works fine for me on gnome-terminal.

Really?  What's your output from "stty -a"?  (particularly the 'erase' bit..)


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-cone mailing list
Courier-cone@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone

Re: Getting backspace to work with RXVT/Eterm/konsole/etc

by Bugzilla from giles@spacepigs.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 26 April 2006 12:13, Giles Constant wrote:
> On Wednesday 26 April 2006 11:47, Sam Varshavchik wrote:
> > Works fine for me on gnome-terminal.
>
> Really?  What's your output from "stty -a"?  (particularly the 'erase'
> bit..)

And also under "compatibility" under "edit->current profile", what do you have
next to "Backspace key generates"?

I have "ASCII DEL", which is the default.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-cone mailing list
Courier-cone@...
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone

Re: Getting backspace to work with RXVT/Eterm/konsole/etc

by Sam Varshavchik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Giles Constant writes:

> On Wednesday 26 April 2006 11:47, Sam Varshavchik wrote:
>>
>> Works fine for me on gnome-terminal.
>
> Really?  What's your output from "stty -a"?  (particularly the 'erase' bit..)

[mrsam@laptop ~]$ stty -a
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 =
M-^?;
start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff
-iuclc ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke




attachment0 (198 bytes) Download Attachment

Re: Getting backspace to work with RXVT/Eterm/konsole/etc

by Sam Varshavchik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Giles writes:

> On Wednesday 26 April 2006 12:13, Giles Constant wrote:
>> On Wednesday 26 April 2006 11:47, Sam Varshavchik wrote:
>> > Works fine for me on gnome-terminal.
>>
>> Really?  What's your output from "stty -a"?  (particularly the 'erase'
>> bit..)
>
> And also under "compatibility" under "edit->current profile", what do you have
> next to "Backspace key generates"?
>
> I have "ASCII DEL", which is the default.
Same here.

Also: Delete key generates: escape sequence.




attachment0 (198 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price!