maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   XTerm shortcuts problem (https://talk.maemo.org/showthread.php?t=28326)

luis 2009-04-16 19:48

XTerm shortcuts problem
 
Hi,

I tried to add "Del", "Home", etc to the shortcut toolbar in the xterm (OS2008, N800, bash). I tried KP_Home and things like that, but either they do nothing, or just write a '~' on the screen. Under 'sudo gainroot' some work, though. I tried with and without the .bashrc file with identical results. It seems that the osso_xterm is not catching the key sequence correctly.

What am I missing?

Thanks!!
L.

bousch 2009-04-16 20:04

Re: XTerm shortcuts problem
 
Did you try uninstalling bash? Maybe that's the culprit...

luis 2009-04-16 20:12

Re: XTerm shortcuts problem
 
Quote:

Originally Posted by bousch (Post 280180)
Did you try uninstalling bash? Maybe that's the culprit...

My .bashrc file has 231 lines. The main reason I bought the N800 is to use all the things and scripts I made over the years. I don't want to begin from scratch with yet another shell...

Thanks,
L.

bousch 2009-04-16 20:17

Re: XTerm shortcuts problem
 
It seems to have something to do with bash.

I just installed bash and it does write the tilde when I use the shortcuts at the bash prompt. When running vim the shortcuts do seem to do what they should.

Without bash the shortcuts KP_Home and KP_End work fine at the shell prompt.

bousch 2009-04-16 20:22

Re: XTerm shortcuts problem
 
Quote:

Originally Posted by luis (Post 280188)
My .bashrc file has 231 lines. The main reason I bought the N800 is to use all the things and scripts I made over the years. I don't want to begin from scratch with yet another shell...

Ah I see, I hope someone else can clear this up then...

luis 2009-04-16 20:38

Re: XTerm shortcuts problem
 
Quote:

Originally Posted by bousch (Post 280194)
Ah I see, I hope someone else can clear this up then...

There should be a way to link the key sequence to the correct sequence. Like when using loadkeys.

Thanks anyway,
L.

bunanson 2009-04-16 22:59

Re: XTerm shortcuts problem
 
dont know about the solutions. There are some shortcuts here may interest you,

http://www.internettablettalk.com/fo...d.php?p=192189 thread #10


bun

daperl 2009-04-17 11:46

Re: XTerm shortcuts problem
 
Quote:

Originally Posted by luis (Post 280172)
Hi,

I tried to add "Del", "Home", etc to the shortcut toolbar in the xterm (OS2008, N800, bash). I tried KP_Home and things like that, but either they do nothing, or just write a '~' on the screen.

Bummer. Home works for user and root and bash is my default shell. I'm using the latest Diablo. These also work for user and root: End KP_Left KP_Right KP_Up KP_Down. There's nothing special about my .bashrc except some added aliases.

Oh, and here's what my root shortcut looks like:

r,o,o,t,KP_Enter

bousch 2009-04-17 14:13

Re: XTerm shortcuts problem
 
Quote:

Originally Posted by daperl (Post 280337)
Bummer. Home works for user and root and bash is my default shell. I'm using the latest Diablo. These also work for user and root: End KP_Left KP_Right KP_Up KP_Down. There's nothing special about my .bashrc except some added aliases.

Oh, and here's what my root shortcut looks like:

r,o,o,t,KP_Enter

Are you using bash 2.05b or bash 3.2? I have the tilde problem with 2.05b.

daperl 2009-04-17 15:19

Re: XTerm shortcuts problem
 
Quote:

Originally Posted by bousch (Post 280369)
Are you using bash 2.05b or bash 3.2? I have the tilde problem with 2.05b.

Nokia-N810-43-7:~$ bash -version
bash -version
GNU bash, version 2.05b.0(1)-release (arm-unknown-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
Nokia-N810-43-7:~$

luis 2009-04-22 01:47

Re: XTerm shortcuts problem
 
Quote:

Originally Posted by bousch (Post 280369)
Are you using bash 2.05b or bash 3.2? I have the tilde problem with 2.05b.

I'm using 2.05b, that is broken against most of my bash scripts. Where can I find bash 3.2?

BTW, some of the xterm shorcuts now work since I installed ncurses.

L.

bousch 2009-04-22 11:40

Re: XTerm shortcuts problem
 
bash 3.2 is in extras-devel. Haven't tried it so I can't say anything about it...


All times are GMT. The time now is 02:24.

vBulletin® Version 3.8.8