Questions tagged [xterm]

xterm is a terminal emulator for the X Window System.

In computing, xterm is the standard terminal emulator for the X Window System. A user can have many different invocations of xterm running at once on the same display, each of which provides independent input/output for the process running in it (normally the process is a Unix shell).

xterm originated prior to the X Window System. It was originally written as a stand-alone terminal emulator for the VAXStation 100 (VS100) by Mark Vandevoorde, a student of Jim Gettys, in the summer of 1984, when work on X started. It rapidly became clear that it would be more useful as part of X than as a standalone program, so it was retargeted to X. As Gettys tells the story, "part of why xterm's internals are so horrifying is that it was originally intended that a single process be able to drive multiple VS100 displays."

After many years as part of the X reference implementation, around 1996 the main line of development then shifted to XFree86 (which itself forked from X11R6.3), and it is presently actively maintained by Thomas Dickey.

Relevant links

546 questions
60
votes
12 answers

Set screen-title from shellscript

Is it possible to set the Screen Title using a shell script? I thought about something like sending the key commands ctrl+A shift-A Name enter I searched for about an hour on how to emulate keystrokes in an shell script, but didn't find the answer.
Beerweasle
  • 1,009
  • 1
  • 12
  • 16
56
votes
2 answers

Bind Ctrl+Tab and Ctrl+Shift+Tab in tmux

I'm trying to a get a ctrl+tab and ctrl+shift+tab binding to work inside of a tmux session (I'm also using PuTTY). I already went through the pains of having to recompile PuTTY so it would send ctrl and shift correctly. After using ctrl+v, and I'm…
dook
  • 1,213
  • 1
  • 13
  • 30
50
votes
4 answers

Reload .Xresources without restarting the xterm

To use ALT key in vim without tweaking, the escaping should be disabled in xterm. Without escaping the ALT will not work in bash for shortcuts. to work around I need to reload this option before starting vim: XTerm*metaSendsEscape: false | xrdb…
Nabil Sham
  • 2,305
  • 4
  • 26
  • 38
45
votes
2 answers

Vim: Difference between t_Co=256 and term=xterm-256color in conjunction with TMUX

I am testing the various different terminals that I tend to use to SSH into Linux boxes that I have Tmux set up on. Basically I noticed this behavior, and I am hoping that somebody could offer an explanation of what's going on. Now it may be the…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
43
votes
2 answers

bash command preserve color when piping

Possible Duplicate: Can colorized output be captured via shell redirect? setup In this case specifically I'm trying to preserve the colors in git status -s when piping it to another command. Some git commands, diff for instance, and other…
rennat
  • 2,529
  • 3
  • 26
  • 30
43
votes
11 answers

Can't run "ssh -X" on MacOS Sierra

I just upgraded to MacOS Sierra, and I realized that I can't seem to run the "ssh -X" command in the Terminal anymore. It used to launch xterm windows, but now it's like I didn't even put the -X option anymore. It was working absolutely fine right…
Dodie
  • 443
  • 1
  • 4
  • 8
38
votes
3 answers

What is the difference between xterm-color & xterm-256color?

I've come across both xterm-color and xterm-256color as options when trying to set up my terminal program to use color - i.e. you can set your TERM environment variable to either one. I was wondering if anyone can describe the difference between…
user12345
  • 2,876
  • 2
  • 24
  • 25
37
votes
6 answers

How do I copy text from my xterm without a mouse?

I want to use part of the output of a command run from the command line in another xterm, or as part of a different command. For instance: > grep error error.log error: can't find file ~//thisfile and I want to do this: >ls…
Nathan Fellman
  • 122,701
  • 101
  • 260
  • 319
32
votes
4 answers

Read the current text color in a xterm

I'm writing various utilities, and I'm really liking colorized text. Nothing fancy, just using escape sequences. I've created a simple class that has a pprint(msg, color) function. I've got it working rather easily after finding the codes here. The…
fandingo
  • 1,330
  • 5
  • 21
  • 31
23
votes
5 answers

How to change cursor shape depending on VI mode in Bash?

I have the following line in my .bashrc: set -o vi And I want my cursor to have a pipe shape when I am in insert mode and a block shape when I am in command mode, like what I would have in Vim if I placed the following in my .vimrc: let &t_SI =…
jinscoe123
  • 1,467
  • 14
  • 24
23
votes
4 answers

Raster graphics in xterm?

No, not ASCII graphics, see the screenshot here: http://en.wikipedia.org/wiki/W3m How is that even possible? I checked the source and it only prints character sequences. However, I am unable to find any reference to graphic drawing or image…
user14554
21
votes
4 answers

Error opening terminal: xterm-256color

When I try to nano something on my server I'm getting this error "Error opening terminal: xterm-256color." that I've never seen before, and on top of that nano used to work fine last week. Even when I use vi, the file will open but I can't…
GiH
  • 14,006
  • 13
  • 43
  • 56
21
votes
3 answers

IPython 5.0 and key bindings in console

The new release of IPython does not depend any more on readline but uses the pure Python library prompt-toolkit, solving maintenance problems on Apple's and Windows' systems. A new feature is the ability to edit a multi-line code block, using the…
gboffi
  • 22,939
  • 8
  • 54
  • 85
21
votes
5 answers

run xterm -e without terminating

I want to run xterm -e file.sh without terminating. In the file, I'm sending commands to the background and when the script is done, they are still not finished. What I'm doing currently is: (cd /myfolder; /xterm -ls -geometry 115x65 -sb -sl 1000)…
jarhead
  • 1,821
  • 4
  • 26
  • 46
18
votes
4 answers

Reading the Device Status Report ANSI escape sequence reply

I'm trying to retrieve the coordinates of cursor in a VT100 terminal using the following code: void getCursor(int* x, int* y) { printf("\033[6n"); scanf("\033[%d;%dR", x, y); } I'm using the following ANSI escape sequence: Device Status…
Witiko
  • 3,167
  • 3
  • 25
  • 43
1
2 3
36 37