xterm is the standard terminal emulator for the X Window System.
Questions tagged [xterm]
417 questions
66
votes
4 answers
Which terminal type am I using?
I have tested this with both Ubuntu 12.04 and Debian 7. When I do
echo $TERM
I get
xterm
But if I use the dropdown menu "help" > "about" then it says gnome terminal 3.4.1.1.
Does this mean I am using just gnome-terminal? Or just xterm? Or is…
mulllhausen
- 2,648
- 9
- 36
- 42
32
votes
2 answers
How to avoid escape sequence attacks in terminals?
Reading the details of CVE-2009-4487 (which is about the danger of escape sequences in log files) I am a bit surprised.
To quote CVE-2009-4487:
nginx 0.7.64 writes data to a log file without sanitizing non-printable characters, which might allow…
maxschlepzig
- 56,316
- 50
- 205
- 279
26
votes
3 answers
Display command in xterm titlebar
My Bash Prompt is currently setting the xterm titlebar using the following sequence:
PS1='\033]0;\u@\h>\w\007'
Is there an easy way to display the current command in the titlebar. For example, if I am tailing a file using tail -f foo.log, I want my…
dogbane
- 29,087
- 16
- 80
- 60
25
votes
2 answers
GNU Screen weird characters on click
I have a small problem in GNU screen. A GNU screen session runs on my RaspberryPi. Now sometimes, when I join it, if I click in the terminal (I'm using terminator on Fedora) I see weird characters written. These characters depend on the coordinates…
Noé Malzieu
- 807
- 3
- 10
- 15
23
votes
2 answers
How to configure the double click behavior in an X terminal?
Under different Unix/Linux systems I've observed different double click behavior in X terminal applications (e.g. xterm).
Sometimes a double click selects everything left and right until the next non-alphabetic character (e.g. it selects the word…
maxschlepzig
- 56,316
- 50
- 205
- 279
23
votes
2 answers
zsh: set TERM=screen-256color in tmux, but xterm-256color without tmux
I need my $TERM to be xterm-256color outside of tmux (in "plain" terminal with zsh), but screen-256color inside tmux.
First I tried:
add export TERM='xterm-256color' to my ~/.zshrc.
add set -g default-terminal "screen-256color" to my…
Dmitry Frank
- 2,668
- 8
- 27
- 38
22
votes
8 answers
How can I find the default (font) resource XTerm is using?
If I launch xterm with its default bitmap fonts and then select the 'Large' font from the 'VT Fonts' menu (via ctrl+right mouse), I get a very usable bitmap font with apparently good Japanese character support.
I'd like to know what this font is so…
Paul Whittaker
- 323
- 1
- 2
- 5
22
votes
3 answers
What is bash's meta key?
I tried to use xmodmap to map META_L to the MENU key but it doesn't seem to be accepted by bash as the meta key. So, I am wondering how these components (keyboard, X, xterm, bash) relate to each in regard the the Meta- and Super-Keys. Any…
Leo
- 221
- 1
- 2
- 3
22
votes
3 answers
Larger "xterm" fonts on HIDPI displays
After several years of happily using different terminal emulators like Konsole, Gnome-TERMINAL, and lately XFCE Terminal in their appropriate desktop environments, I decided to use good old xterm with its bitmap fonts. It works just fine, it…
Ho1
- 2,552
- 3
- 20
- 25
21
votes
5 answers
How can I copy text from xterm (Awesome, Debian, VirtualBox)?
I ran the minimal Debian installation inside a VirtualBox instance, installed X11 and Awesome window manager manually (without any custom configuration yet) and installed VirtualBox additions as well (and enabled shared clipboard in settings).…
Max Yankov
- 429
- 2
- 4
- 8
17
votes
2 answers
tmux set-titles doesn't work?
To start tmux on every shell login, the following was added to the ~/.bashrc (on the server):
if [ $TERM != "screen-256color" ] && [ $TERM != "screen" ]; then
tmux attach || tmux new; exit
fi
I also want to change the window title to something…
quanta
- 1,670
- 1
- 14
- 25
17
votes
3 answers
How to get VIM to display 256 colors properly
I'm trying to get 256 color theme files to work with VIM under xterm.
This is peaksea how it looks for me:
How it should look:
I've tried following the tips on the wiki page to no avail.
set t_Co=256 works fine but
set t_AB=^[[48;5;%dm
set…
jmathew
- 2,888
- 2
- 15
- 11
16
votes
2 answers
Set urxvt to work with 256 colors
I had spent so much time to try to get urxvt to work with 256 colors. I am using Ubuntu. I have followed a part of this post
cd ~
infocmp -L rxvt-unicode > rxvt-unicode.terminfo
vi rxvt-unicode.terminfo
# Change the following from:
#
# …
ma08
- 845
- 2
- 7
- 19
15
votes
4 answers
How to start XTerm with prompt at the bottom?
When starting XTerm the prompt starts at the first line of the terminal. When running commands the prompt moves down until it reaches the bottom, and from then on it stays there (not even Shift-Page Down or the mouse can change this). Rather than…
l0b0
- 50,672
- 41
- 197
- 360
15
votes
2 answers
Is it correct to set the $TERM variable manually?
I set the $TERM variable adding the line XTerm*termName: xterm-256color to my .Xresources file. When I did it I didn't know what exactly that meant (I was following an online guide to change the look of xterm), but now I have read a little more and…
Santaru72
- 231
- 2
- 3
- 4