Jump to content

twm

From Wikipedia, the free encyclopedia
twm
Original author(s)Tom LaStrange
Initial release1987
Stable release
1.0.12[1][2]Edit this on Wikidata / 2 April 2022
Repository
Written inC
TypeWindow manager
LicenseMIT-open-group[3]
MIT-CMU[4]
XFree86-1.0[5]

twm(Tab Window Manager)[6]is awindow managerfor theX Window System.Started in 1987 by Tom LaStrange, it has been the standard window manager for the X Window System since version X11R4. The name originally stood forTom's Window Manager,but the software was renamed Tab Window Manager by theX Consortiumwhen they adopted it in 1989. twm is astacking window managerthat provides title bars, shaped windows and icon management. It is highly configurable and extensible.

twm was a breakthrough achievement in the early years, but has been superseded by other window managers, which unlike twm, use awidget toolkitrather than a combination of theX Toolkit IntrinsicsandXRandR.

Various other window managers—such asvtwm,tvtwm,CTWM,andFVWM—were built on twm'ssource code.

twm is still standard withX.Org Server,and is available as part of manyX Window Systemimplementations.

Usage

[edit]
twm withxcalcandxterm,the xterm window being infocus.xclockis iconified.
twm menu
Twm Xsession running onDebian7Linux

twm's interface is different from modern common X window managers anddesktop environmentsmany of which tend to work similarly to theApple MacintoshorMicrosoft Windows.New users often find twm difficult without reading themanualpage.[7]

In the default configuration of twm, the title bar has two buttons:

  • Resize button(nested squares): the user clicks here, drags the mouse pointer to the edge to be moved, then releases when the window is the desired size.
  • Iconify button(circle): reduces the window to an icon.

There is no title bar button to close a window. A left click on the desktop brings up a menu, which includes an option to delete (close) a window. Window close functionality for the titlebar can be configured in the.twmrcfile:

SeeClosing program windows in twmat Wikibooks.

Aleft clickon the title bar brings the window to the top of the window stack; amiddle clickmoves the window; aright clicksends the window to the bottom of the window stack.

Windowfocusfollows themousepointer (point-to-focus), rather than being on whichever window was clicked last (click-to-focus).

When a new window is created, a 3×3 grid is displayed following the mouse pointer, waiting for the user to click where the window should appear — left-click to appear in that position with that size, middle-click to resize the window before its creation, right-click to appear at that position but long enough vertically to reach the bottom of the screen.

Note that any of the above may be changed with appropriate changes to the configuration file. (The system file is typically/etc/X11/twm/system.twmrcand the user file is typically~/.twmrc.)[7]

History

[edit]

twm was written as a replacement for theuwmby Tom LaStrange while he was working atEvans & Sutherland,which was part of the X Consortium: "I sat down at my monochromeSun 3/50and typedvitwm.cand then opened the X11 documentation. twm was my first X program. About six months later, I convinced my manager to let me send a copy to the comp.windows.x newsgroup for testing. "[8]A version for X11R1 was published on theUsenetnewsgroupcomp.unix.sourceson June 13, 1988[9]

Months later, Jim Fulton of the X Consortium (which was at the time part ofMIT) approached Evans and Sutherland and asked them to turn over the code maintenance to theX Consortiumand Fulton then made it compliant with the nascentInter-Client Communication Conventions Manual.Subsequently, twm was released as the standard sample window manager for X11R4, replacinguwm.

According to Fulton, the word "tab" was picked because it conveniently started with 'T' and it put the emphasis on the squeezing feature window title bars, which made them look like folders with tabs.

Authors

[edit]

twm was originally written by Tom LaStrange. Later contributors include Jim Fulton,Keith Packardand Dave Sternlicht, all of whom were employees of the X Consortium.

References

[edit]
  1. ^"[ANNOUNCE] twm 1.0.12".2 April 2022.Retrieved5 April2022.
  2. ^"twm-1.0.12 · Tags · xorg / app / twm · GitLab".2 April 2022.Retrieved8 August2023.
  3. ^"MIT Open Group variant".
  4. ^"CMU License".
  5. ^"COPYING".
  6. ^David B. Lewis (August 18, 1993)."comp.windows.x Frequently Asked Questions (FAQ) 1/5".Newsgroup:comp.windows.x.RetrievedFebruary 16,2022.
  7. ^abtwm — Tab Window Manager for the X Window Systemmanpage, X11 release 7.6 (X.org)
  8. ^"From the Desktop: Tom LaStrange Speaks!"LinuxPlanet.February 6, 2001.
  9. ^for open comment and review.Original files as posted to comp.unix.sources(isc.org)
[edit]