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

Is it possible to send an 'cd' command to xterm from emacs?

In Emacs, I don't like shell-mode/eshell-mode since they cannot take full use of zsh and they suck much. So I hope to use xterm as the external subprocess. (global-set-key (kbd "M-") (lambda () (interactive) …
Hongxu Chen
  • 5,240
  • 2
  • 45
  • 85
4
votes
2 answers

Redirect not working correctly, 2> /dev/null becomes 2 > /dev/null and stderr doesn't get redirected

I am hoping someone can help me figure out what setting I might need to overwrite. I am working on a Unix terminal server, running a Linux Xterm linux shell. Everytime I use a command like grep "blah" 2> /dev/null at the shell prompt, the command is…
squidpie
  • 53
  • 2
  • 4
4
votes
3 answers

Mapping Alt+umlaut in .vimrc using xterm doesn't work

The following mapping doesn't work: noremap :do something I use xterm (on Ubuntu) and mappings like work. Mapping ö alone is possible but again, doesn't work. What I've tried: Adding set encoding=utf-8 at the beginning of the…
mkrnr
  • 842
  • 8
  • 17
4
votes
1 answer

Can't run OpenGL code in Netbeans (Win and cygwin), DISPLAY not set

The code compiles fine but gives this error on run: freeglut (filename): failed to open display '' How do I set the display and get it to run? Also trying to open xterm gives the same error (tried this as advice found said to run in an xterm).
Mafro34
  • 510
  • 8
  • 20
4
votes
3 answers

telneting backspace key is wrong

When I telnet into our works sun station my backspace key doesn't work. I use a temporary workaround of: $ stty erase ^H This works but each time I telnet in I have to retype this. How can I set this to work properly in my .cshrc file?
Andrew Jahn
  • 667
  • 10
  • 18
4
votes
3 answers

How to change cursor shape in Vim when entering insert mode with macOS Terminal.app?

I want to change the cursor shape from an underscore to vertical when entering insert mode within VIM running in Terminal.app. (NOTE: I am aware that this is the default behavior under macvim.) This reference:…
Rocketman
  • 3,464
  • 5
  • 27
  • 30
4
votes
3 answers

NCurses: Why does init_color return OK but still not set the color?

I am attempting to set the background of a block of text to red by setting the value COLOR_BLUE to the rgb values of: (1000, 0, 0). The background is correct (RED) if I use Gnome's "Terminal" application, but incorrect (BLUE) if I use KDE's…
ElectorNikles
  • 41
  • 1
  • 3
3
votes
1 answer

Hide helper text box from xterm js

I am using the xterm js to create a terminal application. When I add it to my Angular app, it shows the basic terminal but also a textbox with "W" on top of it. ngOnInit() { let term = new Terminal(); let fitAddon = new FitAddon(); …
781850685
  • 320
  • 2
  • 15
3
votes
3 answers

How to enable logging in xterm

Is it possible to turn on logging feature by default in xterm? Lets say for example, I have example program in c that give an output in xterm everytime i ran the program from default bash terminal in linux. And I want to save the output that shows…
Aixeta
  • 43
  • 1
  • 4
3
votes
3 answers

Reading answer to control string sent to xterm

An interactive program running in an xterm can send control codes to the xterm, which cause the xterm to respond by sending back an answer. I would like to read the answer. There are several of these control codes, so for the sake of this…
user1934428
  • 19,864
  • 7
  • 42
  • 87
3
votes
1 answer

How to use xterm with -S option?

I am trying to automate xterm and it mainly relies on the -S option while launching the xterm. From man page -Sccn This option allows xterm to be used as an input and output channel for an existing program and is sometimes used in spe‐ …
Dinesh
  • 16,014
  • 23
  • 80
  • 122
3
votes
2 answers

ncurses: init_color() has no effect

Trying to define color pairs, I was getting strange results. All 256 colors are already defined, and attempt to change any color with init_color() has no affect. I'm using Putty with 256-colors enabled and TERM=xterm-256color (also putty-256color),…
AJJ
  • 143
  • 11
3
votes
1 answer

How to get an overlay output for a command in terminal like less or man?

Some of the linux commands like less or man display their output in the current terminal occupying the whole screen. But the previous interactions reappear as is once the program quits. How can we achieve the same behavior for our custom…
wiredcontrol
  • 138
  • 8
3
votes
1 answer

How to execl an Xterm

I wonder how can I invoke an Xterm through execl. For example, for the following code #include #include #include #include #include #include #include #include…
user5574376
  • 371
  • 1
  • 5
  • 12
3
votes
1 answer

How are tty, pty, xterm and user process working together?

I'm reading The TTY demystified, trying to get some understanding about tty, pty. After reading the first half. I'm not getting the complete picture of how the whole thing is working when I'm type some commands into an xterm or ssh. Below is the…
Aaron Shen
  • 8,124
  • 10
  • 44
  • 86