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
1
vote
1 answer

xterm reports wrong escape sequences on raw input

I am currently trying to do raw input in Linux (e. g. the stuff I'd normally use ncurses or similar). I already got so far as that every single keypress is directly reported to my application and is dumped as a sequence of hex codes. If I press the…
writzlpfrimpft
  • 333
  • 3
  • 14
1
vote
0 answers

Bash command to clear the VSCode integrated terminal scrollback on Windows 10?

I'm happily running Git bash in VSCode 1.53.2 on Windows 10 with: "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", The "Terminal: Clear" command (workbench.action.terminal.clear, which I have bound to Control-L) clears…
Denis Howe
  • 2,092
  • 1
  • 23
  • 25
1
vote
1 answer

export TERM before ssh'ing

I'm using TERM='xterm-256color' on my laptop but have to use TERM='xterm' on a remote server where xterm-256color is not available and breaks down a few things. So far I can do export TERM='xterm'; ssh -X 123.45.678.90, which works fine. But…
antony
  • 2,877
  • 4
  • 31
  • 43
1
vote
1 answer

How to not change the colors in other terminal programs?

I found an old game I wrote using ncurses. I noticed that after closing the game and running another ncurses based program, the colours had changed for that program as well. This is entirely expected behaviour that I wasn't aware of when I wrote the…
Erik B
  • 40,889
  • 25
  • 119
  • 135
1
vote
0 answers

How to display "live" display of child_process stdout

My question is maybe silly for some of you but after some digging on my own I'm currently struggling. My need is to use Node built-in child_process to execute shell command. But the process I would like to execute contains some "line who blinks",…
Neewd
  • 93
  • 2
  • 13
1
vote
2 answers

How do i start an xterm and follow by setenv in the new xterm?

I am writing a perl script, and the objective is to kick start an xterm, follow by setenv, follow by invoke a tool that pre-installed in the system. Here is my system call command in my perl script system("xterm","-hold", "-e", "setenv…
ericew
  • 37
  • 3
1
vote
0 answers

+++SOLVED+++ cronjob installed bash script won't execute C program +++see comment+++

Working in Debian 8.5. The installed cronjob looks like this: SHELL=/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin */1 * * * *…
1
vote
0 answers

How to open program from command line in the background (below windows already opened)?

I have small python script that opens few dozens of instances of xterm and closes most of them after few seconds. Using command like this: for i in range (80) os.system("xterm -e echo example &") allow xterm to be opened 80 times but windows…
szafran
  • 55
  • 1
  • 11
1
vote
1 answer

Can't run code on geany. Cannot execute build command

I installed geany on Fedora. It compiles and builds my c++ code but it can't run the code. "Cannot execute build command "xterm -e "/bin/sh /tmp/geany_run_script_BJ09E0.sh"": No such file or directory. Check the Terminal setting in Preferences" I'm…
Raul Rzayev
  • 31
  • 2
  • 4
1
vote
0 answers

Scrolling not disabled in alternate screen mode

So I have this minimal program in NIM which just enters alternate screen mode, prints a few numbers and exits the alternate screen mode. import os echo "\e[?1049h" echo "\nAlternate screen works but scrolling up is allowed, no keys sent." for i in…
whiterock
  • 190
  • 2
  • 11
1
vote
1 answer

Destructive backspace in vi

How do I make the default backspace/^H destructive in vi (not vim)? The cursor jumps to the left as it should, but changes aren't applied until I switch modes. i.e. it deletes the text, but this isn't visible until hitting ESC. This has been giving…
Aston
  • 11
  • 2
1
vote
1 answer

How to calculate the length of a xterm control sequence

I am looking to format text before passing it to stdout/console. To do this properly I need to know how long a given section of text is after being printed to the console, which requires knowing how much characters will not be printed due to them…
John Smith
  • 570
  • 2
  • 7
  • 17
1
vote
1 answer

How to force Awesome to show actual xterm title even when it is hidden?

When I hide an xterm apparently the Awesome WM transforms the title to simply "xterm" instead of showing the actual window's name. For example if I have this (querying with xwininfo): xwininfo: Window id: 0x5c0000d "xterm:john:$ top" Map State:…
Cedric Martin
  • 5,945
  • 4
  • 34
  • 66
1
vote
1 answer

Activate conda environment within a new xterm terminal

If I run xterm -hold and within the new terminal I type conda activate my_environment the conda environment "my_environment" is indeed activated. However, when passing this command using the -e flag, it does not work: xterm -hold -e "conda…
Miguel
  • 356
  • 1
  • 15
1
vote
3 answers

Linewrap in GUI Emacs in Linux

When I run term mode in emacs GUI, I have issues with line wrapping. It runs fine when I am running emacs in xterm. When there is an output that has a very long line, it is all displayed on the same line, with my prompt. When I launch emacs in…
aaronjg
  • 757
  • 5
  • 15