TERMIT(1)
π TERMIT π
okay bestie, sit down, hydrate, because i'm about to tell you about termit β and it's giving main character terminal emulator energy. this is the termit(1) manual page, user-manuals edition, and yes we're doing this properly. π«Ά
β¨ NAME β¨
termit β lightweight terminal emulator πΈ
π SYNOPSIS π
termit [-option ...]
π DESCRIPTION π
so. termit is a vte-based lightweight terminal emulator, no cap. the way that all your configuration happens is through Lua-scripts β that's the whole vibe. and the only other dependencies it has? just Gtk+ and Vte. that's it. that's the list. lowkey iconic. β¨
π¦ OPTIONS π¦
-h,--helpβ Print help π-v,--versionβ Print version number π₯-e,--execute = cmdβ Usecmdas shell πΈ-i,--init = fileβ Usefileinstead of defaultrc.luaπ-n,--name = nameβ Usenamein window name hint β-c,--class = classβ Useclassin window class hint π«-r,--role = roleβ Userolein window role Gtk-hint π§-T,--title = titleβ Usetitlein window title (Turns offallowChangingTitleoption.) π
and here's what flexing all of them at once looks like, periodt:
termit --init=session.lua --name=TermitName --class=TermitClass
--role=TermitRole --title=TermitTitle --execute=zsh
π FILES π
$HOME/.config/termit/rc.luaβ Per user configuration file. See section TERMIT LUA API for further details. π/usr/share/doc/termit/rc.lua.exampleβ Examplerc.luafile. Demonstrates usage of almost all available settings. π
π TERMIT LUA API π
π Functions: π
activateTab ( tab_index )
Activates tab by index.
tab_indexβ index of tab to activate. Index of the first tab is1.
addMenu ( menu )
Adds menu in menubar.
menuβ table ofTermitMenuItemtype.
addPopupMenu ( menu )
Adds menu in popup menu, similar to addMenu.
menuβ table ofTermitMenuItemtype.
bindKey ( keys , luaFunction )
Sets new keybinding. If luaFunction is nil removes keybinding.
keysβ string with keybinding. Available modifiers areAltCtrlShiftMetaSuperHyper.luaFunctionβ callback function
bindMouse ( event , luaFunction )
Sets new mouse-binding. If luaFunction is nil removes mouse-binding.
eventβ string with one of those values:DoubleClickluaFunctionβ callback function
closeTab ()
Closes active tab.
copy ()
Copies selection into tab's buffer.
currentTab ()
Returns current tab of TermitTabInfo.
currentTabIndex ()
Returns current tab index.
feed ( data )
Interprets data as if it were data received from a terminal process.
feedChild ( data )
Sends a data to the terminal as if it were data entered by the user at the keyboard.
findDlg ()
Opens search entry.
findNext ()
Searches the next string matching search regex.
findPrev ()
Searches the previous string matching search regex.
forEachRow ( func )
For each terminal row in entire scrollback buffer executes function passing row as argument.
funcβ function to be called.
forEachVisibleRow ( func )
For each visible terminal row executes function passing row as argument.
funcβ function to be called.
loadSessionDlg ()
Displays "Load session" dialog.
nextTab ()
Activates next tab.
openTab ( tabInfo )
Opens new tab.
tabinfoβ table ofTermitTabInfowith tab settings.
paste ()
Pastes tab's buffer.
preferencesDlg ()
Displays "Preferences" dialog.
prevTab ()
Activates previous tab.
quit ()
Quit.
reconfigure ()
Sets all configurable variables to defaults and forces rereading rc.lua.
saveSessionDlg ()
Displays "Save session" dialog.
selection ()
Returns selected text from current tab.
setColormap ( colormap )
Changes colormap for active tab.
colormapβ array with8or16or24colors.
setEncoding ( encoding )
Changes encoding for active tab.
encodingβ string with encoding name.
setKbPolicy ( kb_policy )
Sets keyuboard policy for shortcuts.
kb_policyβ string with one of those values:keycodeβ use hardware keyboard codes (XkbLayout-independent)keysymβ use keysym values (XkbLayout-dependent)
setOptions ( opts )
Changes default options.
optsβTermitOptionstable with new options.
setTabBackgroundColor ( color )
Changes background color for active tab.
colorβ string with new color.
setTabFont ( font )
Changes font for active tab.
fontβ string with new font.
setTabForegroundColor ( color )
Changes foreground (e.g. font) color for active tab.
colorβ string with new color.
setTabPos ( newPos )
Changes position for active tab.
newPosβ number with new tab position.
setTabTitle ( tabTitle )
Changes title for active tab.
tabTitleβ string with new tab title.
setTabTitleDlg ()
Displays "Set tab title" dialog.
setWindowTitle ( title )
Changes termit window title.
titleβ string with new title.
spawn ( command )
Spawns command (works via shell).
commandβ string with command and arguments.
toggleMenubar ()
Displays or hides menubar.
toggleTabbar ()
Displays or hides tabbar.
πΈ Types: πΈ
TermitCursorBlinkMode β one of those string values:
Systemβ Follow GTK+ settings for cursor blinkingBlinkOnβ Cursor blinksBlinkOffβ Cursor does not blink
TermitCursorShape β one of those string values:
Blockβ Draw a block cursorIbeamβ Draw a vertical bar on the left side of characterUnderlineβ Draw a horizontal bar below the character
TermitEraseBinding β one of those string values:
AutoβVTE_ERASE_AUTOAsciiBkspβVTE_ERASE_ASCII_BACKSPACEAsciiDelβVTE_ERASE_ASCII_DELETEEraseDelβVTE_ERASE_DELETE_SEQUENCEEraseTtyβVTE_ERASE_TTY
For detailed description look into Vte docs. π
TermitKeybindings β table with predefined keybindings.
closeTab 'Ctrl-w'
copy 'Ctrl-Insert'
nextTab 'Alt-Right'
openTab 'Ctrl-t'
paste 'Shift-Insert'
prevTab 'Alt-Left'
TermitMatch β table for matches.
field name match regular expression
field value lua callback for action on Left-click.
TermitMenuItem β table for menuitems.
accel accelerator for menuitem. String with keybinding
action lua function to execute when item activated
name name for menuitem
TermitOptions β table with termit options.
allowChangingTitle auto change title (similar to xterm)
audibleBell enables audible bell
backgroundColor background color
backspaceBinding reaction on backspace key (one of TermitEraseBinding)
colormap array with 8 or 16 or 24 colors
cursorBlinkMode cursor blink mode (one of TermitCursorBlinkMode)
cursorShape cursor shape (one of TermitCursorShape)
deleteBinding reaction on delete key (one of TermitEraseBinding)
encoding default encoding
fillTabbar expand tabs' titles to fill whole tabbar
font font name
foregroundColor foreground color
geometry cols x rows to start with
getTabTitle lua function to generate new tab title
getWindowTitle lua function to generate new window title
hideMenubar hide menubar
hideSingleTab hide tabbar when only 1 tab present
hideTabbar hide tabbar
hideTitlebarWhenMaximized hide window titlebar when mazimized
matches table with items of TermitMatch type
scrollbackLines the length of scrollback buffer
scrollOnKeystroke enables scroll to the bottom when the user presses a key
scrollOnOutput enables scroll to the bottom when new data is received
setStatusbar lua function to generate new statusbar message
showScrollbar display scrollbar
showBorder show notebook borders
startMaximized maximize window on start
tabName default tab name
tabPos tabbar position (Top, Bottom, Left, Right)
tabs table with items of TermitTabInfo type
urgencyOnBell set WM-hint 'urgent' on termit window when bell
wordCharExceptions additional word characters (double click selects word)
TermitTabInfo β table with tab settings:
command tab start command
encoding current tab encoding
font font string
fontSize font size
pid process id
title tab title
workingDir tab working dir
π«Ά Globals: π«Ά
tabs is the array with settings for all tabs. Access specific tab by index. π₯
β EXAMPLES β
Look inside provided rc.lua.example. β¨
π BUGS π
After start sometimes there is black screen. Resizing termit window helps. π (the way that this is just... a known thing. iykyk.)
In options table tabs field should be the last one. When loading all settings are applied in the same order as they are set in options table. So if you set tabs and only then colormap, these tabs would have default colormap. π¨
bestie. genuinely. put tabs last. this is not a drill. π©
π AUTHOR π
Evgeny Ratnikov <ratnikov.ev at gmail dot com> π
π SEE ALSO π
lua(1) π§
and that's the whole page, bestie. this was the Linux User Manuals edition, the NOV 2008 glow-up, termit(1) forever and always β slay, mwah π πβ¨
π¦ where this page comes from
- alpine 3.24: termit-doc 3.2-r1 Β· GPL-3.0-or-later
- debian bookworm: termit 3.1-3 Β· GPL-3.0-or-later
- debian trixie: termit 3.1-3+b1 Β· GPL-3.0-or-later
- ubuntu jammy: termit 3.1-1 Β· GPL-3.0-or-later
- ubuntu noble: termit 3.1-3build2 Β· GPL-3.0-or-later
- ubuntu questing: termit 3.1-3build2
- ubuntu resolute: termit 3.2-1 Β· GPL-3.0-or-later
- ubuntu stonking: termit 3.2-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms