Search the web
Sign In
New User? Sign Up
solarisx86
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Keyboard Usage Problems   Message List  
Reply Message #20027 of 50539 |
Re: Keyboard Usage Problems


--- In solarisx86@yahoogroups.com, "eviltypeguy" <adonijah@g...> wrote:
>
> --- In solarisx86@yahoogroups.com, "Tim Butler" <timothybutler@c...> >
> > > Defining TERMINFO=/opt/csw/share/terminfo (for example) makes
> > the page up/down keys work with /usr/bin/less on Solaris 9.
>
> While that fixes the pageup / pagedown keys to work in my programs at
> least (thank you for that), it still doesn't make my home and end keys
> work when using bash in that terminal window.

Neither Solaris' terminfo database, nor the one from ncurses (S10
companion CD) defines kend & khome for the "xterm" terminal entry.

You should be able to fix this for yourself, by recompiling the "xterm"
terminfo entry, adding "kend" and "khome" key definitions:

kend=\EOF, khome=\EOH,

For example like this:

% mkdir /tmp/foo
% env TERMINFO=/usr/share/lib/terminfo /bin/infocmp xterm >
/tmp/foo/xterm.ti
% echo ' knp=\E[6~, kpp=\E[5~, kend=\EOF, khome=\EOH, ' >>
/tmp/foo/xterm.ti
% env TERMINFO=/tmp/foo /bin/tic -v /tmp/foo/xterm.ti


Using an "xterm" window, the "Home / Pos1" key and the "End" key
can be used to jump to the start and the end of a file:

% env TERMINFO=/tmp/foo less /etc/termcap



If you replace Solaris' compiled xterm terminfo file in
/usr/share/lib/terminfo/x/xterm with the new one, the Home / End
keys can be used in a gnome-terminal, too.







Fri Feb 11, 2005 11:30 am

jkeil2
Offline Offline
Send Email Send Email

Message #20027 of 50539 |
Expand Messages Author Sort by Date

Whenever I'm using less, or other programs where I should be able to use the pageup and pagedown keys inside of gnome-terminal, the system just beeps instead...
eviltypeguy
Offline Send Email
Feb 6, 2005
5:13 am

... Anyone?...
eviltypeguy
Offline Send Email
Feb 8, 2005
3:45 pm

... Or how about using ALT-TAB to toggle thru windows open on the current desktop. Seems to work find using Xsun but not Xorg....
Bruce Riddle
bkr780
Offline Send Email
Feb 9, 2005
1:39 am

... After a quick look at the Solaris 10 "less" source (package SUNWlessS), it seems "less" is trying to use the termcap library routines to find out the...
Juergen Keil
jkeil2
Offline Send Email
Feb 9, 2005
12:08 pm

... so ... Is it just library or just the terminfo db entry for xterm? Defining TERMINFO=/opt/csw/share/terminfo (for example) makes the page up/down keys work...
Tim Butler
rotordyn
Offline Send Email
Feb 9, 2005
5:44 pm

... Indeed. It's not a problem with /lib/libcurses.so, the page up/down keys are not defined in /usr/share/lib/terminfo/x/xterm Recompiling...
Juergen Keil
jkeil2
Offline Send Email
Feb 9, 2005
6:34 pm

... While that fixes the pageup / pagedown keys to work in my programs at least (thank you for that), it still doesn't make my home and end keys work when...
eviltypeguy
Offline Send Email
Feb 10, 2005
11:09 pm

... Neither Solaris' terminfo database, nor the one from ncurses (S10 companion CD) defines kend & khome for the "xterm" terminal entry. You should be able to...
Juergen Keil
jkeil2
Offline Send Email
Feb 11, 2005
11:30 am

Hi, How can I make my orinoco wlan pcmcia card work in a texas instruments device? I have another wlan minipci card: BCM94306 802.11g. Does it work under ...
Seyit Ali
seyitali70
Offline Send Email
Feb 11, 2005
1:10 pm

