Shawn Walker wrote:
> Bruno Damour wrote:
>> Hello,
>> I have a small annoying problem with gnome-terminal (and others btw)
>> under sxce b94
>> I want to map HOME, END and DELETE keys to do what I want, ie like ^a,
>> ^e, and delete current char.
>> I managed to get what I wanted with the delete key adding a line in my
>> .bashrc that says :
>> bind '"\e[3~":delete-char'
>> But HOME and END key (supposed to work with) :
>> bind '"\e[1~":beginning-of-line'
>> bind '"\e[4~":end-of-line'
>> Furthermore, trying to catch the keycodes with read fails, it's like the
>> key would not even send anything ? (it gives the expected result with
>> DELETE though)
>> And, no, it's not my keyboard, the keys work correctly in some other
>> apps, let's say firefox for example or gedit !
>> Any clue would be appreciated, I'm tired of googling for this !
>>
>> Otherwise I guess I will have to use ^a and ^e agin, but it seems wrong
>> that HOME and END keys should be useless in term...
>
> http://tech.groups.yahoo.com/group/solarisx86/message/20027
>
Well thanks that seems to be my problem but I did not manage to solve it
this way.
I have to admit this terminfo thing is a bit obscure to me...
I followed the guide but in my xterm(-color) I still get no input from
the keys when grabbing it with read... strange
Bruno
PS : sorry Shawn for the duplicate, i forgot to include the ml
_______________________________________________
opensolaris-discuss mailing list
[email protected]