1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438
|
.\" Process this file with
.\" groff -man -Tascii foo.1
.\"
.TH TERMIT 1 "NOV 2008" Linux "User Manuals"
.SH NAME
termit \(hy lightweight terminal emulator
.SH SYNOPSIS
.B termit [\-option ...]
.SH DESCRIPTION
.B termit
is a vte\(hybased lightweight terminal emulator. All configuration
is done via Lua\(hyscripts. The only other dependencies are
Gtk+ and Vte.
.SH OPTIONS
.BR \-h,
.BR \-\-help
.RS
Print help
.RE
.BR \-v,
.BR \-\-version
.RS
Print version number
.RE
.BR \-e,
.BR \-\-execute
=
.I cmd
.RS
Use
.I cmd
as shell
.RE
.BR \-i,
.BR \-\-init
=
.I file
.RS
Use
.I file
instead of default rc.lua
.RE
.BR \-n,
.BR \-\-name
=
.I name
.RS
Use
.I name
in window name hint
.RE
.BR \-c,
.BR \-\-class
=
.I class
.RS
Use
.I class
in window class hint
.RE
.BR \-r,
.BR \-\-role
=
.I role
.RS
Use
.I role
in window role Gtk\(hyhint
.RE
.BR \-T,
.BR \-\-title
=
.I title
.RS
Use
.I title
in window title (Turns off
.I allowChangingTitle
option.)
.RE
.P
termit \-\-init=session.lua \-\-name=TermitName \-\-class=TermitClass \-\-role=TermitRole \-\-title=TermitTitle \-\-execute=zsh
.P
.RE
.SH FILES
.I $HOME/.config/termit/rc.lua
.RS
Per user configuration file. See section
.BR "TERMIT LUA API"
for further details.
.RE
.I /usr/share/doc/termit/rc.lua.example
.RS
Example rc.lua file. Demonstrates usage of almost all available settings.
.SH "TERMIT LUA API"
.B "Functions:"
.B activateTab
(
.I tab_index
)
Activates tab by index.
tab_index \(hy index of tab to activate. Index of the first tab is 1.
.P
.B addMenu
(
.I menu
)
Adds menu in menubar.
menu \(hy table of TermitMenuItem type.
.P
.B addPopupMenu
(
.I menu
)
Adds menu in popup menu, similar to addMenu.
menu \(hy table of TermitMenuItem type.
.P
.B bindKey
(
.I keys
,
.I luaFunction
)
Sets new keybinding. If luaFunction is
.I nil
removes keybinding.
keys \(hy string with keybinding. Available modifiers are Alt Ctrl Shift Meta Super Hyper.
luaFunction \(hy callback function
.P
.B bindMouse
(
.I event
,
.I luaFunction
)
Sets new mouse\(hybinding. If luaFunction is
.I nil
removes mouse\(hybinding.
event \(hy string with one of those values: DoubleClick
luaFunction \(hy callback function
.P
.B closeTab
()
Closes active tab.
.P
.B copy
()
Copies selection into tab's buffer.
.P
.B currentTab
()
Returns current tab of TermitTabInfo.
.P
.B currentTabIndex
()
Returns current tab index.
.P
.B feed
(
.I
data
)
Interprets data as if it were data received from a terminal process.
.P
.B feedChild
(
.I
data
)
Sends a data to the terminal as if it were data entered by the user at the keyboard.
.P
.B findDlg
()
Opens search entry.
.P
.B findNext
()
Searches the next string matching search regex.
.P
.B findPrev
()
Searches the previous string matching search regex.
.P
.B forEachRow
(
.I func
)
For each terminal row in entire scrollback buffer executes function passing row as argument.
func \(hy function to be called.
.P
.B forEachVisibleRow
(
.I func
)
For each visible terminal row executes function passing row as argument.
func \(hy function to be called.
.P
.B loadSessionDlg
()
Displays "Load session" dialog.
.P
.B nextTab
()
Activates next tab.
.P
.B openTab
(
.I tabInfo
)
Opens new tab.
tabinfo \(hy table of TermitTabInfo with tab settings.
.P
.B paste
()
Pastes tab's buffer.
.P
.B preferencesDlg
()
Displays "Preferences" dialog.
.P
.B prevTab
()
Activates previous tab.
.P
.B quit
()
Quit.
.P
.B reconfigure
()
Sets all configurable variables to defaults and forces rereading rc.lua.
.P
.B saveSessionDlg
()
Displays "Save session" dialog.
.P
.B selection
()
Returns selected text from current tab.
.P
.B setColormap
(
.I colormap
)
Changes colormap for active tab.
colormap \(hy array with 8 or 16 or 24 colors.
.P
.B setEncoding
(
.I encoding
)
Changes encoding for active tab.
encoding \(hy string with encoding name.
.P
.B setKbPolicy
(
.I kb_policy
)
Sets keyuboard policy for shortcuts.
kb_policy \(hy string with one of those values:
keycode \(hy use hardware keyboard codes (XkbLayout\(hyindependent)
keysym \(hy use keysym values (XkbLayout\(hydependent)
.P
.B setOptions
(
.I opts
)
Changes default options.
opts \(hy TermitOptions table with new options.
.P
.B setTabBackgroundColor
(
.I color
)
Changes background color for active tab.
color \(hy string with new color.
.P
.B setTabFont
(
.I font
)
Changes font for active tab.
font \(hy string with new font.
.P
.B setTabForegroundColor
(
.I color
)
Changes foreground (e.g. font) color for active tab.
color \(hy string with new color.
.P
.B setTabPos
(
.I newPos
)
Changes position for active tab.
newPos \(hy number with new tab position.
.P
.B setTabTitle
(
.I tabTitle
)
Changes title for active tab.
tabTitle \(hy string with new tab title.
.P
.B setTabTitleDlg
()
Displays "Set tab title" dialog.
.P
.B setWindowTitle
(
.I title
)
Changes termit window title.
title \(hy string with new title.
.P
.B spawn
(
.I command
)
Spawns command (works via shell).
command \(hy string with command and arguments.
.P
.B toggleMenubar
()
Displays or hides menubar.
.P
.P
.B toggleTabbar
()
Displays or hides tabbar.
.P
.B "Types:"
.B TermitCursorBlinkMode
\(hy one of those string values:
System Follow GTK+ settings for cursor blinking
BlinkOn Cursor blinks
BlinkOff Cursor does not blink
.P
.B TermitCursorShape
\(hy one of those string values:
Block Draw a block cursor
Ibeam Draw a vertical bar on the left side of character
Underline Draw a horizontal bar below the character
.P
.B TermitEraseBinding
\(hy one of those string values:
Auto VTE_ERASE_AUTO
AsciiBksp VTE_ERASE_ASCII_BACKSPACE
AsciiDel VTE_ERASE_ASCII_DELETE
EraseDel VTE_ERASE_DELETE_SEQUENCE
EraseTty VTE_ERASE_TTY
.P
For detailed description look into Vte docs.
.P
.B TermitKeybindings
\(hy table with predefined keybindings.
closeTab 'Ctrl\(hyw'
copy 'Ctrl\(hyInsert'
nextTab 'Alt\(hyRight'
openTab 'Ctrl\(hyt'
paste 'Shift\(hyInsert'
prevTab 'Alt\(hyLeft'
.P
.B TermitMatch
\(hy table for matches.
field name match regular expression
field value lua callback for action on Left\(hyclick.
.P
.B TermitMenuItem
\(hy table for menuitems.
accel accelerator for menuitem. String with keybinding
action lua function to execute when item activated
name name for menuitem
.P
.B TermitOptions
\(hy 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\(hyhint 'urgent' on termit window when bell
wordCharExceptions additional word characters (double click selects word)
.P
.B TermitTabInfo
\(hy 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
.P
.B "Globals:"
.B tabs
is the array with settings for all tabs. Access specific tab by index.
.RS
.SH EXAMPLES
Look inside provided rc.lua.example.
.SH BUGS
After start sometimes there is black screen. Resizing termit window helps.
.P
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.
.SH AUTHOR
Evgeny Ratnikov <ratnikov.ev at gmail dot com>
.SH "SEE ALSO"
.BR lua (1)
|