Red Hat Bugzilla – Bug 13281
backspace in vi inserts ^?
Last modified: 2017-05-21 14:44:43 EDT
When editing files after upgrading from 6.2 to beta 2 vi does not behave
properly. Backspace will insert a ^?. By using the delete key I can delete
characters in front of the cursor. This happens both in insert mode and
when trying to perform a search (/<text>).
I can reproduce this only when running in screen as root... Seems to be a screen
problem (or a problem with the screen termcap entry?).
*** This bug has been marked as a duplicate of 11294 ***
It seems that the terminfo/termcap entry for 'screen' says
that 'kbs' is ^H. The man page for screen also says that
screen will convert the 'kbs' char of the "real" ( "physical" )
terminal to ^H. But when I run screen on VT1 it translates
'kbs' ( which is ^? on real VT1 ) to ^? in screen.
This causes problems with all programs that respect terminfo/termcap
and expect ^H.
More details ; the man page says that one of the default keybindings
is "bindkey -k kbs ^H" , but when I run screen and give it a
"bindkey" command, the 'kbs' binding is not listed; not in the default,
user or application listing.
I also tried the original screen sources and it behaves the same.
It is either a screen program bug or a bug in the documentation
( and in the terminfo entry ).
Commit pushed to master at https://github.com/openshift/origin
Merge pull request #14158 from soltysh/issue13281
Merged by openshift-bot