View Single Post
  #4   (View Single Post)  
Old 19th December 2015
dirty_hammer dirty_hammer is offline
New User
 
Join Date: Dec 2015
Posts: 6
Default That actually helped:)

Quote:
Originally Posted by J65nko View Post
I don't think I can help you. But which vi are you using? vi or Vim?
On the console or in X Window (which desktop environment)?

Don't know this is useful, bu with OpenBSD in X the output of $ stty -a :
Code:
speed 38400 baud; 38 rows; 92 columns;
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
        -extproc -xcase
iflags: -istrip icrnl -inlcr -igncr -iuclc ixon -ixoff ixany imaxbel
        -ignbrk brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl -onocr -onlret -olcuc oxtabs -onoeot
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>; eol2 = ^@;
        erase = ^?; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\;
        reprint = ^R; start = ^Q; status = <undef>; stop = ^S; susp = ^Z;
        time = 0; werase = ^W;
Some quite old Linux sources that describe keyboard mapping:
http://www.tldp.org/HOWTO/Keyboard-a...OWTO.html#toc5
http://www.ibb.net/~anne/keyboard/keyboard.html

Could it be that you configured NetBSD to use a French keyboard layout, and that is causing these issues?
I used vi both on the console and in X (twm) and in both cases the delete and esc keys seemed to work fine until i entered the insert mode (:a). Then when i pressed esc i'd get ^[ and delete would give me ^H but only on the console. in X vi would recognize the delete key correctly. And it acted the same with various chosen keyboard layouts.

Actually both keys acted the same way when i booted from the installation CD.

FIX:
stty erase ^H made the delete key work as it should.
stty intr ^[ fixed the esc key.
__________________
____________________________
Voy
MacBook 2,1
NetBSD 7.0 amd64/ OS X 10.7.5
Reply With Quote