Vincent Lefevre wrote: > > On Fri, Oct 25, 2002 at 18:26:37 +1000, Russell wrote: > > Are you using xterm? I'd try comparing your local config files > > on both machines, and any relevant global config files in /etc > > and in /etc/X11/app-defaults/XTerm. > > Hmm... Finally, it doesn't work with zsh either on the RedHat machine. > I don't know if I mixed up with bash or if this was due to some > experiments I did yesterday with uxterm and X resources.
I'm assuming TERM="xterm". Type: echo -ne "\e[c" and see what numbers are returned in both terminals. > But anyway, the escape sequences are not the same. > * Xterm on RedHat: ^[[H and ^[[F The terminal is set for "normal cursor keys" (DECCKM). Set it to "application cursor keys". Type: echo -ne "\e[?1h" You could also start a new xterm: xterm -xrm "*xterm*appcursorDefault: true" > * Xterm on Debian: ^[[1~ and ^[[4~ I just can't get that mode in my xterm. If you can get the redhat one to work, then you could compare the config files to the debian one. > > Are they both correct? > > I have other terminals that give either ^[[H / ^[[F or ^[[1~ / ^[[4~. > And rxvt gives ^[[7~ / ^[[8~ (but these ones don't even work in bash). > But all of this seems to be related with the terminfo databases, which > may be different. > > -- > Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> - 100% > validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International > des Jeux Mathématiques et Logiques, TETRHEX, etc. > Work: CR INRIA - computer arithmetic / SPACES project at LORIA > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]