xterm is the standard terminal emulator for the X Window System.

learn more… | top users | synonyms

14
votes
3answers
3k views

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 ...
13
votes
2answers
1k views

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, ...
12
votes
2answers
2k views

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 ...
11
votes
3answers
7k views

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 ...
11
votes
4answers
127 views

support for utf-8 encoding with lpr

While trying to send a text file to the printer via lpr from xterm, the content was corrupted beyond recognition, the cause of which was ultimately traced to the encoding of the file. If I instead ...
10
votes
1answer
256 views

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 ...
9
votes
3answers
304 views

How can my script know when I'm in a virtual console vs. an xterm?

A few of my scripts (keymap changing, public key adding) need to act differently when in a virtual console vs. in an xterm. What's the real code for #!/bin/ksh if [[ in_a_virtual_console ]]; then ...
8
votes
2answers
227 views

How can I make unicode symbols and truetype fonts work in xterm/uxterm?

I'd like to use a truetype font in xterm/uxterm (version 278) but I get problems with unicode symbols (é for example displays fine, so I guess it's not a disabled utf8 or a locale issue): $ echo -e ...
8
votes
1answer
226 views

Why do we need so many terminal emulator packages and what is their use?

This is something that has been so confusing to me for a long time. I am using Linux but I have gaps in my understanding of certain aspects and one is about the terminal. As I came to understand it ...
7
votes
2answers
2k views

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 ...
6
votes
2answers
2k views

How to identify which xterm a shell or process is running in?

I usually use long running X sessions with several virtual desktops and many many xterms. I also use job control in the shell (zsh). Sometimes I wish I could identify an xterm a shell or process is ...
6
votes
3answers
945 views

Is it possible to obtain the current name of the xterm window?

This LDP Howto demonstrates how to change the title of an xterm. I know that this is also possible using the xtitle command. Before invoking a long-running action, my script uses such techniques to ...
6
votes
1answer
196 views

What kind of notification is Firefox sending when a download has finished?

I'm using the dynamic window manager of suckless (dwm). I noticed that firefox is able to send nice notifications when a download has finished. See the two figures When I'm on a different tag, I ...
6
votes
1answer
298 views

Emacs commands in xterm

I found that the commands I used to use in gnome-terminal, those I learned in Emacs, are only partially working in xterm. In some cases, I get strange chars like ÿ, æ, and â instead. Do you know how ...
6
votes
1answer
484 views

emacsclient -t hangs

I'm trying to use emacs (23.2.1) in daemon mode. I started it as emacs --daemon and that works just fine. But whenever I try emacsclient -t somefile I first get a line of garbage (e.g., `1;25C2;'), ...
5
votes
4answers
4k views

How to copy text to xterm

How to paste text in a xterm? Now I can copy text from xterm to an outside application, like Firefox, by highlighting the text there. But I can not copy text from firefox to xterm. I am just normal ...
5
votes
2answers
4k views

xterm colors are too bright

I've just started using dwm a couple days ago and I'm using xterm (uxterm) as a terminal emulator. However, I'm noticing that certain applications (like vi/vim, ls, and others) that output in color ...
5
votes
2answers
142 views

Escape code 50 in xterm

My coworker has the following in the ~/.bash_profile of many of our servers: echo -e "\033]50;SetProfile=Production\a" The text doesn't seem to matter, since this also works: echo -e ...
5
votes
3answers
139 views

Getting unexpected colorized output on several commands

I just added this to my .bashrc to get colorized output with less: # Colorize less man pages. export LESS_TERMCAP_md=$'\e[01;34m' export LESS_TERMCAP_us=$'\e[01;33m' export ...
5
votes
2answers
723 views

is it possible to send a control sequence to a terminal emulator using the keyboard

If you type echo -e '\eZ' and hit return in a shell running in an xterm, you'll see that the terminal emulator prints an obscure code 1;2c. This seems to indicate that xterm interprets the VT100 ...
5
votes
1answer
566 views

What's the right value of $TERM for emacs' ansi-term, especially if 'eterm-color' isn't available after SSH?

I'm currently setting $TERM to xterm-256color: if [[ -n "$EMACS" ]]; then export TERM=xterm-256color alias emacs="emacsclient --no-wait" export EDITOR="emacsclient --no-wait" export ...
5
votes
1answer
1k views

How can I save the Xterm configuration I set at runtime?

I configured my xterm using the CTRL-MiddleClick and CTRL-RightClick. Is there a way to export save these settings?
5
votes
2answers
2k views

how to make XTerm never use bold characters?

I am trying to make XTerm to never use a bold font, and nothing seems to work. I put settings in ~/.Xresources and then run xrdb ~/.Xresources and then start a new XTerm. This is what I try: ...
4
votes
2answers
73 views

How to prevent a specific instance of xterm from title changes?

If you start xterm from the command line giving it a title with the -T option xterm -T "my window title" the window title is likely to be overwritten via escape sequences for the shell prompt, ...
4
votes
2answers
668 views

Tmux eclipsed colorized output of ls

I'm running Xubuntu 12.04, and when I use the Terminal I get colored filenames from ls. But inside tmux, everything ls prints is white. I know my tmux supports color, though, because I get color ...
4
votes
3answers
1k views

Fastest way to get an Euro symbol at a prompt?

First of all I'm working on a keyboard using a QWERTY layout. Now once in a while I need to get the Euro (€) symbol in my terminal (typically in a xterm). If I cut'n'paste the Euro symbol, it shows ...
4
votes
2answers
774 views

How to start an xterm from Nautilus, running in the folder I'm viewing?

