Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

xterm

From Wikipedia, the free encyclopedia
Standard terminal emulator for the X Window system
Not to be confused withX terminal display/input terminal hardware.
xterm
A sample xterm, running the Bash shell, showing a listing of /etc.
Original authorMark Vandevoorde
DeveloperThomas Dickey
Initial release1984; 42 years ago (1984)
Stable release
403[1] Edit this on Wikidata / 20 October 2025; 3 months ago (20 October 2025)
Operating systemUnix,Unix-like,MVSOpenVMS,OS/2
TypeTerminal emulator
LicenseMIT/X Consortium License
Websiteinvisible-island.net/xterm/Edit this at Wikidata
Repository

xterm is the standardterminal emulator for theX Window System. It allows users to run programs which require acommand-line interface.

If no particular program is specified, xterm runs the user'sshell. An Xdisplay can show one or more user's xterm windowsoutput at the same time.[2][3] Each xterm window is a separateprocess, but all share the samekeyboard, taking turns as each xterm process acquiresfocus. Normally focus switches between X applications as the user moves the pointer (e.g., a mouse cursor) about the screen, but xterm provides options tograb focus (theSecure Keyboard feature) as well as accept input events sent without using the keyboard (theAllow SendEvents feature). Those options have limitations, as discussed in the xterm manual.[4]

XTerm originated prior to the X Window System. It was originally written as a stand-alone terminal emulator for theVAXStation 100 (VS100) by Mark Vandevoorde, a student ofJim 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."[5]

After many years as part of the Xreference implementation, around 1996 the main line of development then shifted toXFree86 (which itself forked from X11R6.3), and it is now maintained by Thomas Dickey.

Many xterm variants are also available, such as hanterm, a variant tailored to Korean speakers, and kterm, which is designed for Japanese speakers.[6] Most terminal emulators for X started as variations on xterm.[dubiousdiscuss][7]

Features

[edit]

Terminal emulation

[edit]

Early versions emulated theVT102 andTektronix 4014.[8]

Later versions added control sequences forDEC and other terminals such as:

  • VT220: Added in patch 24.[9] Later, in 1998, xterm added support for VT220 features, such as extending its support ofISO-2022shift functions to provide theNational Replacement Character Set feature.
  • VT320: Added in patch 24.[9]
  • VT420: DECSTR (soft terminal reset) was added in patch 34.[10] In 2012, xterm's default emulation was changed toVT420 to allowtmux to assume the corresponding left/right margin support.[11]
  • VT520: Although not officially emulated, parts of VT520 features were implemented.[12] Controls DECSMBV and DECSWBV for setting the margin- and warning-bell volume were added in patch 254.[13]

Customization

[edit]
Example showing xterm's toolbar
Chart of the 256 colors available in an xterm with color support. XTerm color numbers andRGB values are shown for each. (Updated 2024)

As with mostX applications, xterm can be customized via globalX resources files (e.g. /usr/lib/X11/app-defaults/XTerm), per-user resource files (e.g. ~/XTerm, ~/.Xresources), orcommand-line arguments. Most of the command-line options correspond to resource settings, as noted in the manual page.

While the name of the program isxterm, the X resource class isXTerm. Theuxterm script overrides this, using theUXTerm resource class.

XTerm normally does not have a menu bar. To access xterm's three menus, users hold the control key and press the left, middle, or right mouse button. Support for a "toolbar" can be compiled-in, which invokes the same menus.

Protocols

[edit]

Supported terminal control functions include:

In addition to protocols used in commercially available terminal machines, xterm added a few protocols that have been adopted by other terminal emulators, such as:

  • Mouse tracking: Support for buttons 4 and 5 was added in patch 120.[14]
  • 16-color terminal protocol: Added in patch 39.[15]
  • 256 colors terminal protocol: Added in patch 111.[16]
  • 88-color terminal protocol: Added in patch 115.[17]
  • Custom color palette: Ability to specifying the RGB values for palette entries was added in patch 111.[16]

Fonts

[edit]

Initially Xterm supported onlyPortable Compiled Format (PCF)bitmap font until 2000 whenXft library was introduced to support modernstroke-based fonts likeTrueType.[18]

See also

[edit]

References

[edit]
  1. ^Thomas E. Dickey (20 October 2025)."ANN: xterm-403". Retrieved29 October 2025.
  2. ^Rothman, Ernest E; Jepson, Brian; Rosen, Rich (2008-09-18).Mac OS X for Unix Geeks (Leopard): Demistifying the Geekier Side of Mac OS X. "O'Reilly Media, Inc.".ISBN 978-0596555191.
  3. ^Wagner, Bill (1998).The Complete Idiot's Guide to UNIX. Penguin.ISBN 978-0789718051.
  4. ^"xterm(1)". Security. RetrievedDecember 21, 2021.
  5. ^Thomas E. Dickey."XTerm – Frequently Asked Questions (FAQ), Who wrote XTerm?".Archived from the original on 2018-06-24. Retrieved2018-06-04.
  6. ^Thomas E. Dickey."XTerm – Frequently Asked Questions (FAQ), What versions are available?".Archived from the original on 2018-06-24. Retrieved2018-06-04.
  7. ^Ric Lister (27 October 1999)."How to change the title of an xterm". 6. Appendix: escapes for other terminal types.
  8. ^Thomas E. Dickey."What is XTerm?".Archived from the original on 2018-06-24. Retrieved2018-06-04.
  9. ^ab"Patch #24 - 1996/8/11 - XFree86 3.1.2Ee".Archived from the original on 2001-12-22. Retrieved2008-02-25.
  10. ^"Patch #34 - 1997/1/5 - XFree86 3.2o".Archived from the original on 2001-12-22. Retrieved2008-02-25.
  11. ^"Patch #280 - 2012/06/24".Archived from the original on 2012-09-26. Retrieved2021-12-21.
  12. ^"Why not emulate VT520?".Archived from the original on 2012-03-25. Retrieved2007-01-06.
  13. ^"Patch #254 - 2010/1/6".Archived from the original on 2011-04-12. Retrieved2021-12-21.
  14. ^"Patch #120 - 1999/10/28 - XFree86 3.9.16c".
  15. ^"Patch #39 - 1997/5/24 - XFree86 3.2Xl".
  16. ^ab"Patch #111 - 1999/7/10 - XFree86 3.9Pw".
  17. ^"Patch #115 - 1999/9/18 - XFree86 3.9.16a".
  18. ^"XTERM - Change Log".invisible-island.net. Retrieved2022-11-17.

External links

[edit]
Wikimedia Commons has media related toxterm.
Related programs
Architecture
Extensions
Components
and notable
implementations
Display servers
Client libraries
Display managers
Session managers
Window managers
(comparison)
Compositing
Stacking
Tiling
Standards
Applications
Retrieved from "https://en.wikipedia.org/w/index.php?title=Xterm&oldid=1335619418"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp