27
votes
Accepted
zsh: set TERM=screen-256color in tmux, but xterm-256color without tmux
The TERM environment variable should be set by the application that is acting as your terminal. This is the whole point of the thing: letting programs running inside them know what terminal is being ...
25
votes
Accepted
How can I copy text from xterm (Awesome, Debian, VirtualBox)?
X11 uses two buffers: PRIMARY and CLIPBOARD. To copy/paste to the CLIPBOARD buffer you can often use CTRL-C and CTRL-V. You can insert to the PRIMARY buffer by selecting a text and paste from it by ...
25
votes
How can I copy text from xterm (Awesome, Debian, VirtualBox)?
It is not necessary to modify the xterm translations resources to copy data to/from Firefox, unless you prefer to use the keyboard to help with the process.
Since 2006 xterm has a feature ...
22
votes
How do you display xterm colors with putty/bash?
For me, I had to go into settings and set the terminal type. Settings -> Connection > Data > Terminal-type change to xterm-256color.
21
votes
Accepted
Set urxvt to work with 256 colors
Yes, finally found my mistake. It seems like you need to install the package rxvt-unicode-256color to get 256 color support.
sudo apt-get install rxvt-unicode-256color
is the answer to my problems.
21
votes
Accepted
Print a 256-color test pattern in the terminal
256-colour test pattern
For the above, you can use my bash code. ("Look Ma, no subprocesses!")
Or for a bash quicky:
for i in {0..255} ; do
printf "\x1b[38;5;${i}m%3d " "${i}"
if (( $i == ...
18
votes
Accepted
Why xterm displays 256 colors (not xterm-256color)?
The TERM environment variable is a way that you, the user,
can tell programs (e.g., emacs, grep, less, ls, and vim)
what kind of terminal they are running on, so they will know its parameters, ...
18
votes
Accepted
In xterm, what is "Icon Name"?
A long time ago, there was a window manager called twm—actually, it still exists and runs perfectly well. Instead of minimizing a window to a bar at the bottom of the screen (or similar) like MS ...
14
votes
How can I find the default (font) resource XTerm is using?
You can use lsof to list all files by given process id and grep for fonts.
lsof -p <process_id_of_xterm> | grep fonts
for example,
lsof -p `ps -a | grep xterm | cut -d' ' -f1` | grep fonts
...
14
votes
Accepted
How to start XTerm with prompt at the bottom?
If using bash, the following should do the trick:
TOLASTLINE=$(tput cup "$LINES")
PS1="\[$TOLASTLINE\]$PS1"
Or (less efficient as it runs one tput command before each prompt, but works after the ...
14
votes
Accepted
Larger "xterm" fonts on HIDPI displays
You have hinted the answer yourself by referencing https://en.wikipedia.org/wiki/Fixed_(typeface)
This is the standard fixed bitmap font which has been expanded by Markus Kuhn to have a rather ...
12
votes
Configure xterm to use ctrl+shift+c/ctrl+shift+v for copy/paste?
I was able to use CTRLSHIFTC and CTRLSHIFTV for Copy-and-Paste with XTerm by adding
XTerm*vt100.translations: #override \
Shift Ctrl <Key> C: copy-selection(CLIPBOARD) \n\
Shift Ctrl &...
12
votes
Accepted
Start xterm with different shell and execute commands
No, the -ls option to xterm doesn't take an argument, it just specifies that the shell that xterm start should be a login shell.
Here's the complete section on the -ls flag with the part which is ...
12
votes
Accepted
Turn off terminal bell in man pages and less
man uses your default pager, which on Ubuntu (and most other systems) is less. You can change this, but you would likely know you did. That's why the interface in which you page through man's ...
12
votes
Accepted
What uses the TERM variable?
The TERM variable is used by programs running in a terminal. It is supposed to allow programs to determine the capabilities of the terminal (or emulator) which is handling their output. It is ...
11
votes
zsh: set TERM=screen-256color in tmux, but xterm-256color without tmux
Inside your .zshrc, put
[[ -n $TMUX ]] && export TERM="xterm-256color"
And, inside your .tmux.conf
set -g default-terminal "screen-256color"
11
votes
Accepted
"Xterm" or "xterm" in configuration file
X11 resources have a name which consists of a series of components separated by a dot, such as xterm.vt100.geometry. The first component is the name of the application, the second component is a ...
10
votes
GNU Screen weird characters on click
reset has its place, but clears your screen. If you are running xterm or anything compatible, the shortest, least intrusive thing to use would be
printf '\033[?9l'
That is not explicitly stated in ...
10
votes
Accepted
How to use Ctrl-Insert to copy from XTerm?
xterm, whose conventions were established many years before Firefox, and even the web, was invented, is controlled by application resources. These are merged from several places, including files like /...
10
votes
Start xterm with different shell and execute commands
xterm uses the shell stored in $SHELL (variable initially set on login to your login shell) to parse the command line. So, if you want the command line to be parsed by a zsh shell, just do:
SHELL=/...
9
votes
Accepted
How can I make unicode symbols and truetype fonts work in xterm/uxterm?
The Liberation font doesn't seem to have this symbol. But using XTerm*faceName: DejaVu Sans Mono (which is also a truetype font) allows ☠ to be displayed.
EDIT: Do not use LibreOffice or OpenOffice ...
9
votes
Accepted
How are "xterm" and "screen" related?
you don't see actual terminals all that often anymore, but for instance the Linux text consoles on (CTRL +) ALT + F1 through F6 are considered terminals.
xterm is a terminal emulator for systems ...
9
votes
Opening a terminal other than xterm, running a command on it, and not closing the terminal after it successfully finished
Different emulators have different capabilities and protocols for the hold open feature. Some simply will not/can not do this. Others require the script to specify that the emulator remain open. I ran ...
9
votes
How can I copy text from xterm (Awesome, Debian, VirtualBox)?
Open xterm and highlight the text you want to copy.
Go to the application in which you wish to paste and hover the mouse cursor over the field you want to paste in.
Click the scroll button on your ...
9
votes
Accepted
How to hide fullscreen CLI program output in xterm on FreeBSD?
FreeBSD's termcap definition for "xterm" omits the alternate-screen escape sequence. That's been discussed here before. You could do some workaround such as (since they left the rxvt entry alone):
#...
9
votes
Accepted
Enable Ctrl+C for copy and Ctrl+Shift+C for interrupt
That's "partially there", but runs into the problem that there is no predefined (single byte) character corresponding to Ctrl+Shift+C or Ctrl+Shift+V. You need that single byte character for the ...
8
votes
How can I find the default (font) resource XTerm is using?
For fonts: xterm -report-fonts.
For colours: xterm -report-colors.
8
votes
How to configure the double click behavior in an X terminal?
xterm has several resource-settings related to double- and triple-clicking for selection (the manual page lists all of the relevant resources):
cutNewline (class CutNewline)
If "false", triple ...
8
votes
Accepted
Unable to configure font in XTerm
I finally figured out what's wrong just a couple of days ago after scrounging through multiple sources. Combining everyone's responses here:
Ubuntu Mono is a TrueType font and TrueType fonts require ...
8
votes
Accepted
"git show" shows strange characters on XTerm
Your pager seems to be configured to render the Esc character (used in escape sequences to change the text colour) as ESC instead of passing it directly to the terminal (that's independent from the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
xterm × 398terminal × 91
x11 × 42
bash × 40
colors × 29
vim × 25
fonts × 25
terminal-emulator × 25
linux × 22
x-resources × 22
gnome-terminal × 21
keyboard-shortcuts × 20
tmux × 17
unicode × 17
rxvt × 17
ubuntu × 16
shell × 16
gnu-screen × 16
debian × 12
escape-characters × 12
clipboard × 11
ssh × 10
xorg × 10
console × 9
xfce × 8