Go Back   maemo.org - Talk > Software > Applications
 
Register FAQ Community Calendar Today's Posts Search

Notices

Reply
 
Thread Tools
  #31  
Old 2010-05-16, 08:59
silvermountain's Avatar
silvermountain silvermountain is offline
 
Join Date: May 2009
Location: ...standing right behind you...
Posts: 1,359
Thanks!: 588
Thanked 717 Times in 317 Posts
Default Re: Customize X-term?

Quote:
Originally Posted by zombiegavins View Post
if you are using an n900 just use the vkb and select the paste option when you have the input box open
Sorry, N810 and don't use the vkb on it.
__________________
.N810 experience: Since 6/2009
My Twenty Favorite OS2008 Applications:
AutoScan, Diablo5 Theme, Dialcentral, DragLock, EmelFM2, FlipClock, gPodder, Headphoned, Knots 2, Maemo Mapper, mPlayer, openNTPD, OpenSSH, Panucci, Personal Launcher, QuickNote, Seqretary, SlideLock, Telescope, YellowNotes
Reply With Quote
  #32  
Old 2010-05-16, 09:05
silvermountain's Avatar
silvermountain silvermountain is offline
 
Join Date: May 2009
Location: ...standing right behind you...
Posts: 1,359
Thanks!: 588
Thanked 717 Times in 317 Posts
Default Re: Customize X-term?

lol nevermind..i just found 'paste' in the pull down menu..guess the lack of a) sleep and b) no ctrl-v support threw me a blonde moment...
__________________
.N810 experience: Since 6/2009
My Twenty Favorite OS2008 Applications:
AutoScan, Diablo5 Theme, Dialcentral, DragLock, EmelFM2, FlipClock, gPodder, Headphoned, Knots 2, Maemo Mapper, mPlayer, openNTPD, OpenSSH, Panucci, Personal Launcher, QuickNote, Seqretary, SlideLock, Telescope, YellowNotes
Reply With Quote
  #33  
Old 2010-05-16, 10:12
Patola Patola is offline
 
Join Date: Jan 2010
Location: Campinas, SP, Brazil
Posts: 267
Thanks!: 515
Thanked 183 Times in 84 Posts
Send a message via ICQ to Patola Send a message via MSN to Patola Send a message via Yahoo to Patola Send a message via Skype™ to Patola
Default Re: Customize X-term?

Quote:
Originally Posted by ag2 View Post
To be more precise:

x-term:

Menu -> Tools -> Settings -> Toolbar shortcut -> New

Title: Bar
Value: bar
(...)
Sorry, I got a bit confused here. Only to clarify: these steps are not for osso-xterm for the N900, right? There is no "Tools" in my xterm menu, only "New", "Font", "Restart", "Restart and Clear".

Is there a way to apply this recipe to osso-xterm for the N900 that doesn't need fiddling with text-mode resource files? I've found /usr/share/gconf/schemas/osso-xterm.schemas that seems to have the configuration for the xterm 'soft keys', but I'd rather avoid to use it.
__________________
My nickname on freenode is ptl, that is, the consonants of my nickname here. Kind of a long story.
Reply With Quote
  #34  
Old 2010-05-16, 12:42
Patola Patola is offline
 
Join Date: Jan 2010
Location: Campinas, SP, Brazil
Posts: 267
Thanks!: 515
Thanked 183 Times in 84 Posts
Send a message via ICQ to Patola Send a message via MSN to Patola Send a message via Yahoo to Patola Send a message via Skype™ to Patola
Default Customizing xterm on the N900

I just figured out how to do it in the n900 with gconftool-2.

In the terminal, as user (not root):
  1. First, get the xml schema of the current configuration for xterm:
    Code:
    gconftool-2 --dump /schemas/apps/osso/xterm > /tmp/xterm.dump
  2. Make a backup of this dump. Save it somewhere, so that you can get back if you screw up:
    Code:
    cp /tmp/xterm.dump /home/user/MyDocs/xterm-keys.dump
  3. Then, using your preferred text editor (mine is vim, but can be leafpad, nano, etc.), open the dump file:
    Code:
    vim /tmp/xterm.dump
  4. You'll find a xml section (way under "key_labels") containing the default values for the labels of the keys. It ends in PgDn:
    Code:
                       <value>
                          <string>PgUp</string>
                        </value>
                        <value>
                          <string>PgDn</string>
                        </value>
                    </list>
                  </value>
  5. Add your values there (try to keep it short, because it uses space on the screen):
    Code:
                       <value>
                          <string>PgUp</string>
                        </value>
                        <value>
                          <string>PgDn</string>
                        </value>
                        <value>
                          <string>Pipe</string>
                        </value>
                        <value>
                          <string>&gt;</string>
                        </value>
                    </list>
                  </value>
  6. The next xml section has the key values, and you have to add accordingly. In this example, from:
    Code:
                        <value>
                          <string>Page_Up</string>
                        </value>
                        <value>
                          <string>Page_Down</string>
                        </value>
                    </list>
                  </value>
  7. We add:
    Code:
                        <value>
                          <string>Page_Up</string>
                        </value>
                        <value>
                          <string>Page_Down</string>
                        </value>
                        <value>
                          <string>bar</string>
                        </value>
                        <value>
                          <string>greater</string>
                        </value>
                    </list>
                  </value>
  8. Notice that these symbols have to be in their correct case. The symbol for pipe ("|") is bar, all lowercase, and the symbol for greater (">") is greater, all lowercase.
  9. Save the file then exit.
  10. Now, load the modified schema:
    Code:
    gconftool-2 --load /tmp/xterm.dump
  11. Voilą! You'll have your brand new symbols:
