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.
I have Ultra 10 with SVGA monitor, running Solaris 10. Two questions:
1)
How do I adjust Backspace key to work for me properly in the console? When I use bash everything is fine. For sh, I have to do
Code:
stty erase <Backspace>
so I guess I can fix that one.
However in vi, it behaves as a left arrow - it goes to the left without erasing anything. In cat and my own shell scripts, Backspace just keeps writing ^Hs on the screen. It is the same at the login screen. Can I do something about this?
2) I think this thing is called visual bell. It is like black wave that goes over my screen when I do tab completion or something like that. It annoys me to no end, because it's awfully slow to pass by. Can I change it to the sound warning or something? Or maybe have it do its thing faster?
I checked man tset and man stty, I know answers are in there somewhere, but those two manuals are deciferable to me.
In Linux there is /etc/inputrc file to configure in this situation, but I can't seem to find it on my solaris machine.
Last edited by frankie_DJ; 08-06-2005 at 08:16 AM.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
However in vi, it behaves as a left arrow - it goes to the left without erasing anything.
Are you asking about vi insert mode or command mode ?
In command mode, it looks to me the expected backspace behaviour.
In insert mode, it erases the character when they have just been inserted previously in, but only show they have been deleted when insert mode is left with <Escape>.
Quote:
In cat and my own shell scripts, Backspace just keeps writing ^Hs on the screen. It is the same at the login screen.
^H is backspace character visual representation when not catched by the driver.
As you already found,
stty erase <Backspace>
is the way to have the driver interpret it as an instruction to erase the previous character.
As of changing system key mapping, should you really want this odd situation commonly found with linux where the backspace key send delete and delete send backspace, or whatever, it can be done by playing with loadkeys.
man keytables
man loadkeys
About the visual bell issue, I do not experience it.
What is your TERM variable value when in console ?
What shell are your running ?
Well I am not sure if that's the visual bell, but it happens at the times visual bell would (too many backspaces, command completion). Like, screen blackens starting from the top and than whitens back from the top. Is that what the visual bell does? My TERM is sun. Happens in every shell, for every user equally. I guess it wouldn't bother me so much if it doesn't take FOREVER, like 4-5 seconds, and I can't type during that time (Can you imagine hitting 4,5 extra backspaces? I could go for a nap.) Can I adjust its time length or something?
BTW you are right about vi. I guess that's the way it works, I always used vim before. I saw in one of the threads that you have issues with vim. What are they?
Last edited by frankie_DJ; 08-06-2005 at 02:25 PM.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
I don't think you can adjust this time, as I already told, I do not experience that with consoles (I didn't tried with a U10 though).
I found that in the wscons manual page, which may give one clue:
Code:
Bell (BEL),
CTRL-G
0x7
Used for consoles that are not equipped with an audible
bell. Current Sun workstation models also flash the
screen if the keyboard is not the console input device.
Quote:
I saw in one of the threads that you have issues with vim. What are they?
I just happen to prefer elvis as a vi enhanced clone.
As a long time vi user, I dislike vim not always behaving the way I expect while elvis is sticking better to vi standard.
That said, are you sure backspace is really erasing characters with vim ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.