Unable to use the regular keyboard

Hi,

I am new to solaris environment.While editing in vi editor i am unable to use regular key board keys.I think it is taking sun keyboard values as default.

I have installed solaris 10 through vmware workstation in windows machine.
I have also tried changing /etc/default/kbd file.but it is not working.

Could you please help me to change the keyboard ?

when you will use vi,

you should use some special keys in keyboard.
for example

for insert you have to press "i" first.
when you need to change something you have press r
to delete line press d .... keep going like this....

check the below line for more help

vi Editor Commands

1 Like

vi was not designed for a regular keyboard. vi was designed for this, and retains the resulting weird key-combos to this day.

1 Like

For Solaris 10 you must first use UTF-8 to display multibyte characters like this

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_ALL=

If you didn't set UTF-8 than as root execute

sys-unconfig

Follow screen instructions and set locale as north american UTF-8, when PC reboots log in and then using following command load your keyboard layout

which setxkbmap
/usr/X11/bin/setxkbmap

To load keyboard layout

/usr/X11/bin/setxkbmap <xy> 
1 Like

Please tell us what sort of terminal you are using (in some detail), and the value of $TERM , $EDITOR and $VISUAL (not all may be set).
The keyboard mapping for vi is normally handled through map parameters in a custom .exrc file in your home directory. See man ex .

1 Like

Try the following commands out, and let us know if vi editor becomes more user-friendly:

#TERM=vt100 ; export TERM
#EDITOR=vi ; export EDITOR
#clear

Cheers
Momin

1 Like