Penguin
Annotated edit history of XtermNotes version 12, including all changes. View license author blame.
Rev Author # Line
9 AristotlePagaltzis 1 !!! Configuration Menu
2
5 CraigBox 3 * To access the main menu, hold down the control key and click the left mouse button
4 * Ctrl-Middle Button is the terminal options (Preferences) - hint, you can set reverse video here.
5 * Ctrl-Right Button is the font options.
6
7 To scroll using the scrollbar, grab the grey bar with the middle button.
8
9 AristotlePagaltzis 9 !!! Alt vs Meta
10
10 AristotlePagaltzis 11 At some stage (eg xterm version 187 in Debian Unstable), xterm started treating keyboard input differently when the Alt key was pressed. (For PC keyboards, the Alt key has the <tt>mod_1</tt> X keyboard modifier set). For example, pressing Alt+x generates a "ø" and pressing Alt+q now generates "ñ". This isn't very good if you want to use the Alt key in emacs(1) in the terminal. The best solution for this is to add <tt>XTerm*eightBitInput: false</tt> to either <tt>$HOME/.Xresources</tt> (for a single user) or to <tt>/etc/X11/app-defaults/XTerm</tt> (for a system wide default). The same change can be made for the <tt>UXTerm</tt> class for when you're using a [UTF-8] xterm.
9 AristotlePagaltzis 12
13 Another solution (that isn't as tidy as the above) is to use xmodmap(1) to tell X that your Alt key should generate Meta:
14
15 <verbatim>
16 xmodmap -e 'keysym Alt_L = Meta_L'
17 </verbatim>
18
19 !!! Startup Options
5 CraigBox 20
9 AristotlePagaltzis 21 Some handy command line options that xterm understands:
5 CraigBox 22
9 AristotlePagaltzis 23 <tt>-l</tt>:
24 launch the shell as a login shell so it’ll load the startup files like <tt>/etc/profile</tt>, <tt>.bashrc</tt>
5 CraigBox 25
9 AristotlePagaltzis 26 <tt>-rightbar</tt>:
27 put the scrolbar on the right side of the term
5 CraigBox 28
9 AristotlePagaltzis 29 <tt>-vb</tt>:
30 visual bell, flash the window instead of beeping the speaker
5 CraigBox 31
9 AristotlePagaltzis 32 <tt>-fg ''foreground colour'' -bg ''background colour''</tt>:
33 change colours
5 CraigBox 34
9 AristotlePagaltzis 35 <tt>-rv</tt>:
36 swap forground/background colours
6 AlastairPorter 37
9 AristotlePagaltzis 38 <tt>-e ''command''</tt>:
39 run the command instead of launching a shell
7 JohnMcPherson 40
9 AristotlePagaltzis 41 <tt>-fa "bitstream vera sans mono" -fs 8</tt>:
42 use AntiAliasedFonts!
8 JimParis 43
9 AristotlePagaltzis 44 All of these can also be put into your <tt>.Xresources</tt> so that they will be permanently active without having to pass all these parameters to xterm every time.
11 CraigBox 45
46 !!! Setting the window title
47
12 AristotlePagaltzis 48 <tt>echo -ne "__\033]0__''This is a title''__\007__"</tt>
11 CraigBox 49
50 The number after the ] can be 0, 1 or 2:
51
12 AristotlePagaltzis 52 <tt>__\033]0__''title''__\007__</tt>
53 Set both the icon name and window title
54 <tt>__\033]1__''title''__\007__</tt>
55 Set just the icon name
56 <tt>__\033]2__''title''__\007__</tt>
57 Set just the window title
11 CraigBox 58
12 AristotlePagaltzis 59 Check your <tt>.bashrc</tt> to see that the <tt>PROMPT_COMMAND</tt> EnvironmentVariable isn't set to overwrite your newly set window title every time it displays a prompt.
7 JohnMcPherson 60
9 AristotlePagaltzis 61 !!! The full nitty-gritty
5 CraigBox 62
9 AristotlePagaltzis 63 See xterm(1).