While in centos3, using vim and clicking the backspace I see the ^? character instead of it actually deleteing the previous character.
In centos4 this was not a problem.
I have rad about remapping keys and such, but can someone tell me what the difference between centos4 and centos3 is so I can make the change to make it work on centos3.
On 11/30/05, Robin Mordasiewicz robin@bullseye.tv wrote:
While in centos3, using vim and clicking the backspace I see the ^? character instead of it actually deleteing the previous character.
In centos4 this was not a problem.
I have rad about remapping keys and such, but can someone tell me what the difference between centos4 and centos3 is so I can make the change to make it work on centos3.
This isn't a problem with centos3, but rather with your terminal emulator. How are you accessing the system?
-- Jim Perrin System Architect - UIT Ft Gordon & US Army Signal Center
Try:
TERM=vt100;export TERM
usefull when connecting via telnet from MS telnet program.... (the old days...)
P.
Jim Perrin wrote:
On 11/30/05, Robin Mordasiewicz robin@bullseye.tv wrote:
While in centos3, using vim and clicking the backspace I see the ^? character instead of it actually deleteing the previous character.
In centos4 this was not a problem.
I have rad about remapping keys and such, but can someone tell me what the difference between centos4 and centos3 is so I can make the change to make it work on centos3.
This isn't a problem with centos3, but rather with your terminal emulator. How are you accessing the system?
-- Jim Perrin System Architect - UIT Ft Gordon & US Army Signal Center _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Ps:
If
TERM=vt100; export TERM
works, you can make in permanent by adding it to /etc/profile
do a source profile
to implement it straight away...if you add it to /etc/profile
Note: this will make it global for all subsequent users... P.
Jim Perrin wrote:
On 11/30/05, Robin Mordasiewicz robin@bullseye.tv wrote:
While in centos3, using vim and clicking the backspace I see the ^? character instead of it actually deleteing the previous character.
In centos4 this was not a problem.
I have rad about remapping keys and such, but can someone tell me what the difference between centos4 and centos3 is so I can make the change to make it work on centos3.
This isn't a problem with centos3, but rather with your terminal emulator. How are you accessing the system?
-- Jim Perrin System Architect - UIT Ft Gordon & US Army Signal Center _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 11/30/05, Peter Farrow peter@farrows.org wrote:
Ps:
If
TERM=vt100; export TERM
works, you can make in permanent by adding it to /etc/profile
do a source profile
to implement it straight away...if you add it to /etc/profile
Note: this will make it global for all subsequent users... P.
Bad advice.
1. it doesn't solve the problem, it only masks the symptoms. 2. It's global for all users, when it may just be affecting one with a bad terminal emulator 3. a vt100 term type is the lowest common denominator, and will most likely cause other modern keystrokes to become erratic.
Proper solution is to fix the terminal emulator. This is seen in a number of things from misconfigured versions of putty on windows, to poorly compiled versions of Eterm on linux, to iTerm or whatever it is on osX these days claiming to be something it's not (rxvt instead of xterm etc)
-- Jim Perrin System Architect - UIT Ft Gordon & US Army Signal Center
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
That is no good. You will loose functionality.
Better use:
stty erase ^V<BACKSPACE>
Meantion: CONTROL+V followed by a Backspace.
[]s
On Wed, Nov 30, 2005 at 04:49:48PM +0000, Peter Farrow wrote:
Ps:
If
TERM=vt100; export TERM
works, you can make in permanent by adding it to /etc/profile
do a source profile
to implement it straight away...if you add it to /etc/profile
Note: this will make it global for all subsequent users... P.
Jim Perrin wrote:
On 11/30/05, Robin Mordasiewicz robin@bullseye.tv wrote:
While in centos3, using vim and clicking the backspace I see the ^? character instead of it actually deleteing the previous character.
In centos4 this was not a problem.
I have rad about remapping keys and such, but can someone tell me what the difference between centos4 and centos3 is so I can make the change to make it work on centos3.
This isn't a problem with centos3, but rather with your terminal emulator. How are you accessing the system?
-- Jim Perrin System Architect - UIT Ft Gordon & US Army Signal Center _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
- -- Rodrigo Barbosa rodrigob@suespammers.org "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
On Wed, 30 Nov 2005, Jim Perrin wrote:
On 11/30/05, Robin Mordasiewicz robin@bullseye.tv wrote:
While in centos3, using vim and clicking the backspace I see the ^? character instead of it actually deleteing the previous character.
In centos4 this was not a problem.
I have rad about remapping keys and such, but can someone tell me what the difference between centos4 and centos3 is so I can make the change to make it work on centos3.
This isn't a problem with centos3, but rather with your terminal emulator. How are you accessing the system?
I connect with Putty, and then I execute "screen -D -R" from my screen session I ssh to my boxes.
from the box I run vim on...
[root@smtcorav02 SPECS]# echo $TERM screen
Should I be adding a termcap for screen or something ?
On Nov 30, 2005, at 11:53 AM, Robin Mordasiewicz wrote:
On Wed, 30 Nov 2005, Jim Perrin wrote:
On 11/30/05, Robin Mordasiewicz robin@bullseye.tv wrote:
While in centos3, using vim and clicking the backspace I see the ^? character instead of it actually deleteing the previous character.
In centos4 this was not a problem.
I have rad about remapping keys and such, but can someone tell me what the difference between centos4 and centos3 is so I can make the change to make it work on centos3.
This isn't a problem with centos3, but rather with your terminal emulator. How are you accessing the system?
I connect with Putty, and then I execute "screen -D -R" from my screen session I ssh to my boxes.
from the box I run vim on...
[root@smtcorav02 SPECS]# echo $TERM screen
Should I be adding a termcap for screen or something ? _______________________________________________
If you type stty -a at your remote login, it will tell you what character is being interpreted as erase. I'm guessing, that it is set to ^H, but putty has set your erase character to ^?. So there is a mismatch.
I don't have putty, but I bet you can set it in the terminal emulation preferences. Or alternatively you can set it at your remote session with the command stty erase YOURCHOICE
where YOURCHOICE is probably ^H (literally ^ and H)
Tony
On Wed, 30 Nov 2005, Tony Schreiner wrote:
On Nov 30, 2005, at 11:53 AM, Robin Mordasiewicz wrote:
On Wed, 30 Nov 2005, Jim Perrin wrote:
On 11/30/05, Robin Mordasiewicz robin@bullseye.tv wrote:
While in centos3, using vim and clicking the backspace I see the ^? character instead of it actually deleteing the previous character.
In centos4 this was not a problem.
I have rad about remapping keys and such, but can someone tell me what the difference between centos4 and centos3 is so I can make the change to make it work on centos3.
This isn't a problem with centos3, but rather with your terminal emulator. How are you accessing the system?
I connect with Putty, and then I execute "screen -D -R" from my screen session I ssh to my boxes.
from the box I run vim on...
[root@smtcorav02 SPECS]# echo $TERM screen
Should I be adding a termcap for screen or something ?
If you type stty -a at your remote login, it will tell you what character is being interpreted as erase. I'm guessing, that it is set to ^H, but putty has set your erase character to ^?. So there is a mismatch.
I don't have putty, but I bet you can set it in the terminal emulation preferences. Or alternatively you can set it at your remote session with the command stty erase YOURCHOICE
where YOURCHOICE is probably ^H (literally ^ and H)
It turns out that Putty was the problem. It was wrong of me to deduce that it was a difference in the version of centos.
From within Putty Control Panel
1. expand the menu item "Terminal" 2. highlight "Keyboard" 3. in the option items "Change the sequence keys sent by" 3.1. Under "The Backspace Key", select "Control-H"
Thanks.
--- Tony Schreiner schreian@bc.edu wrote:
On Nov 30, 2005, at 11:53 AM, Robin Mordasiewicz wrote:
On Wed, 30 Nov 2005, Jim Perrin wrote:
On 11/30/05, Robin Mordasiewicz robin@bullseye.tv wrote:
While in centos3, using vim and clicking the backspace I see the ^? character instead of it actually deleteing the previous character.
In centos4 this was not a problem.
I have rad about remapping keys and such, but can someone tell me what the difference between centos4 and centos3 is so I can make the change to make it work on centos3.
This isn't a problem with centos3, but rather with your terminal emulator. How are you accessing the system?
I connect with Putty, and then I execute "screen -D -R" from my screen session I ssh to my boxes.
from the box I run vim on...
[root@smtcorav02 SPECS]# echo $TERM screen
Should I be adding a termcap for screen or something ? _______________________________________________
If you type stty -a at your remote login, it will tell you what character is being interpreted as erase. I'm guessing, that it is set to ^H, but putty has set your erase character to ^?. So there is a mismatch.
I don't have putty, but I bet you can set it in the terminal emulation preferences. Or alternatively you can set it at your remote session with the command stty erase YOURCHOICE
where YOURCHOICE is probably ^H (literally ^ and H)
Tony
For others who may have this problem for other reasons, you can also try:
stty erase '?'
place this in you ~/.profile file or the bash equivalent (we use ksh).
Robin Mordasiewicz robin@bullseye.tv wrote:
I connect with Putty, and then I execute "screen -D -R" from my screen session I ssh to my boxes.
You only see it when in ViM, but not on the command line? Or you see it in both?
If you're only seeing it in ViM, I'm curious why ViM is not handling the termcaps the same as the command line.
Unless you're running GViM (GUI). Then your termcap isn't provided by the same terminal as your command line, but your your X-Server.
-- Bryan
P.S. The "quick fix" to deal with backspace mapping issues on just about any modern UN*X platform is to type: $ stty erase (then hit the backspace key)
On Wed, 2005-11-30 at 12:54 -0800, Bryan J. Smith wrote:
Robin Mordasiewicz robin@bullseye.tv wrote:
I connect with Putty, and then I execute "screen -D -R" from my screen session I ssh to my boxes.
You only see it when in ViM, but not on the command line? Or you see it in both?
If you're only seeing it in ViM, I'm curious why ViM is not handling the termcaps the same as the command line.
Unless you're running GViM (GUI). Then your termcap isn't provided by the same terminal as your command line, but your your X-Server.
-- Bryan
P.S. The "quick fix" to deal with backspace mapping issues on just about any modern UN*X platform is to type: $ stty erase (then hit the backspace key)
Another quick fix and more permanent would be:
PATH=$PATH:/usr/X11R6/bin # Display information about what was just done. # echo Terminal type = $TERM on line `tty` if [ ${DISPLAY:=""} != "" ] then echo "X11 DISPLAY set to $DISPLAY" fi # # Now set up the terminal modes # #stty erase ^h kill ^x intr ^c if stty susp ^z >>/dev/null 2>&1 then echo Job control enabled else echo Job control not available fi