Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
I am a experienced Linux user and I am trying to work with Solaris now. I found several problems in my usual routines which I used in Linux previously.
For example in vi editor I cannot use arrow keys to move forward and back, up and down. It prints some characters instead.
I used to scroll the shell when the output of a command is too long with SHIFT+UP SHIFT+DOWN or SHIFT+PAGEUP SHIFT+PAGEDOWN in Linux.
Should it work also in Solaris?
Maybe the problem is related to virtualbox since I am running this Solaris 10 as a virtual-machine.
Can this be solved somehow? Or are there some alternatives for these routines?
Actually I don't use desktop its (the Solaris) without GUI. Only shell.
Its a bit better when I connect to it by ssh but still some keys doesn't work. By desktop you mean the guest OS desktop OR the MAIN OS desktop (where virtualbox is installed) which is Win7?
Actually I don't use desktop its (the Solaris) without GUI. Only shell.
Its a bit better when I connect to it by ssh but still some keys doesn't work. By desktop you mean the guest OS desktop OR the MAIN OS desktop (where virtualbox is installed) which is Win7?
I mean the solaris desktop, CDE or something newer? But you told you use it without GUI. In this case I would like to know the terminal settings (you need to set it properly) echo $TERM
Basic vi uses control keys for moving around: h, j, k, l. I think the arrow keys are a vim extension.
Sorry I didn't note that the arrow keys doesn't work in EDIT mode (INSERT,INPUT = SHIFT+I). It is very difficult to edit the files with vi without this functionality. For example I have a configuration file which I need to modify so I switch to INSERT mode and try to get to the position where the values should be changed. At the moment I hit the right arrow key the vi turns back to COMMAND mode (or puts some characters instead of movement). The only way to edit the file is to rewrite the complete line with the new value.
I use Solaris 10. I am starting to work in environment with lots of Solaris 10 machines so I need to get comfortable with the Solaris shell. But in my testing environment I have Solaris 11. It is better (it doesn't print characters instead of arrows) but still I cannot navigate in INSERT mode.
How it is supposed to edit an existing config file in Solaris when the arrow keys doesn't work. (I mean if this is a normal behavior of vi in Solaris) Rewriting always the complete line?
I am going to install it in physical hardware to check whether it is not an virtualbox bug with Solaris.
I mean the solaris desktop, CDE or something newer? But you told you use it without GUI. In this case I would like to know the terminal settings (you need to set it properly) echo $TERM
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
There is no way to move the cursor in insertion mode under the regular/standard vi, you need to switch to the command mode. What you are used to is a vim extension as smallpond already stated..
It seems you use the I to switch to insert mode.
You should instead just move the cursor using the letter commands (h j k lspacebackspace/^H) or the arrows while in command mode to the location where you want to insert or modify something and switch to insert mode using either i (insert), a (append), C (change until end of line) or cw (change word).
You should instead just move the cursor using the letter commands (h j k lspacebackspace/^H) or the arrows while in command mode to the location where you want to insert or modify something and switch to insert mode using either i (insert), a (append), C (change until end of line) or cw (change word).
This works. It seems I get to used with the extended functionality of vim. I need to accept this different behavior of vi in Solaris.
This works. It seems I get to used with the extended functionality of vim. I need to accept this different behavior of vi in Solaris.
Actually, it is not a "different" behaviour in Solaris, it is the correct original behavior. You are used to a different behavior, and need to adapt to the original behavior now. Anyway, it does not hurt to learn original VI.
Actually, it is not a "different" behaviour in Solaris, it is the correct original behavior. You are used to a different behavior, and need to adapt to the original behavior now. Anyway, it does not hurt to learn original VI.
Yes the same problem occurs with me as well...in my case whenever i press backspace it starts showing # sign instead of deleting the characters. however the up and the down button are working perfectly fine.What is the solution.?..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.