DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th December 2015
dirty_hammer dirty_hammer is offline
New User
 
Join Date: Dec 2015
Posts: 6
Default Vi keyboard mapping??

I just accomplished (after few days of trying) installing NetBSD on my MacBook. I tired to use vi to configure WiFi but, even though the keyboard seems to work fine otherwise, when i try press the esc, delete and some other keys i get funny marks instead.
How do i fix it.
__________________
____________________________
Voy
MacBook 2,1
NetBSD 7.0 amd64/ OS X 10.7.5
Reply With Quote
  #2   (View Single Post)  
Old 18th December 2015
dirty_hammer dirty_hammer is offline
New User
 
Join Date: Dec 2015
Posts: 6
Default

So i figured stty can help.

erase stands for delete it seems, but what stands for esc?
__________________
____________________________
Voy
MacBook 2,1
NetBSD 7.0 amd64/ OS X 10.7.5
Reply With Quote
  #3   (View Single Post)  
Old 19th December 2015
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,500
Default

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?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #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
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ddb and USB keyboard tcleamy OpenBSD General 6 16th October 2011 05:37 PM
New keyboard fossala General Hardware 18 1st September 2011 09:03 AM
How to change keyboard key? newbsdied OpenBSD General 5 7th November 2010 02:45 AM
Keyboard Layout mfaridi FreeBSD General 6 26th June 2008 07:13 PM
Keyboard delboy FreeBSD Installation and Upgrading 2 23rd May 2008 05:55 PM


All times are GMT. The time now is 09:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick