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

2015-04-16 Thread Davide Poletto
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

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

2015-04-16 Thread Davide Poletto
Hi Volker, Yes, physical USB Italian keyboard directly connected to my little HP MicroServer G7 (or G8, no matter). I'm using the default OmniOS Shell...after login: echo $SHELL /usr/bin/bash echo $TERM sun-color They're default, never touched (as the /root/.profile file too). I'm starting

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

2015-04-16 Thread Volker A. Brandt
Hi Davide! 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

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

2015-04-16 Thread Davide Poletto
I will try to set locale so it will report: LANG= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_ALL= even if it will be difficult with my crazy vi editor...and tell you back. Thanks, Davide. On Thu, Apr 16, 2015 at 12:57 PM, Volker A. Brandt v...@bb-c.de wrote:

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

2015-04-16 Thread Davide Poletto
Now locale shows these settings: LANG= LC_CTYPE=it_IT.UTF-8 LC_NUMERIC=it_IT.UTF-8 LC_TIME=it_IT.UTF-8 LC_COLLATE=it_IT.UTF-8 LC_MONETARY=it_IT.UTF-8 LC_MESSAGES=C LC_ALL= On Thu, Apr 16, 2015 at 1:18 PM, Volker A. Brandt v...@bb-c.de wrote: I will try to set locale so it will report:

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

2015-04-16 Thread Davide Poletto
Hi Richard, echo $TERMINFO reports only a blank line on my system. Davide. On Thu, Apr 16, 2015 at 12:53 PM, Richard PALO rich...@netbsd.org wrote: What is TERMINFO? I haven't had much time to really dig into the matter, but I seem to remember although /usr/gnu/lib/terminfo was fine on OI,

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

2015-04-16 Thread Davide Poletto
You mean into /etc/default/init ? OK...I did that by echoing those lines (not the LANG parameter which I left blank as is) and settings it_IT.UTF-8 Now special characters are printed correctly (e.g. ° or à) but vi editor way of input commands is still a true mess: I'm still unable to enter the

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

2015-04-16 Thread Davide Poletto
Hi Volker, I reset the locale via /etc/default/init so the situation is now the initial one with locale that shows: LANG= LC_CTYPE=C LC_NUMERIC=C LC_TIME=C LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C LC_ALL= With these parameters (I suspect with the LC_CTYPE not set to it_IT.UTF-8 as I tested

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

2015-04-16 Thread Volker A. Brandt
I will try to set locale so it will report: LANG= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_ALL= Forget locale. Just set the variables in your bash session. Regards -- Volker -- Volker

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

2015-04-16 Thread Tim Rice
Davide, On Thu, 16 Apr 2015, Davide Poletto wrote: Once vi is launched I'm used to enable the INSERT mode with ESC + a and then start editing (this happens in Linux), in this case if I press ESC + a The way this is written leads me to think you are pressing ESC and a at the same time. Keep

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

2015-04-16 Thread Davide Poletto
Hi Tim, There isn't any difference when I press Esc then a (so no Esc and a at the same time...that's not possible to grant that happens): vi behaviour is abnormal because It doesn't show you that it entered into INSERT mode even if it looks like it has (both directly via locally connected USB

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

2015-04-16 Thread Paul B. Henson
From: Davide Poletto Sent: Thursday, April 16, 2015 2:08 PM Now It behaves like in Linux and Esc then a starts the INSERT mode Yeah, once you get used to vim trying to use plain jane vi can be excruciatingly painful :). If you want it to behave exactly like your favorite linux

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

2015-04-16 Thread Davide Poletto
Hi Tim, On Apr 16, 2015 7:45 PM, Tim Rice t...@multitalents.net wrote: Davide, The way this is written leads me to think you are pressing ESC and a at the same time. Yes, exactly as I do once in vi to enter into its INSERT mode on every Linux I've put my hands on. Yes, in command mode, dd

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

2015-04-16 Thread Paul B. Henson
From: Davide Poletto Sent: Thursday, April 16, 2015 2:52 AM 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

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

2015-04-16 Thread Richard PALO
Le 16/04/15 12:13, Davide Poletto a écrit : Hi Volker, Yes, physical USB Italian keyboard directly connected to my little HP MicroServer G7 (or G8, no matter). I'm using the default OmniOS Shell...after login: echo $SHELL /usr/bin/bash echo $TERM sun-color They're default, never

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

2015-04-16 Thread Davide Poletto
Hi Richard, Here are my settings: OmniOS 5.11 omnios-a708424 April 2015 root@intra:/root# pkg list -a |grep locale|grep it locale/it 0.5.11-0.151014 i-- locale/it-extra 0.5.11-0.151014 i-- root@intra:/root# stty

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

2015-04-16 Thread Paul B. Henson
From: Tim Rice Sent: Thursday, April 16, 2015 10:45 AM Pressing the arrow keys will only do what you expect in command mode. Unless you disable compatibility mode, in which case you can happily navigate with the arrow keys while in edit mode, presumably just as you are used to doing under

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

2015-04-16 Thread Davide Poletto
Hi Paul ~/.vimrc does the trick! Now It behaves like in Linux and Esc then a starts the INSERT mode (at vi's bottom appears the -- INSERT --) and I can move with arrows keys and use Del/Canc as I'm used to. Thanks! On Thu, Apr 16, 2015 at 11:02 PM, Paul B. Henson hen...@acm.org wrote:

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

2015-04-16 Thread Paul B. Henson
From: Davide Poletto Sent: Thursday, April 16, 2015 1:07 PM The way this is written leads me to think you are pressing ESC and a at the same time. Yes, exactly as I do once in vi to enter into its INSERT mode on every Linux I've put my hands on. As has been mentioned, ESC is a

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

2015-04-16 Thread Paul B. Henson
From: Dan McDonald Sent: Thursday, April 16, 2015 3:18 PM Some have suggested that we include old UCB vi by default. ;) I see Theo already beat me to the punch of pointing out ed ;), hard-core old-school users can use that if vim is too darn newfangled modern for them :). We'll likely

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

2015-04-16 Thread Dan McDonald
Some have suggested that we include old UCB vi by default. ;) We'll likely keep compatibility mode by default for the foreseeable future. Dan Sent from my iPhone (typos, autocorrect, and all) On Apr 16, 2015, at 5:08 PM, Paul B. Henson hen...@acm.org wrote: From: Davide Poletto Sent:

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

2015-04-16 Thread Theo Schlossnagle
And... we always have ed for when terminals go bad. Then you get used to it and to most surgical editing via ed. On Thu, Apr 16, 2015 at 6:17 PM, Dan McDonald dan...@omniti.com wrote: Some have suggested that we include old UCB vi by default. ;) We'll likely keep compatibility mode by

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

2015-04-16 Thread Tim Rice
On Thu, 16 Apr 2015, Paul B. Henson wrote: | From: Tim Rice | Sent: Thursday, April 16, 2015 10:45 AM | | Pressing the arrow keys will only do what you expect in command mode. | | Unless you disable compatibility mode, in which case you can happily | navigate with the arrow keys while in