View Single Post
Posts: 267 | Thanked: 183 times | Joined on Jan 2010 @ Campinas, SP, Brazil
#34
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 ">"
 

The Following 9 Users Say Thank You to Patola For This Useful Post: