|
Page 1 of 2 |
|
1
2
|
Next
Customize X-term?
I'm trying to add CTRL-P to the X-term toolbar in OS2008.
It's possible to add any commands you want to the bar by giving a command a name and then filling in what key combo you want that command to do. So my question is this: how do you enter CTRL on the keyboard? There is no CTRL button, but is there some way of invoking it from the keyboard? |
Re: Customize X-term?
just type <ctrl> not as a single keystroke but as the typed string.
|
Re: Customize X-term?
Perfect. Thanks Linuxrebel.
This new thing of having to press the Ctrl button on the tool bar, then tapping the screen to call up the keyboard, then typing in the p in the dialog box was driving me mad! |
Re: Customize X-term?
I've managed to add only enter to the shortcut toolbar
Here's what gconftool reports. Check how you can add these values. I always forget things i don't use more then once :) ~ $ gconftool-2 -R /apps/osso/xterm key_labels = [Tab,Esc,PgUp,PgDn,Enter] scrollbar = true font_size = 16 font_name = Monospace foreground = #00ff00 keys = [Tab,Escape,Page_Up,Page_Down,KP_Enter] scrollback = 200 font_size_delta = -4 toolbar = true reverse = false background = #000000 PS: i doubt you can have the CTRL-P google for "Page_Up,Page_Down,KP_Enter" |
Re: Customize X-term?
Quote:
|
Re: Customize X-term?
... speechless :o
|
Re: Customize X-term?
A useful one to add to xterm is "bar" (or "Bar", don't remember) to print '|'.
|
Re: Customize X-term?
Quote:
It's called a "pipe" around these parts. :D |
Re: Customize X-term?
Quote:
Thank you for the help. |
Re: Customize X-term?
I'll jump in this topic as well.
I'm looking for a way to remove the cursor altogether, you know, the white square thingie where you're typing text. It's been causing some weird problems using Telnet so I would be very grateful if anyone knew how for X-Term to not print the cursor at all. Thanks. :) |
Re: Customize X-term?
Quote:
skibur = skybur != skeebur |
Re: Customize X-term?
Normaly I'd say "read the man page" however since we dont have man pages, heres the url http://linux.die.net/man/1/xterm Now the the harder part may be applyying this to the recently butchered version of xterm (if what we had before was the advanced version is this the ******ed one?) :p:eek:
|
Re: Customize X-term?
Quote:
|
Re: Customize X-term?
Quote:
|
Re: Customize X-term?
Quote:
x-term: Menu -> Tools -> Settings -> Toolbar shortcut -> New Title: Bar Value: bar This will give you a new soft button that, when pressed, will print '|' There are 1200+ characters for which you can create shortcuts -- things like umlauts, caps locks, and what not. Here is how to use them: Look at this file: http://olya.com/maemo/keysyms.c The value you want to use in toolbar settings is the part after GDK_. So for a ')' you would use 'parenright'. Hope this helps. Took me a while to figure this out. |
Re: Customize X-term?
Quote:
|
Re: Customize X-term?
Quote:
Press & hold while moving " <direction> " then releasing: UP = Shift DOWN = Enter RIGHT = Spacebar LEFT = Backspace I hope this helps. |
Re: Customize X-term?
Quote:
|
Re: Customize X-term?
I'm wondering if there is any way to assign a command
to the toolbar? It looks like you can't assign a string of characters though. One trick is to put an alias in .bashrc. I have "s" aliased to "ssh -X user@othercomputer" and then the string "s KP_Enter" gives a toolbar button that generates my ssh command ... But good old user does not have a .bashrc file so I can't use this trick for the "sudo login root" command. (I tried making a .bashrc file in /home/user but it had no effect - don't know why) So, is there any way to assign commands to the toolbar? |
Re: Customize X-term?
Quote:
Example: "d,a,t,e KP_Enter" |
Re: Customize X-term?
Quote:
|
Re: Customize X-term?
here some my shorcuts:
"Escape colon w,q KP_Enter" (when u are in VI this command write the file and quit VI) "Escape colon q exclam KP_Enter" (when u are in VI this command quit VI whitout saving the file) "<ctrl>c" (this command stop the current executing shell command). |
Re: Customize X-term?
Quote:
BTW, there is a rarely documented shortcut for ":wq" in vi. You can just use ":x". :) |
Re: Customize X-term?
Here are some toolbar shortcuts I find useful on a daily basis:
| (pipe) = bar ^] (escape character) = <ctrl>,braceright > (redirect stdout) = greater |
Re: Customize X-term?
was playing around with this to ease some apt abuse and i found that rootsh dont like to be used this way. all i get is "file or dir not found".
could be that my hyphen is wrong tho as it does not match the one in the wiki. it seems to require lower case... it seems indeed like the hyphen is at fault. it looks right, but isnt soo apparently... ah, minus, not hyphen ;) now i have my most common apt-get commands as shortcuts :D |
Re: Customize X-term?
Is it possible to make a shortcut to type something into the commandline?
Nah... found it.. |
Re: Customize X-term?
sure,
it's easy say you want to execute vi command, then type this shortcut: "v,i,KP_Enter" |
Re: Customize X-term?
Is anybody knows how to automatically execute command when starting xterm? I mean, when I start Xterm or new Xterm tab, can I get "sudo gainroot" command automatically executed without my intervention?
TIA. |
Re: Customize X-term?
I would settle for learning how to paste copied text into x-terminal :)
|
Re: Customize X-term?
if you are using an n900 just use the vkb and select the paste option when you have the input box open
|
Re: Customize X-term?
Quote:
|
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...
|
Re: Customize X-term?
Quote:
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. |
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):
|
Re: Customizing xterm on the N900
Quote:
|
Re: Customizing xterm on the N900
Quote:
This is exactly what I was missing on my xterm, the Pipe and '>' symbol. :-) |
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? |
Re: Customizing xterm on the N900
Quote:
TX |
Re: Customizing xterm on the N900
Quote:
http://wiki.linuxquestions.org/wiki/List_of_keysyms So [ is "bracketleft" and so on.. |
Re: Customize X-term?
[ is "bracketleft" and ] is "bracketright". ~ should be "asciitilde".
|
| All times are GMT. The time now is 00:56. |
Page 1 of 2 |
|
1
2
|
Next
vBulletin® Version 3.8.8