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

(tcsh) postcmd alias for xterm titlebar breaks less texteditor

I set up my tcsh xterm to update the titlebar on "postcmd" with the name of the last command that was run and the directory. This is similar to what I had (minimal example to reproduce): alias postcmd 'echo -n "\033]0;hello_world\007";' (note that…
Tim
  • 35,413
  • 11
  • 95
  • 121
4
votes
1 answer

How to get the screen state as set by tput smcup/rmcup?

Whilst I know that tput rmcup returns from the "alternate screen" (referred to as "cup mode" in man 5 terminfo) and restores the saved screen, it does have the side-effect of repositioning the cursor. So if tput smcup was called, tput rmcup restores…
IpsRich
  • 797
  • 10
  • 23
4
votes
4 answers

How to write a shell script to open four terminals and execute a command in each?

So I'm trying to create a shell script to do open up four terminal windows (konsoles preferably) and run a command in each and then keep each of those terminals open so I can continue to execute commands in them if desired. I tried following the…
Veridian
  • 3,531
  • 12
  • 46
  • 80
4
votes
1 answer

Bash line wrapping and history scrolling

I am having trouble with my bash prompt and line wrapping behaviour. If I use a static prompt export PS1="test$ "; ### Works perfectly I can type long lines on the prompt and they wrap fine. Scroll up/down in history also work fine. On using…
JP19
4
votes
1 answer

Cygwin: xwin scaling broken when using windows scaling on high resolution display

Using a laptop with a 4k screen and windows scaling turned on so that text looks the same size it would on a 1080p display. When I open cygwin and run startxwin xwin starts but at the resolution of the 4k display, not the scaled down 1080…
user2127595
  • 176
  • 14
4
votes
2 answers

How curses preserves screen contents?

When you start the (n)curses program, it will remove the scroll bar from your terminal emulator, clear the screen, the scroll log (history) will also disappear. When you exit the program, the screen contents reappears, the scroll bar returns, and…
exebook
  • 32,014
  • 33
  • 141
  • 226
4
votes
3 answers

Multixterm - "can't find package Expect"

I am attempting to open multixterm on my desktop machine, but I end up with the error: usr:~> multixterm can't find package Expect while executing "package require Expect" (file "/usr/local/bin/multixterm" line 6") Any help would be…
4
votes
2 answers

alt-b, alt-f does not work in xterm

I use xterm under cygwin/Xming. Alt+B (jump one word backwards) and Alt-F (one word forward) do not work, but instead display some diacritical characters or something. I have created a file .Xresources and a file .Xdefaults in my home dir, each…
user438611
  • 41
  • 1
4
votes
1 answer

In PyQt, how can a terminal be embedded in a window?

I have a small script that is designed to embed an xterm in a PyQt GUI. On Linux, it works, creating a GUI like this: However, running the same script on OS X yields two windows like this: Does anyone know how to address this and prevent OS X from…
d3pd
  • 7,935
  • 24
  • 76
  • 127
4
votes
1 answer

How do I change the color settings in emacs23 running in a terminal emulator?

I use xterm and set its appearance in ~/.Xdefaults: XTerm*background: paleTurquoise XTerm*foreground: black I also use emacs, but set its appearance differently in ~/.emacs: (set-background-color "black") (set-foreground-color…
4
votes
1 answer

Unable to configure font in XTerm

After a lot of mucking around Xterm, poring through reams of webpages I have thrown in the towel and realized that this isn't something I can figure out on my own. TrueType vs Bitmap Is the option xterm*font used to specify only bitmap fonts and is…
kshenoy
  • 1,726
  • 17
  • 31
4
votes
2 answers

directly using terminal capabilities

Does anyone use terminfo capabilities functions like tputs(), tparm(), tigetstr(), tigetnum() directly anymore? I can't find any practical examples online with these low-level terminal functions. Does everyone uses ncurses library to control…
lychee
  • 1,771
  • 3
  • 21
  • 31
4
votes
3 answers

Terminal retains bg color after closing vim - using color scheme and putty-256color term

After closing an app that uses color formatting (e.g. vim) the terminal retains some properties like background color. This happens only when using putty-256color or screen term. I'm observing similar behavior in RHEL 6.5 and Ubuntu 14.04LTS. The…
vobelic
  • 51
  • 1
  • 5
4
votes
1 answer

Terminal resizing that preserves output

In linux, when a terminal (like xterm) gets resized to something smaller, then expanded again, its output history gets truncated to whatever the smaller width was. Does anybody know how to make the terminal remember its previous state, or wrap text…
Nicolas Wu
  • 4,805
  • 2
  • 25
  • 32
4
votes
2 answers

Reading the RGB values of the console color palette

Meat In C or C++ is there any way to read the color palette RGB values directly? Especially interesting is the extended color space used by xterm (and others) to define up to 256 terminal colors. Potatoes The case in point is that I want to define…