Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
XtermNotes
Edit
PageHistory
Diff
Info
LikePages
!!! Configuration Menu * To access the main menu, hold down the control key and click the left mouse button * Ctrl-Middle Button is the terminal options (Preferences) - hint, you can set reverse video here. * Ctrl-Right Button is the font options. To scroll using the scrollbar, grab the grey bar with the middle button. !!! Alt vs Meta 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. 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: <verbatim> xmodmap -e 'keysym Alt_L = Meta_L' </verbatim> !!! Startup Options Some handy command line options that xterm understands: <tt>-l</tt>: launch the shell as a login shell so it’ll load the startup files like <tt>/etc/profile</tt>, <tt>.bashrc</tt> <tt>-rightbar</tt>: put the scrolbar on the right side of the term <tt>-vb</tt>: visual bell, flash the window instead of beeping the speaker <tt>-fg ''foreground colour'' -bg ''background colour''</tt>: change colours <tt>-rv</tt>: swap forground/background colours <tt>-e ''command''</tt>: run the command instead of launching a shell <tt>-fa "bitstream vera sans mono" -fs 8</tt>: use AntiAliasedFonts! 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. !!! Setting the window title <tt>echo -ne "__\033]0__''This is a title''__\007__"</tt> The number after the ] can be 0, 1 or 2: <tt>__\033]0__''title''__\007__</tt> Set both the icon name and window title <tt>__\033]1__''title''__\007__</tt> Set just the icon name <tt>__\033]2__''title''__\007__</tt> Set just the window title 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. !!! The full nitty-gritty See xterm(1).
One page links to
XtermNotes
:
UserSubmittedNotes