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
9
votes
4 answers

In linux, how can I test whether the output of a program is going to a live terminal or to a file?

When you use git it seems to magically know whether standard out is going through a pipe or into a file vs when it is being displayed to the console. For example, if you have colors enabled and you do git status it will colorize the output for…
Ross Rogers
  • 23,523
  • 27
  • 108
  • 164
9
votes
6 answers

to fix the color in vim or to take the plunge?

I'm disappointed because of the vim behaviour under Ubuntu 13.04 and the issues I'm having the color reproduction. I have problems when setting a colorscheme and I also tried to fix this issue with set t_Co=256 but I can do anything and nothing…
user2384250
  • 548
  • 5
  • 13
9
votes
2 answers

Invoke grc terminal colorizer on ALL commands implicitly

I love the grc colorizer for the terminal. However I have to explicitly prefix anything I want colorized with: grc --config=conf.mine Is there any way to have it automatically applied to everything you input on the command line (so that potentially…
Sridhar Sarnobat
  • 25,183
  • 12
  • 93
  • 106
9
votes
4 answers

256 color mode xterm for MacOS X

Is there any 256 color xterm for MacOS x? Like the one described below? http://www.frexx.de/xterm-256-notes/ Thank you.
n179911
  • 19,547
  • 46
  • 120
  • 162
8
votes
1 answer

How do I get the exit code of command and not xterm?

If I call a command (in my case another script) with xterm like so: xterm -e sh second.sh The value in $? after xterm returns is the exit status code of xterm (usually for me 0) and not my script. Is there anyway to get the exit status code of my…
neildeadman
  • 3,974
  • 13
  • 42
  • 55
8
votes
3 answers

How do I set up my Linux X terminal so that Emacs has access to 256 colors?

When I run emacs -nw in an X terminal window, and I ask for M-x list-colors-display, I am offered a paltry palette: black red green yellow blue magenta cyan white I am told it is…
Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
8
votes
3 answers

Python terminal emulation

I'd like to have an xterm-compatible virtual terminal running inside a Python app. I'll need to run ncurses-based applications inside it, feed it with user's input and read its output. So far I've found python-vte, but it only provides a GTK+ widget…
Eugene Pankov
  • 856
  • 1
  • 15
  • 30
8
votes
3 answers

Terminal display of input goes out of sync while/after using python? (temporary fix = `reset`)

Every time that I run python or python3 with an interactive console, the display of the prompt gets out of sync almost immediately after the first or second interaction: >>> [1,2,3] >>> [1, 2, 3] print('hi') >>> hi Then, when I exit out of python,…
reynoldsnlp
  • 1,072
  • 1
  • 18
  • 45
8
votes
2 answers

-serial pty in qemu, how to open?

I am running qemu with -serial pty option, and qemu gave this message char device redirected to /dev/pts/1 however, it doesn't generate new window, I can do cat on pts1 from different window, but then I can't input any character to it. Is there…
Isa A
  • 1,342
  • 13
  • 31
8
votes
0 answers

xmonad: shift all new windows to currently focused workspace

I know that it's possible to set certain programs to spawn in certain workspaces like so: myManageHook = composeAll [ classname =? "XTerm" --> doShift "3" ] main = xmonad $ defaultConfig { manageHook = myManageHook <+> manageHook…
ouroboros
  • 169
  • 1
  • 7
8
votes
2 answers

In an xterm, can I turn off bold or underline without resetting the current color?

I'm processing input (from sources like, but limited to, ls -la --color) and underlining certain sections of the text. I don't process these inputs character-by-character, but with lots of regular expressions, which makes it rather difficult to…
Sniggerfardimungus
  • 11,583
  • 10
  • 52
  • 97
7
votes
3 answers

Generate audio bell in terminal using Python

How can I generate audio bell in xterm type terminal?
Pablo
  • 28,133
  • 34
  • 125
  • 215
7
votes
1 answer

How to I set the default startup window size for an X11 application (such as xmgrace)

I've been trying to run through the .Xresources method, with no success (see comment here from a related question) So what do I need to modify to make sure my Xmgrace window is of a particular size? When I run xmgrace myplot.agr it always ends up…
PyKa
  • 113
  • 1
  • 7
7
votes
2 answers

Vim: Map ctrl+pgup and ctrl+pgdn (CTRL+Page Up/Down) key combinations

I'm trying to map Vim commands to the ctrl+pgup and ctrl+pgdn key combinations. The vim syntax for these keys does not work (i.e., and , or and ). Since the default vim syntax doesn't work, I'm guessing that…
GreenRaccoon23
  • 3,603
  • 7
  • 32
  • 46
7
votes
6 answers

how to clear the screen after exit vim

Sometimes vim will leave something, i.e. press any key to continue, on the terminal and is there any way to return to a clear terminal after exiting vim? I am new to vim and please tell me exactly what I should do. Sorry I did not express my idea…
jcxl
  • 145
  • 1
  • 2
  • 9
1 2
3
36 37