maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   key bar for xterm (https://talk.maemo.org/showthread.php?t=34926)

qole 2009-11-24 00:42

Re: key bar for xterm
 
Ok, here is my final key bar layout. I think (many of) you'll agree that these are very useful keys to have on the key bar for the N900.

http://farm3.static.flickr.com/2493/...c2d5e637_o.png

And just to collect the codes in one place:

CR = KP_Enter (for hitting enter when the keyboard isn't out)
| = bar
~ = asciitilde
> = greater
` = grave dead_grave (that's my creepy favorite! Note: needs to be hit twice for backquote)

arkanoid 2009-12-02 23:23

Re: key bar for xterm
 
what about f1-f12?

kwotski 2009-12-03 03:14

Re: key bar for xterm
 
Quote:

Originally Posted by lma (Post 386724)
The following works to add the "|" button on the Fremantle osso-xterm bar:

Code:

~ $ gconftool-2 -s /apps/osso/xterm/key_labels -t list --list-type=string "[Tab,Esc,PgUp,PgDn,|]"
~ $ gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,Page_Up,Page_Down,bar]"

I should probably also mention the open bug for this, you know what to do ;-)

Edit!
Quote:

Originally Posted by kwotski (I am an idiot sometimes)
I've tried these commands, but to no effect..

Here is the output from the corresponding gconftool-2 gets:

Code:

~ $ gconftool-2 -g /appa/osso/xterm/key_labels
[Tab,Esc,PgUp,PgDn,|]
~ $ gconftool-2 -g /appa/osso/xterm/keys
[Tab,Escape,Page_Up,Page_Down,Bar]

After exiting the terminal and starting up a new one, there's no change visible in the key bar. Did I miss something?

Yes, you idiot, it's /apps not /appa ffs! Works now. Thanks.

Also, since you people seem to know what you're talking about... what the heck is that NW-facing arrow at the bottom left of the XTerm about? Doesn't seem to do anything here.. Edit: Ok, nevermind that, I see it enables text selection now

jjx 2009-12-03 18:04

Re: key bar for xterm
 
I agree the extra keys are very useful.

With so few lines in landscape mode, it would be helpful to put the key bar to one side or the other, instead of underneath. Or indeed, a whole sidebar of running apps/widgets - that would be great for those intensive text-editing Mutt using sessions :)

kwotski 2009-12-03 18:28

Re: key bar for xterm
 
1 Attachment(s)
Ok, now it's daytime and my eyes are working better, I've spotted the subtle error in my post above and got this working.

I decided on ^ (circumflex) rather than <enter> but otherwise the same choices as qole's, but done with the commandline as above:

Code:

~ $ gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,bar,greater,asciitilde,dead_grave,asciicircum]"
~ $ gconftool-2 -s /apps/osso/xterm/key_labels -t list --list-type=string "[Tab,Esc,|,>,~,\`,^]"

giving:

qole 2009-12-03 18:44

Re: key bar for xterm
 
kwotski: what do you use the ^ hat for?

kwotski 2009-12-03 23:04

Re: key bar for xterm
 
Quote:

Originally Posted by qole (Post 408128)
kwotski: what do you use the ^ hat for?

It has some use in regular expressions (beginning of a string, or "not" inside a character class), also in shell expansion (related to the regexp use) for example 'ls *[^z]' : list all files with name at least one character long, not ending in 'z'. Of course, you need the [ and ] mapped for that to be really useful! ;)

BTW, I discovered that if you drop the dead_ from dead_grave and just put grave, you don't have to press it twice!

insyte 2009-12-04 15:56

Re: key bar for xterm
 
How can I find a list of the available key names? Gconf is new to me...

psmears 2009-12-04 17:02

Re: key bar for xterm
 
Quote:

Originally Posted by qole (Post 408128)
kwotski: what do you use the ^ hat for?

Another use for the ^ character (at least it most shells e.g. tcsh/bash) is for quick corrections of typos. For example, if you accidentally type:

Code:

less thisisaveryloNGfilename.txt
then, rather than either re-typing the whole line, or using the arrow keys lots of times to get to the right place, you can change the "NG" to "ng" by typing just:

Code:

^NG^ng

gwax 2009-12-04 22:37

Re: key bar for xterm
 
Quote:

Originally Posted by kwotski (Post 408094)
Code:

~ $ gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,bar,greater,asciitilde,dead_grave,asciicircum]"
~ $ gconftool-2 -s /apps/osso/xterm/key_labels -t list --list-type=string "[Tab,Esc,|,>,~,\`,^]"


dead_grave refers to the dead key for the grave accent (aka, backtick).

If you instead use:

Code:

~ $ gconftool-2 -s /apps/osso/xterm/keys -t list --list-type=string "[Tab,Escape,bar,greater,asciitilde,grave,asciicircum]"
~ $ gconftool-2 -s /apps/osso/xterm/key_labels -t list --list-type=string "[Tab,Esc,|,>,~,\`,^]"

"dead_grave" > "grave"

you will only have to press ` once to get a ` symbol.


All times are GMT. The time now is 21:26.

vBulletin® Version 3.8.8