__________________
My nickname on freenode is ptl, that is, the consonants of my nickname here. Kind of a long story.

Last edited by Patola; 2010-05-16 at 14:09. Reason: changed "Grtr" label to be ">"
Reply With Quote
The Following 9 Users Say Thank You to Patola For This Useful Post:
  #35  
Old 2010-05-17, 19:43
manavs manavs is offline
 
Join Date: Feb 2010
Location: AZ
Posts: 77
Thanks!: 159
Thanked 35 Times in 25 Posts
Default Re: Customizing xterm on the N900

Quote:
Originally Posted by Patola View Post
I just figured out how to do it in the n900 with gconftool-2.
Can this be done via ssh?
Reply With Quote
  #36  
Old 2010-05-17, 21:04
cobble cobble is offline
 
Join Date: May 2010
Posts: 11
Thanks!: 7
Thanked 0 Times in 0 Posts
Default Re: Customizing xterm on the N900

Quote:
Originally Posted by Patola View Post
I just figured out how to do it in the n900 with gconftool-2.
Thanks for this!
This is exactly what I was missing on my xterm, the Pipe
and '>' symbol. :-)
Reply With Quote
  #37  
Old 2010-07-07, 23:22
extendedping extendedping is offline
 
Join Date: Apr 2010
Posts: 838
Thanks!: 14
Thanked 292 Times in 141 Posts
Default Re: Customize X-term?

ok let me first say I am not a programmer. I am trying to change the keys on the xterm using gconf and I have read the above posts. I did the dump and the backup etc.

what I don't understand, is under the "keys" section (if I am interpreting this correctly) is the actual specification of the key value to be added to the virtual terminal (the one line on the bottom of the screen).

then the "key_labels" section somehow maps the actual keys that you have specified to the names you want ie, what you will actually press.

but how do I know the names to input for the keys. for instance I read the value to input for the pipe "|" is bar, and the value to input for the ">" is greater.

but where are these values coming from? for instance I want to add both the forward slash "/" and the dash "-" to the menu.

where do I find their values? and how come I don't see Ctrl defined under keys or as a key_values but obviously it is there on my screen?

Last edited by extendedping; 2010-07-07 at 23:24.
Reply With Quote
  #38  
Old 2010-09-09, 18:56
grog's Avatar
grog grog is offline
 
Join Date: Feb 2008
Location: Winnipeg, Canada
Posts: 546
Thanks!: 290
Thanked 85 Times in 66 Posts
Default Re: Customizing xterm on the N900

Quote:
Originally Posted by Patola View Post
I just figured out how to do it in the n900 with gconftool-2.
Thanks again for this. What I can't figure out are what the key values for a few other keys I'd like to have, namely brackets ("[" & "]") & the tilde ("~"). The buttons show up fine but I can't figure out what gconf expects for a value. If I could find out where you figured out that pipe = bar that might help, but I can't even find that .

TX
__________________
GROG!
N900 | ZAGG Body Armour | 16Gb A-DATA micro-sd
N810 | 2 x Patriot 8gb mini-SD | Boxwave Crystal Clear SS | Black Aluminum case | OTG dongle
N800 | 2 x 8gb OCX SD | Boxwave Anti-glare SS | PDAir book-style case
Holux M-1200 bluetooth GPS | iGo 4-row bluetooth keyboard | Linksys USB 10/100 ethernet | Plantronics Voyager 855 BT Headset
Reply With Quote
  #39  
Old 2010-09-09, 19:12
techie techie is offline
 
Join Date: Apr 2010
Posts: 208
Thanks!: 102
Thanked 220 Times in 101 Posts
Default Re: Customizing xterm on the N900

Quote:
Originally Posted by grog View Post
Thanks again for this. What I can't figure out are what the key values for a few other keys I'd like to have, namely brackets ("[" & "]") & the tilde ("~"). The buttons show up fine but I can't figure out what gconf expects for a value. If I could find out where you figured out that pipe = bar that might help, but I can't even find that .

TX
Use this
http://wiki.linuxquestions.org/wiki/List_of_keysyms
So [ is "bracketleft" and so on..
__________________
Quote:
With Linux-powered N900..ANYTHING is possible
Reply With Quote
The Following 2 Users Say Thank You to techie For This Useful Post:
  #40  
Old 2010-09-09, 19:16
Zas's Avatar
Zas Zas is offline
 
Join Date: Jun 2010
Location: Finland
Posts: 196
Thanks!: 19
Thanked 113 Times in 69 Posts
Default Re: Customize X-term?

[ is "bracketleft" and ] is "bracketright". ~ should be "asciitilde".
Reply With Quote
The Following 2 Users Say Thank You to Zas For This Useful Post:
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:11.