This was easy in Thunar, but now I'm on a machine where I'm trying to do everything in the Gnome desktop world. In Nautilus, I'm in some deep-down folder. How do I open an xterm (rxvt, aterm, ...
4
votes
1answer
3k views

Run xterm with login shell or not?

Per default xterm starts an interactive shell. But you can also configure it to start an interactive login-shell. That means that with starting an xterm you get the same kind of shell like logging in ...
4
votes
1answer
91 views

Binding Shift-Enter to insert a newline without evaluating the current expression

I try to bind Shift-Enter to insert a newline without evaluating the current expression in the terminal and in repl modes. Reading through the ArchWiki, I tried setting this in my ~/.Xmodmap file and ...
4
votes
1answer
179 views

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 ...
3
votes
3answers
346 views

How are “xterm” and “screen” related?

I am not quite sure if there is any subtle or wide differences between screen and xterm. I have used screen before and had it being described as kind of like a multiplexer and have tried xterm a few ...
3
votes
1answer
102 views

After upgrade, X button in titlebar no longer closes xterm

In theory, pressing the close button should close an xterm. It did before I did an aptitude upgrade. (I'm running Debian testing). But now it doesn't—clicking the X does nothing—but only for some ...
3
votes
4answers
4k views

Xterm with Solarized only showing dark background without font colors

I am trying to get the Solarized color scheme for xterm, but have not had much success with it. I am running Debian 6 and downloaded the Xresources to ~/.Xresources. After loading the new settings ...
3
votes
2answers
154 views

Why do different terminals have different values for keys in the .inputrc file?

This question really started from here. I would like to know why different terminals like rxvt and xterm use different values when mapping key combinations? Whilst I am in rxvt or xterm how can I find ...
3
votes
1answer
488 views

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 ...
3
votes
3answers
373 views

Sed processed file displays differently in vi vs cat

I can't tell if sed is mucking my file up. In vi or less it displays properly, but cat and more insert other characters. why are they showing up differently I am on a redhat linux system with a ...
3
votes
1answer
31 views

Can I make text in xterm looks and feels like gnome-terminal?

The picture on top you can see my xterm, the picture under is the gnome-terminal. Ok This is what I want to get: I use the same font in both but looks different: Xterm*faceName: DejaVu Sans Mono ...
3
votes
1answer
353 views

TERM=(linux|xterm) vi in an xterm or the AAABBBBBBCCDDD-problem

Usually when I want to run vim in a desktop konsole session, I make sure the TERM variable is set to linux as the arrow keys don't work in insert mode with TERM=xterm. They show capital A..D instead ...
3
votes
1answer
2k views

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 ...
3
votes
2answers
81 views

Why whould xterm behave differently than x-terminal-emulator when it points to the same executable?

lrwxrwxrwx 1 root root 14 Apr 19 14:36 /etc/alternatives/x-terminal-emulator -> /usr/bin/xterm Running it using these 2 calls: /usr/bin/xterm /etc/alternatives/x-terminal-emulator First ...
3
votes
3answers
223 views

How to search XTerm console history?

Is there some way to search XTerm's console history interactively, like Ctrl+Shift+f in GNOME Terminal and Terminator? I could run script in my .bashrc or possibly even patch XTerm, but it would be ...
3
votes
1answer
581 views

How to configure screen-restore in a terminal?

Depending on the terminal/environment following sequence has different effects: $ ls 1 2 $ man ls enter q Either I see last displayed man-page screen above the current prompt or the ls output and ...
3
votes
1answer
22 views

Hindi fonts in xterm

xterm fails to display the Indian fonts (Hindi). Instead, it displays the garbage character. I'm using xterm version 293 on LFS I copied sample hindi text from here
3
votes
1answer
66 views

Terminal emulators and btsync behavior

I've downloaded the BitTorrent Sync binary. The program only provides a Web UI interface. I'm trying to create a window for the daemon, using a terminal emulator, because I don't need an always online ...
3
votes
2answers
597 views

How to make the login shell xterm use utf-8?

I use xterm (X-Win32 2012 Build 30 from StarNet Communications Corp) to login from a Windows 7 PC to a Red Enterprise Linux 6 (RHEL6). My problem is that all multi-byte utf-8 characters comes out ...
3
votes
1answer
213 views

Why do I get this 'Erase is backspace' message after I do a reset in xterm?

So when I do a reset in xterm I get something like this: Erase is backspace. [omarg@computer]: I've already checked my .bashrc and .Xdefaults files but it doesn't seem like that message is being ...
3
votes
1answer
1k views

How to tell xfce (or an application) where to put the window when starting?

I have a number of different boxes, all running debian and xfce. When I launch multiple applications (specifically xterm windows) on one machine, they end up all in the center of the desktop, and they ...
3
votes
1answer
337 views

How to set up `screen` to modify the window title and xterm-window title?

I'd like to have my current $PS1 prompt (\u@\h:\w$(__git_ps1 "(%s)")\$ plus some coloring) to be also used as screen's window title (in the hardline) and as the xterm window title. How can this be ...
3
votes
1answer
491 views

How can I run byobu from xterm at starting?

I set up byobu auto run with the command byobu-enable. It's great when I log in from terminal or ssh, but how can I make xterm attach to it automatically ? (mate-terminal from Linux mint especially)
3
votes
2answers
713 views

Why use a pts for xterm or anything

I keep reading on multiple sites that pts device files are used for pseudo-terminals which are "not directly connected to the hardware" (ssh, telnet). Since xterm running on you machine is directly ...