TIP You can read this website in a terminal by installing and running Lynx.
+Tip
+You can read this website in a terminal by installing and running Lynx.
+Configuring XTerm
Almost all of XTerm's configuration is described in terms of X resources (see archlinux.org and stuff.mit.edu). For desktop users, X resources are typically stored in the ~/.Xresources
dotfile. (For additional details, see the section ~/.Xresources for advanced use cases further below.)
The X resources that you can configure for XTerm are listed in the XTerm manpage, which is available as $ man xterm
or online.
Configuring XTerm
Checking for the ~/.Xresources dotfile
Before doing anything regarding the ~/.Xresources
dotfile, first check if you already have it in the system's user home directory. Because ~/.Xdefaults
and ~/.Xdefaults-*
are other dotfiles where X resources might be stored, you can check for their presence too. Read the output of the command to find out:
$ ls -a ~/.Xresources ~/.Xdefaults ~/.Xdefaults-*
TIP The easiest way to start with a ~/.Xresources
dotfile is to download and use the sample file (see instructions inside that file). Alternatively, you can run $ touch ~/.Xresources
to create a blank one where you can add XTerm configuration lines.
Tip
+The easiest way to start with a ~/.Xresources
dotfile is to download and use the sample file (see instructions inside that file). Alternatively, you can run $ touch ~/.Xresources
to create a blank one where you can add XTerm configuration lines.
Checking the loaded X resources
Run $ xrdb -query
to view the loaded X resources.
TIP This command might be useful after editing the ~/.Xresources
dotfile.
Tip
+This command might be useful after editing the ~/.Xresources
dotfile.
Loading the X resources from the ~/.Xresources dotfile
Run $ xrdb -merge ~/.Xresources
.
Updating the ~/.Xresources dotfile
@@ -1579,12 +1588,12 @@Differences between
.Xresources
are loaded into the X server, so are linked to a particular display environment.
-"For most desktop environments, ~/.Xresources should be loaded at login. Note that if you make changes, you will need to run xrdb to pick them up. In my case, typically I care more about the server than the client for things like font size: for example, when using my laptop the resources are configured to suit a 14" screen at a particular resolution, and those same settings are used when I run xvile either locally, or remotely on my workstation over ssh. When sitting at my workstation which has a somewhat larger screen, I want different settings configured in the X server. By using .Xresources rather than .Xdefaults the same invocation of xvile behaves appropriately depending on where it is being displayed, rather than where was invoked from." Source ".Xresources
works using ssh -x
. I thought that my window manager would automatically load .Xresources
, but it doesn't do so. Modifying my .xinitrc
fixes the problem." Source
+"For most desktop environments, ~/.Xresources
should be loaded at login. Note that if you make changes, you will need to run xrdb
to pick them up. In my case, typically I care more about the server than the client for things like font size: for example, when using my laptop the resources are configured to suit a 14" screen at a particular resolution, and those same settings are used when I run xvile
either locally, or remotely on my workstation over ssh
. When sitting at my workstation which has a somewhat larger screen, I want different settings configured in the X server. By using .Xresources
rather than .Xdefaults
the same invocation of xvile
behaves appropriately depending on where it is being displayed, rather than where was invoked from." Source ".Xresources
works using ssh -x
. I thought that my window manager would automatically load .Xresources
, but it doesn't do so. Modifying my .xinitrc
fixes the problem." Source
.Xdefaults
are set based on the client.
.Xdefaults-host and XENVIRONMENT
-"On POSIX-based systems, the user's environment resource file name is specified by the value of the XENVIRONMENT
Environment Variable. If this environment variable does not exist, the user's home directory is searched for a file named .Xdefaults-<host>
, where <host>
is the host name of the machine on which the application is running." Source
+"On POSIX-based systems, the user's environment resource file name is specified by the value of the XENVIRONMENT
Environment Variable. If this environment variable does not exist, the user's home directory is searched for a file named .Xdefaults-<host>
, where <host>
is the host name of the machine on which the application is running." Source
XAPPLRESDIR
Another in-depth alternative is to set XAPPLRESDIR
, which lets one set up a directory where X will search for an .Xresources
dotfile:
application-specific files
@@ -1603,8 +1612,14 @@ XAPPLRESDIR
X Toolkit Intrinsics - C Language Interface discusses this as well.
Additional resources
Run $ xrdb -help
or see the xrdb manpage for more xrdb
options.
-WARNING Running some of the xrdb
options interferes with dynamic loading of X resources by applications.
-WARNING If you decide to use $ xrdb -remove
, be aware that it clears (!) all previously loaded X resources, including the X resources that were loaded at login.
+
+Warning
+Running some of the xrdb
options interferes with dynamic loading of X resources by applications.
+
+
+Warning
+If you decide to use $ xrdb -remove
, be aware that it clears (!) all previously loaded X resources, including the X resources that were loaded at login.
+
.Xresources
are loaded into the X server, so are linked to a particular display environment.
"For most desktop environments, ~/.Xresources should be loaded at login. Note that if you make changes, you will need to run xrdb to pick them up. In my case, typically I care more about the server than the client for things like font size: for example, when using my laptop the resources are configured to suit a 14" screen at a particular resolution, and those same settings are used when I run xvile either locally, or remotely on my workstation over ssh. When sitting at my workstation which has a somewhat larger screen, I want different settings configured in the X server. By using .Xresources rather than .Xdefaults the same invocation of xvile behaves appropriately depending on where it is being displayed, rather than where was invoked from." Source ".Xresources
works using ssh -x
. I thought that my window manager would automatically load .Xresources
, but it doesn't do so. Modifying my .xinitrc
fixes the problem." Source
"For most desktop environments, ~/.Xresources
should be loaded at login. Note that if you make changes, you will need to run xrdb
to pick them up. In my case, typically I care more about the server than the client for things like font size: for example, when using my laptop the resources are configured to suit a 14" screen at a particular resolution, and those same settings are used when I run xvile
either locally, or remotely on my workstation over ssh
. When sitting at my workstation which has a somewhat larger screen, I want different settings configured in the X server. By using .Xresources
rather than .Xdefaults
the same invocation of xvile
behaves appropriately depending on where it is being displayed, rather than where was invoked from." Source ".Xresources
works using ssh -x
. I thought that my window manager would automatically load .Xresources
, but it doesn't do so. Modifying my .xinitrc
fixes the problem." Source
.Xdefaults
are set based on the client.
.Xdefaults-host and XENVIRONMENT
-"On POSIX-based systems, the user's environment resource file name is specified by the value of the XENVIRONMENT
Environment Variable. If this environment variable does not exist, the user's home directory is searched for a file named .Xdefaults-<host>
, where <host>
is the host name of the machine on which the application is running." Source
"On POSIX-based systems, the user's environment resource file name is specified by the value of the XENVIRONMENT
Environment Variable. If this environment variable does not exist, the user's home directory is searched for a file named .Xdefaults-<host>
, where <host>
is the host name of the machine on which the application is running." Source
XAPPLRESDIR
Another in-depth alternative is to set XAPPLRESDIR
, which lets one set up a directory where X will search for an .Xresources
dotfile:
application-specific files
@@ -1603,8 +1612,14 @@ XAPPLRESDIR
X Toolkit Intrinsics - C Language Interface discusses this as well.
Additional resources
Run $ xrdb -help
or see the xrdb manpage for more xrdb
options.
-WARNING Running some of the xrdb
options interferes with dynamic loading of X resources by applications.
-WARNING If you decide to use $ xrdb -remove
, be aware that it clears (!) all previously loaded X resources, including the X resources that were loaded at login.
+
+Warning
+Running some of the xrdb
options interferes with dynamic loading of X resources by applications.
+
+
+Warning
+If you decide to use $ xrdb -remove
, be aware that it clears (!) all previously loaded X resources, including the X resources that were loaded at login.
+
Tip
+You can read this website in a terminal by installing and running Lynx.
+Copy and paste
Selecting text in XTerm
You can easily select text in an XTerm window as you would expect in another application:
@@ -1451,22 +1455,43 @@Selecting text in XTerm
TIP XTerm's X resources enable you to configure how much of text you wish to get selected on multiple clicks, adjust the clicking speed (as time interval) for multiple clicks, include or exclude the new line, and more. For more information, see Configure and Customize copy and paste.
+Tip
+XTerm's X resources enable you to configure how much of text you wish to get selected on multiple clicks, adjust the clicking speed (as time interval) for multiple clicks, include or exclude the new line, and more. For more information, see Configure and Customize copy and paste.
+With a mouse or trackball that has a scroll wheel, you can extend your initial selection beyond the visible screen in an XTerm window:
1. Make your initial selection by left-clicking and dragging to highlight text.
2. Scroll down (or up) to where you want to continue the started selection.
3. Right-click precisely on the line and column where you want to complete the selection.
If the selection is very long, you can continue to scroll and right-click to extend the selection multiple times.
-NOTE Right-clicking means using mouse button 3, and scrolling works as described when XTerm is not using the mouse protocol.
+Note
+Right-clicking means using mouse button 3, and scrolling works as described when XTerm is not using the mouse protocol.
Copying text in XTerm
By default, XTerm automatically copies every text selection you make in an XTerm window. You don't need to press any keyboard shortcuts (like Ctrl+C) or go into any menu (like clicking a Copy button). XTerm has already copied the selected text.
-IMPORTANT Unconfigured XTerm copies text to the PRIMARY buffer rather than CLIPBOARD that most applications use nowadays. Unless you prefer or need to use the PRIMARY buffer on purpose, it's best that you configure XTerm to copy all text to CLIPBOARD instead. To do that, all you need to do is add the XTerm.vt100.selectToClipboard: true
X resource to your dotfile (this is already true
in sample.Xresources). For more information, see Configure and Customize copy and paste.
TIP You can configure XTerm to work with a keyboard shortcut to copy text if you can't get used to the convenience of not having to press any keys to copy. For how to set a custom keyboard shortcut, see Configure and Customize copy and paste.
+Warning
+Unconfigured XTerm copies text to the PRIMARY buffer rather than CLIPBOARD that most applications use nowadays. Unless you prefer or need to use the PRIMARY buffer on purpose, it's best that you configure XTerm to copy all text to CLIPBOARD instead. To do that, all you need to do is add the XTerm.vt100.selectToClipboard: true
X resource to your dotfile (this is already true
in sample.Xresources). For more information, see Configure and Customize copy and paste.
Tip
+You can configure XTerm to work with a keyboard shortcut to copy text if you can't get used to the convenience of not having to press any keys to copy. For how to set a custom keyboard shortcut, see Configure and Customize copy and paste.
+Pasting text in XTerm
By default, to paste copied text into an XTerm window, use the Shift+Insert keyboard shortcut or the middle mouse button (if your mouse or trackpad has one).
-TIP Depending on your system, you should be able to use the Shift+Insert keyboard shortcut for pasting text copied from an XTerm window into other applications (like Ctrl+V). If you stick with using the Shift+Insert keyboard shortcut in XTerm, it's easier to remember and more convenient to use this same shortcut every time you paste text copied to or from XTerm.
-TIP You can set a custom keyboard shortcut for pasting selected text. For how to do that, see Configure and Customize copy and paste. This is useful in some situations such as when the keyboard you're using doesn't have a dedicated Insert button, making it difficult to press Shift+Insert.
-TIP If your hardware doesn't have the middle mouse button, you might be able to set up emulation to use both the left and right mouse buttons instead of the middle mouse button.
+Tip
+Depending on your system, you should be able to use the Shift+Insert keyboard shortcut for pasting text copied from an XTerm window into other applications (like Ctrl+V). If you stick with using the Shift+Insert keyboard shortcut in XTerm, it's easier to remember and more convenient to use this same shortcut every time you paste text copied to or from XTerm.
+Tip
+You can set a custom keyboard shortcut for pasting selected text. For how to do that, see Configure and Customize copy and paste. This is useful in some situations such as when the keyboard you're using doesn't have a dedicated Insert button, making it difficult to press Shift+Insert.
+Tip
+If your hardware doesn't have the middle mouse button, you might be able to set up emulation to use both the left and right mouse buttons instead of the middle mouse button.
+TIP You can read this website in a terminal by installing and running Lynx.
+Tip
+You can read this website in a terminal by installing and running Lynx.
+Guide to control sequences
This page is under construction.
This content is currently available on Thomas E. Dickey's website.
diff --git a/docs/ctlseqs-list/index.html b/docs/ctlseqs-list/index.html index 68af806..f6fde8d 100644 --- a/docs/ctlseqs-list/index.html +++ b/docs/ctlseqs-list/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@TIP You can read this website in a terminal by installing and running Lynx.
+Tip
+You can read this website in a terminal by installing and running Lynx.
+List of control sequences
This page is under construction.
This content is currently available on Thomas E. Dickey's website.
diff --git a/docs/fonts/index.html b/docs/fonts/index.html index 69f935d..c21d7c7 100644 --- a/docs/fonts/index.html +++ b/docs/fonts/index.html @@ -8,7 +8,7 @@ - + @@ -64,6 +64,11 @@Fonts
- +Tip
+You can read this website in a terminal by installing and running Lynx.
+Fonts
This page is under construction.
@@ -1376,13 +1404,13 @@Fonts
- +Tip
+You can read this website in a terminal by installing and running Lynx.
+Full-screen
This page is under construction.
diff --git a/docs/getting-started-with-ctlseqs/index.html b/docs/getting-started-with-ctlseqs/index.html index bb867bd..81096b9 100644 --- a/docs/getting-started-with-ctlseqs/index.html +++ b/docs/getting-started-with-ctlseqs/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@TIP You can read this website in a terminal by installing and running Lynx.
+Tip
+You can read this website in a terminal by installing and running Lynx.
+Getting started with control sequences
This page is under construction.
diff --git a/docs/history/index.html b/docs/history/index.html index 02d56a6..5ebad64 100644 --- a/docs/history/index.html +++ b/docs/history/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@Tip
+You can read this website in a terminal by installing and running Lynx.
+TBD, The XTerm story
This page is under construction.
Part of this content is currently available on Thomas E. Dickey's website: here and here.
diff --git a/docs/icon/index.html b/docs/icon/index.html index 27e762e..caced73 100644 --- a/docs/icon/index.html +++ b/docs/icon/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@Tip
+You can read this website in a terminal by installing and running Lynx.
+XTerm icon
This page is under construction.
Part of this content is currently available on Thomas E. Dickey's website.
diff --git a/docs/index.html b/docs/index.html index 3d9850d..9095350 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@TIP You can read this website in a terminal by installing and running Lynx.
+Tip
+You can read this website in a terminal by installing and running Lynx.
+XTerm
Developed and maintained since 1986.
What is it?
diff --git a/docs/keyboard-shortcuts/index.html b/docs/keyboard-shortcuts/index.html index e4e7ee3..b19fb9f 100644 --- a/docs/keyboard-shortcuts/index.html +++ b/docs/keyboard-shortcuts/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@Tip
+You can read this website in a terminal by installing and running Lynx.
+Keyboard shortcuts for XTerm
The keyboard shortcuts to use in XTerm windows fall into two categories:
-
diff --git a/docs/luit-archives/index.html b/docs/luit-archives/index.html
index a969e00..bb10a52 100644
--- a/docs/luit-archives/index.html
+++ b/docs/luit-archives/index.html
@@ -8,7 +8,7 @@
-
+
@@ -141,7 +141,7 @@
- - - Prompt - - - - - - @@ -513,6 +499,20 @@ +
- + + Prompt + + + + + + + + + + +
-
Template
@@ -1363,12 +1363,16 @@
- + + +Tip
+You can read this website in a terminal by installing and running Lynx.
+Luit archives
This page is under construction.
This content is currently available on Thomas E. Dickey's website.
diff --git a/docs/luit.tar.gz/index.html b/docs/luit.tar.gz/index.html index 3156c56..a8eff43 100644 --- a/docs/luit.tar.gz/index.html +++ b/docs/luit.tar.gz/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@- +@@ -185,7 +185,7 @@- +@@ -418,20 +418,6 @@ - - - - - -- - - Prompt - -
- - - - @@ -513,6 +499,20 @@ +- + + Prompt + +
+ + + + + + + + +- Template @@ -1363,12 +1363,16 @@
- + + +Tip
+You can read this website in a terminal by installing and running Lynx.
+luit.tar.gz
This page is under construction.
This content is currently available on Thomas E. Dickey's website.
diff --git a/docs/manpage-koi8rxterm/index.html b/docs/manpage-koi8rxterm/index.html index 73012a7..16f3c55 100644 --- a/docs/manpage-koi8rxterm/index.html +++ b/docs/manpage-koi8rxterm/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@- +@@ -185,7 +185,7 @@- +@@ -418,20 +418,6 @@ - - - - - -- - - Prompt - -
- - - - @@ -513,6 +499,20 @@ +- + + Prompt + +
+ + + + + + + + +- Template @@ -1361,7 +1361,7 @@
- + diff --git a/docs/manpage-luit/index.html b/docs/manpage-luit/index.html index 3f2e02e..9255abe 100644 --- a/docs/manpage-luit/index.html +++ b/docs/manpage-luit/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@ - +@@ -185,7 +185,7 @@- +@@ -418,20 +418,6 @@ - - - - - -- - - Prompt - -
- - - - @@ -513,6 +499,20 @@ +- + + Prompt + +
+ + + + + + + + +- Template @@ -1363,7 +1363,7 @@
- + diff --git a/docs/manpage-resize/index.html b/docs/manpage-resize/index.html index 595151c..debfa79 100644 --- a/docs/manpage-resize/index.html +++ b/docs/manpage-resize/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@ - +@@ -185,7 +185,7 @@- +@@ -418,20 +418,6 @@ - - - - - -- - - Prompt - -
- - - - @@ -513,6 +499,20 @@ +- + + Prompt + +
+ + + + + + + + +- Template @@ -1361,7 +1361,7 @@
- + diff --git a/docs/manpage-tack/index.html b/docs/manpage-tack/index.html index b65e058..8863287 100644 --- a/docs/manpage-tack/index.html +++ b/docs/manpage-tack/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@ - +@@ -185,7 +185,7 @@- +@@ -418,20 +418,6 @@ - - - - - -- - - Prompt - -
- - - - @@ -513,6 +499,20 @@ +- + + Prompt + +
+ + + + + + + + +- Template @@ -1363,7 +1363,7 @@
- + diff --git a/docs/manpage-tctest/index.html b/docs/manpage-tctest/index.html index 483ac18..0f47761 100644 --- a/docs/manpage-tctest/index.html +++ b/docs/manpage-tctest/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@ - +@@ -185,7 +185,7 @@- +@@ -418,20 +418,6 @@ - - - - - -- - - Prompt - -
- - - - @@ -513,6 +499,20 @@ +- + + Prompt + +
+ + + + + + + + +- Template @@ -1363,7 +1363,7 @@
- + diff --git a/docs/manpage-uxterm/index.html b/docs/manpage-uxterm/index.html index 8599218..f403841 100644 --- a/docs/manpage-uxterm/index.html +++ b/docs/manpage-uxterm/index.html @@ -8,7 +8,7 @@ - + @@ -141,7 +141,7 @@ - +