... Unfortunately there are no wireless drivers available in the Solaris 10 which was just released. You'll need to wait for an update to get them. There is...
Alan DuBoff
aland@...
Send Email
Feb 11, 2005
1:30 pm

... "xterm" ... Sadly, that doesn't work. I also noticed that xterm.ti already has an entry for "home", just not khome. I think the real problem is that for...
eviltypeguy
Offline Send Email
Feb 12, 2005
4:19 am

... A program can send the "home" sequence to the terminal, and the cursor will be positioned into the upper left corner. "khome" is the sequence of bytes sent...
Juergen Keil
jkeil2
Offline Send Email
Feb 14, 2005
11:52 am

... Ah, ok, I redid everything per your previous email, and *after* I restarted gnome-terminal, then the home and end keys started working. But not until I...
eviltypeguy
Offline Send Email
Feb 16, 2005
4:12 pm

... Yes, you need to restart. ... xterm eats the home/end/pageup/pagedown keys to scroll its own buffer so they're never passed on to applications. (I never...
Casper.Dik@...
Send Email
Feb 16, 2005
4:26 pm

... Glad I'm not the only one who feels this way! -- Rich Teer, SCNA, SCSA, author of "Solaris Systems Programming" President, Rite Online Inc. Voice: +1 (250)...
Rich Teer
rich.teer@...
Send Email
Feb 16, 2005
4:52 pm

... Count me among them too. I use dtterm. -C ______________________________________________________________________ Post your free ad now!...
Coy Hile
coyhile
Offline Send Email
Feb 17, 2005
3:04 pm

... The explanation is probably, that one gnome-terminal process is used to display multiple gnome-terminal windows. When a gnome-terminal is already running...
Juergen Keil
jkeil2
Offline Send Email
Feb 16, 2005
5:09 pm

... application; ... traffic ... Well, I use my Solaris box as my desktop so it's not a real concern. However, if there's another terminal program that has...
eviltypeguy
Offline Send Email
Feb 16, 2005
6:44 pm

... Why not use 'screen' ? Granted, it won't let you use the mouse or SHIFT-Arrow to move around. Been using it for 15 years... Cheers, Henk...
Henk Langeveld
hla
Offline Send Email
Feb 17, 2005
9:20 pm

... Why wait for that? You could have put your modified terminfo entry in your home directory, point $TERMINFO at it, and never worry about it again. (I used...
Tim Butler
rotordyn
Offline Send Email
Feb 16, 2005
4:36 pm

... Well, I'm not waiting for it, I already did the workaround provided by the other person which works great. I just hope the next time I clean install a new...
eviltypeguy
Offline Send Email
Feb 16, 2005
6:37 pm

... It would be nice to have a "TERMINFOPATH", so your local terminfo directory could just add to the system definitions rather than replacing all 2000 of...
Jon LaBadie
jonjgc
Offline Send Email
Feb 17, 2005
7:50 am

... That's exactly wath $TERMINFO does. truss -t open infocmp vtbad > /dev/null open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT ...
Casper.Dik@...
Send Email
Feb 17, 2005
7:53 am

... Ok, so any particular application will search one additional TERMINFO db besides the one specified by TERMINFO. I'm pretty sure even that was not the...
Jon LaBadie
jonjgc
Offline Send Email
Feb 17, 2005
5:55 pm

... It's been that way since I used it in Solaris 2.x (which is pretty much 2.1) The specific terminfo file I used dates from: total 54 drwxr-xr-x 2 casper...
Casper.Dik@...
Send Email
Feb 17, 2005
6:02 pm

Coy Hile <coyhile@...> ... I use gnome-terminal only because the integration of it is easier to deal with than dtterm. However, as Casper pointed out,...
Ben Taylor
The_H1ghlander
Offline Send Email
Feb 17, 2005
3:30 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help