Difference between revisions of "Xterm"

From ArchWiki
Jump to: navigation, search
(Added how to change the font and background color.)
Line 34: Line 34:
  
 
  xterm*metaSendsEscape: true
 
  xterm*metaSendsEscape: true
 +
 +
===Change background and font color===
 +
First you make an Xresource file which is a regular textfile and it is described at [[X resources]]. You find a color you like at http://www.colorpicker.com/ and copy the 6 alphanumerical above the picture. Then to change your background you add
 +
{{bc|
 +
xterm*background: #<alphanumeric>
 +
}}
 +
and for the font you add
 +
{{bc|
 +
xterm*foreground: #<alphanumeric>
 +
}}
 +
Notice the casing on xterm. It did not work for me with XTerm or Xterm. Also after you make changes and do
 +
{{bc|
 +
xrdb -merge /path/to/Xresources
 +
}}
 +
or
 +
{{bc|
 +
xrdb /path/to/Xresources
 +
}}
 +
you have to start a new xterm window to see the changes.

Revision as of 04:29, 29 April 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Automatic transparency

Install the package transset-df and a composite manager like Xcompmgr.

Add the following line to your ~/.bashrc:

[ -n "$XTERM_VERSION" ] && transset-df -a >/dev/null

Now, each time you launch a shell in an xterm and a composite manager is running, it will become transparent. the test in front of the transset-df command keeps it from executing if that variable is not defined. Note that your terminal will not be transparent if you launch a program other than the shell this way. It is probably possible to work around this if you want the functionality.

See Also

Tips

Xterm menu

Xterm has a hidden menu that can be viewed by holding the Template:Keypress key and pressing the first mouse button (left click) on a Xterm window.

Enable bell urgency

Add the following line to your ~/.Xresources file:

xterm*bellIsUrgent: true

Remove black border

Xterm has a black border in some cases, you can disable this by adding the following line to your ~/.Xresources file.

xterm*borderWidth: 0

My Alt key doesn't work correctly

You can fix this on a per-term basis by enabling the Meta Sends Escape option in the Xterm menu, or for all Xterm terminals by adding the following line to your ~/.Xresources file.

xterm*metaSendsEscape: true

Change background and font color

First you make an Xresource file which is a regular textfile and it is described at X resources. You find a color you like at http://www.colorpicker.com/ and copy the 6 alphanumerical above the picture. Then to change your background you add

xterm*background: #<alphanumeric>

and for the font you add

xterm*foreground: #<alphanumeric>

Notice the casing on xterm. It did not work for me with XTerm or Xterm. Also after you make changes and do

xrdb -merge /path/to/Xresources

or

xrdb /path/to/Xresources

you have to start a new xterm window to see the changes.