[OmniOS-discuss] OmniOS 151014: questions about locale settings and vi editing command's issues.

Davide Poletto davide.poletto at gmail.com
Thu Apr 16 09:51:58 UTC 2015


Hello list,

I did a fresh OmniOS 151014 install, during setup I set Timezone to my time
zone (which is "Europe/Rome" because the server is going to be used in
Italy) and physical Keyboard layout to Italian (I selected Keyboard Layout
as 21 "Italian" when the default one is 47 "US-English") as per installer's
requests.

Now I've a question which is mostly related to the vi usage and was valid
with every OmniOS versions I tested so far: I never been able to use vi
editor in OmniOS as I do (entering editing mode, writing characters,
deleting ones, etc.) in Linux because it seems it doesn't recognize any
expected key combinations.

Is it possible that I have a general issue with my locale settings and so
the vi editor doesn't recognize properly any command I execute (and
sequence of those commands like ESC+a to insert or ESC+Shift+: to go to
vi's prompt for saving, quitting, etc.)?

I noticed that not all my Italian keyboard's keys are printed out (or
recognized at all) on the OmniOS's shell.

As example, all the accent characters like "è", "é", "ì", "ù", "à" or "°"
are not recognized and the Numerical Keypad available on the right, when
disabled via the Bloc Num key, provide this strange keys mapping:

1 goes to a string's end
2 shows next commands, if any in Shell history
3 prints "z"
4 moves the cursor left along a string if this one was written on the prompt
5 prints "z"
6 moves the cursor right along a string if this one was written on the
prompt
7 goes to a string's start
8 shows previous commands, if any in Shell history
9 prints "z"
/ prints "z"
* prints "z"
- prints "4z"
+ prints "3z"
Enter prints "0z"
. prints "9z"
0 prints "7z"

which is somewhat curious.

Just for reference (as OmniOS's root) below what my OmniOS reports:

*kbd -l*

type=6
layout=14 (0x0e)
delay(ms)=500
rate(ms)=40

*cat /etc/default/init*

TZ="Europe/Rome"
CMASK=022

*locale*

LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=

*locale -a|grep "it_IT"*

it_IT.ISO8859-15
it_IT.UTF-8

Could anybody provide me some help with that?

Simple tasks like editing the /etcvssh/sshd_config to enable SSH Root
access or editing the "omnios_zpool_install.pl" script (during the OmniOS
install phase) is and was always an hard task with vi on OmniOS!

Thanks, Davide.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20150416/bd014828/attachment.html>


More information about the OmniOS-discuss mailing list