Scroll to navigation

MLTERM(1) General Commands Manual MLTERM(1)

NAME

mlterm - Multi Lingual TERMinal emulator on X

SYNOPSIS

mlterm [options]

DESCRIPTION

mlterm is a multi-lingual terminal emulator written from scratch, which supports various character sets and encodings in the world and complex characters such as double width for East Asian, combining for Thai, Vietnamese, and so on, and bi-direction for Arabic and Hebrew. Indic scripts are experimentally supported. It also supports various unique feature such as anti-alias using FreeType, multiple XIM, multiple windows, scrollbar API, scroll by mouse wheel, automatic selection of encoding, daemon mode, and so on.

Supported encodings are: ISO-8859-[1-11], ISO-8859-[13-16], TIS-620 (same as ISO-8859-11), KOI8-R, KOI8-U, KOI8-T, GEORGIAN-PS, TCVN5712, ISCII_(ASSAMESE|BENGALI|GUJARATI| HINDI|KANNADA|MALAYALAM|ORIYA|PUNJABI|TAMIL|TELUGU), VISCII, CP125[0-8], CP874, EUC-JP, EUC-JISX0213, Shift_JIS, Shift_JISX0213, ISO-2022-JP[1-3], EUC-KR, UHC, JOHAB, ISO-2022-KR, GB2312 (EUC-CN), GBK, GB18030, ISO-2022-CN, HZ, EUC-TW, BIG5, BIG5HKSCS, and UTF-8. If you have already set locale (for example LANG variable; see locale(7) for detail) mlterm will automatically select proper encoding.

OPTIONS

Note that bool is to be substituted by true or false.

Use anti-aliased fonts. This option works only with Xft or cairo for now. The default is false.
Specify a background color of a scrollbar. A valid value for color is a color name or a RGB value. The color name should be defined in rgb.txt or "color" configuration file. The RGB value's format should be "#RRGGBB", "#RRGGBBAA", "rgb:RR/GG/BB" or "rgba:RR/GG/BB/AA".
Enable complex text layouting on UTF8 encoding to support indic scripts and RTL (right-to-left) languages such as Arabic and Hebrew. The default is true. (If mlterm -v outputs "no-indic" or "no-bidi", indic scripts or RTL languages are not supported.)
Specify encoding. Valid encodings are listed in DESCRIPTION section above in this man page. AUTO makes mlterm determine the according according to the current locale (default AUTO).
Specify a foreground color of a scrollbar. See --sbbg option for valid values.
Specify vertical writing mode. cjk for RTL vertical writing and mongol for LTR one. The default is none which means horizontal writing mode.
Brightness of background images in percent. See -p option for details of background images. The default is 100 (keep original).
Specify a name to be used when a mlterm window is iconified. The default is "mlterm".
Enable dynamic character combining. "Dynamic" means that combining characters are stored in without combining but they are displayed using combined form. This affects calculation of column position, i.e., a pair of base character and combining character is counted to be two columns in this mode, while it is counted to be one column in the normal mode. Under this option, a (logical) column number and a character one-to-one correspondence. even for combining characters (though not for fullwidth characters; see -Z/--multicol option for handling of fullwidth characters). Thus, this mode enables you to use combining characters with software which does not support combining characters. The default is false.
Specify a key to be interpreted as a META key. Valid values are: alt, meta, hyper, super, mod1, mod2, mod3, mod4, and none. The default is none.

See -k option also.

Whether to use login shell or not. The default is false.
Specify an input method.

Available values for "kbd" input method argument are "arabic", "hebrew", "isciiassamese", "isciibengali", "isciigujarati", "isciihindi", "isciikannada", "isciimalayalam", "isciioriya", "isciipunjabi", "isciitamil" and "isciitelugu".

Examples:
Use XIM with the default XIM server specified by standard way (i.e., XMODIFIERS environmental variable).
Use XIM with Ami on the system locale.
Use XIM with kinput2 on ja_JP.EUC-JP locale.
Use keyboard mapping input method in Arabic.
Use keyboard mapping input method in Hebrew.
Use keyboard mapping input method in Indic.
Use uim with the default conversion engine.
Use uim with prime conversion engine.
Use m17n library in Russian.
Use m17n library in Oriya using ITRANS method.
Use SCIM.
Use IBus with the default conversion engine.
Use IBus with anthy conversion engine.
Use Fcitx.
Use Canna.
Use Freewnn.
Use Freewnn with jserver at foo.bar host. (JSERVER environmental variable is also available.)
Use SKK.
Use SKK with the use of utf8 skk server at foo.bar host and semicolon key as sticky shift key. (SKK_DICTIONARY and SKK_STICKY_SHIFT_KEY environmental variable are also available.)
Use IIIMF in the system language.
Use IIIMF in Arabic.
Use IIIMF in Japanese using CannaLE language engine.
Don't use input method.
Specify application name. (WM_CLASS property) The default is "mlterm".
Specify application role. (WM_WINDOW_ROLE property) The default is undefined.
Specify the side to show a scrollbar. left for left side and right for right side. none turns off a scrollbar. autohide shows a scrollbar only if mouse pointer is at the right edge of the screen. The default is left.
Whether to enable CLIPBOARD (not only PRIMARY) selection. The default is true.
Change interpretation of cursor keys to be natural in vertical writing mode. This means that up and down arrow keys are treated as backward (left arrow in horizontal LTR) and forward (right arrow in horizontal LTR), respectively. In cjk -G/--vertical mode, left and right arrow keys are also treated as next line (down arrow in horizontal LTR) and previous line (up arrow in horizontal LTR), respectively, while vice versa in mongol mode. The default is true.
Set acceptable range of font size. The format is "minsize-maxsize", where minsize and maxsize are font sizes in pixel (default 1-10000). The GUI configurator and other means for setting fontsize should honor the range.
Select a type of scrollbar. See SCROLLBAR section below for details. The default is "simple" which means the built-in simple scrollbar.
Specify a title for a mlterm window. The default is "mlterm".
Force to convert a selection (i.e., copy-and-paste strings) whose type is not UTF8_STRING to the current mlterm encoding via Unicode. See SELECTION section below for detail. The default is false.
Use variable column width. You may want to use this option when you use proportional fonts. The default is false.
Delimiter characters used for word selection, which are consulted when you double-clicked mlterm, to define what is a word. The default is " ,.:;/|@()[]{}")
Alpha in pseudo or true transparent. The default is 255.
Use dynamically composed line drawing character set of DEC special. The default is false. This overrides DEC_SPECIAL in "font" configuration file, while DEC_SPECIAL in "aafont" (for Xft or cairo) is always overridden.
Treat fullwidth characters (east Asian characters in most cases; which occupies two columns on the screen) as they occupy two logical columns. It is the de-facto standard way to handle fullwidth characters in east Asian terminal emulators (XFree86 xterm and kterm, cxterm, hanterm, rxvt, eterm) and other systems such as MS-DOS, PC-9801, and so on. In most fonts, the glyphs of fullwidth characters are designed assuming that their width are twice of normal characters and won't display correctly without this option. The default is true.
-0, --crbg=color
Specify background color for cursor (default is same to foreground color). Valid values for color are color names defined in rgb.txt and color rgb string whose format is "#RRGGBB", "#RRGGBBAA", "rgb:RR/GG/BB" or "rgba:RR/GG/BB/AA".
-1, --wscr=value
Specify actual window width, by percentage against calculated value by multiplying font width by column number. This is useful when you use a proportional font which includes some glyphs with exceptionally large width, i.e., much larger "maximum width" than your expectation. In vertical mode this option changes actual window height. The default is 100.
-3, --contrast=value)
Contrast of background image in percent. See -p option for details of background image. The default is 100.
-4, --gamma=value)
Gamma of background image in percent. See -p option for details of background image. The default is 100.
-5, --big5bug(=bool)
Enable a workaround for Big5 CTEXT bugs (which had been existed until XFree86 4.1.0). This affects Big5 selections (i.e., copy-and-paste strings) in COMPOUND_TEXT format which mlterm sends. The default is false.
-6, --stbs(=bool)
Don't exit backscroll mode when console applications output something. The default is false.
-7, --bel=mode
Behavior when BEL (0x07) is received. sound for beep , visual for blanking screen and sound|visual for the both. The default is none which ignores BEL.
-8, --88591(=bool)
Use ISO8859-1 fonts for US-ASCII part of various encodings.
-9, --crfg=color
Specify foreground color for cursor (default is same to background color). Valid values for color are color names defined in rgb.txt and color rgb string whose format is "#RRGGBB", "#RRGGBBAA", "rgb:RR/GG/BB" or "rgba:RR/GG/BB/AA".
-$, --mc=value
Doubleclick/tripleclick interval in millisecond. The default is 250.
-%, --logseq(=bool)
Enable logging. Contents of stream received by mlterm will be logged under ~/.mlterm/. This option is mainly intended to be used for debugging purposes. The default is false. Note that % should be escaped to be supplied as a command line option on most shells.
-&, --borderless(=bool)
Asks the window manager to use no decorations at all. Warning: You will not be able to resize the window. You probably want to use --geometry as well. The default is false.
-@, --screens=value
Specify number of screens (sessions) to be used in start up. The default is 1. Note that when one of these screens are closed, sessions which were connected to the screens do not immediately killed.

See MULTIPLE PTY section for details.

-*, --type=value
Specify the rendering engine to be used to draw fonts. xcore is conventional X11 core font mechanism. xft means Xft mechanism and cairo means cairo mechanism. The default is cairo. On platforms except X11, it is always xcore. (If mlterm -v outputs "no-xft" or "no-cairo", xft or cairo is unavailable.)
-#, --initstr=value
Specify a string to be automatically sent after initialization of session. The value normally will be parsed by a shell. See -e option to execute other application at start-up time.
Specify number of columns to be occupied by a Unicode's "EastAsianAmbiguous" character. The default is 1 except "ja" locale where the default is 2. Some of asian people may want to specify 2. See Unicode Standard Annex (UAX) #11 East Asian Width found at Unicode web site for details.
Specify background color (default white). Valid values for color are color names defined in rgb.txt and color rgb string whose format is "#RRGGBB", "#RRGGBBAA", "rgb:RR/GG/BB" or "rgba:RR/GG/BB/AA".
Use CP932 mapping table to convert from JIS X 0208 to Unicode when displaying JIS X 0208 characters using Unicode font in Xft or cairo mode. This is useful when you use proprietary Japanese true type fonts which are intended to be used with Microsoft Windows, with mlterm with encodings (such as EUC-JP, Shift_JIS, ISO-2022-JP, and so on) which contain JIS X 0208 as a coded character set.

The reason is, such proprietary fonts may have glyphs only for Unicode code points into which JIS X 0208 code points are converted using CP932 mapping table. (CP932 is a name of mapping table which is used by Microsoft to convert from Shift_JIS [plus Microsoft private extended characters] into Unicode. In Unicode's point of view, CP932 is a name of encoding which is similar to Shift_JIS and is used by Japanese version of Microsoft Windows.) If you use such fonts for encodings such as EUC-JP and Shift_JIS with JIS0208.TXT mapping table which mlterm adopts as the standard, a few characters are mapped into Unicode code points where the fonts don't have glyphs.

Both of CP932.TXT and JIS0208.TXT mapping tables are supplied by Unicode Consortium, though they are regarded to be obsolete.

The default is true.

Specify X display to connect with.
Invoke the command in the mlterm window. This option must be the last option on the command line.
Foreground color (default black). Valid values for color are color names defined in rgb.txt and color rgb string whose format is "#RRGGBB", "#RRGGBBAA", "rgb:RR/GG/BB" or "rgba:RR/GG/BB/AA".
Specify size and position of the window; see X(7).
Show help messages.
Whether to use XIM (X Input Method). Most east Asian people will want to enable this option. Other people can also safely enable this. The default is true. The name of the XIM server to be connected is specified by standard way (i.e., XMODIFIERS environmental variable).
Start as a daemon process. Note that mlclient is executed if a daemon process has already started. Possible =values are "blend" and "genuine". See the chapter of DAEMON MODE for details. (If mlterm -v outputs "no-daemon", this option is unavailable.)
Behavior of META key. esc for sending ESC and none for ignoring META key. The default is 8bit which sets the most significant bit.

See -K option also.

Specify number of lines of backlog or "unlimited". Over 65535(0xffff) is regarded as "unlimited". The default is 128.
Enable combining characters by overstriking glyphs (recommended for TIS-620, TCVN5712, and UTF-8). Note that fonts which contain combining characters which extend backward cannot be used, since mlterm does combine characters by controlling the writing positions. This option is automatically turned on when using --dyncomb option. The default is true.
Use non-Unicode fonts even when mlterm encoding is UTF-8. Useful when you don't have ISO10646-1 fonts and you want to use UTF-8 encoding. The default is false.
Specify number of extra pixels between lines. The default is 0.
Path for a wallpaper (background) image. Note that the wallpaper cannot be used with pseudo transparent background. (If mlterm -v outputs "no-image", this option is unavailable.)
Specify fading ratio for unfocused windows. 100 means no fading and 0 means darkest. The default is 100
Whether to use multiple document interface. The default is true. If you disable this option, scrollbar and screen separation are unavailable.
Whether to enable pseudo transparent background. Note that pseudo transparent background cannot be used with wallpaper. The default is false.
Use Unicode fonts even when mlterm encoding is not UTF-8. Useful when you have ISO10646 fonts but you don't have other fonts and want to use non-UTF-8 encodings. Note that conversion to Unicode is lossy. i.e. if mlterm encoding is not a subset of Unicode like ISO-2022-JP-2 or EUC-TW, characters which are regarded as a same character in Unicode will be displayed with the same glyph and cannot be distinguished.

The default is false.

Show version information.
Specify font size in pixel. The default is 16.
Specify tab width. The default is 8.
Specify terminal type, i.e., the value of TERM variable. The default is xterm. Note that mlterm is deprecated.
Specify the step of changing font size in pixel when you pushed "Font size larger" or "Font size smaller" button on GUI configurator. The default is 1.
Whether to use ~/.mlterm/*aafont configurations with the use of fontconfig. The default is false for mlterm-fb and true for mlterm-wl and mlterm-sdl2. (If mlterm -v doesn't output "fontconfig", this option is unavailable.)
Specify character encodings detected automatically.
Automatically detect appropriate character encoding from the encodings specified by --ade option. The default is false.
Whether to enable alternate screen buffer. This option is similar to "titeInhibit" of xterm.
Whether to broadcast input or pasted characters to all ptys whose value of "ignore_broadcasted_chars" option is false. The default is false.
Specify the color to use to display bold characters.
Use bold font for characters with the bold attribute. The default is true.
Specify bidi mode. Valid values are: normal, left and right. The default is normal. (If mlterm -v outputs "no-bidi", this option is unavailable.)
Specify separator characters to render bidi text. (If mlterm -v outputs "no-bidi", this option is unavailable.)
Specify the color to use to display blinking characters.
Blink cursor. The default is false.
Specify the position (offset from the default baseline) of baseline. The default is 0.
Specify inner border width. The default is 2. The maximum value is 224.
Use either unicode font or DEC Special font forcibly to draw box-drawing characters. unicode for unicode font and decsp for DEC special font. The default is noconv which draw them as they are.
Specify ciphers (comma separated list) for encrypting the ssh session. (If mlterm -v doesn't output "ssh", this option is unavailable.)
Specify encoding of the console where mlterm-con works. Valid encodings are listed in DESCRIPTION section above in this man page. AUTO makes mlterm determine the according according to the current locale (default AUTO).
Specify the color to use to display crossed-out characters.
Whether to recognize ANSI color change escape sequences. The default is true.
Specify the number of sixel graphics colors of the console where mlterm-con works. A valid value is 16, 256 or full. The default is 16.
Specify number of extra pixels between lines. (Negative value is available.) If you specify --V option, this option is ignored. The default is 0.
Specify cell width and height in pixel which mlterm-con uses if it doesn't get them. The default is 8,16.
Specify primary device attributes string. The default is 63;1;2;3;4;7;29.
Specify secondary device attributes string. The default is 24;279;0.
Specify visual depth. (8,16,24,32) If depth is 32, you can enable semi-transparency by specifying opacity as the value of --alpha option or "rgba:RR/GG/BB/AA" as the value of --bg option.
DEFAULT in ~/.mlterm/*font.
Specify path of a directory where emoji image files exist or a open type emoji font to show unicode emoji characters. The default is ~/.mlterm/emoji.
Specify filename format of emoji image files in the directory specified by --emoji option. The value is "[Format1](,[Format2])". [Format1] is for singleton emoji consisting of 1 code point, and [Format2] is for emoji sequence consisting of 2 code points. If you omit [Format2], [Format1 except file suffix]-[Format1] is automatically used for emoji sequence. Emoji sequence consisting of 3 or more code points is not supported for now. The default is %.4x.png,%.4x-%.4x.png.
Whether to exit backscroll mode on receiving data from pty. The default is false.
Whether to send modified keys as parameter for CSI u. (Equivalent to "formatOtherKeys" of xterm) The default is false.
Force full width regardless of EastAsianWidth.txt.

e.g.) --fullwidth=U+1234-5678,U+0123-4567

Force half width regardless of EastAsianWidth.txt.

e.g.) --halfwidth=U+1234-5678,U+0123-4567

Whether to ignore broadcasted characters. The default is false.
Specify the file to be used as a window icon.
Specify the color to use to display italic characters.
Use italic font for characters with the italic attribute. The default is true.
Specify interval seconds to send keepalive message to ssh server. The default is 0. (If mlterm -v doesn't output "ssh", this option is unavailable.)
Specify inner border width of a layout manager. The default is 0. The maximum value is 224.
Embold glyphs by drawing doubly at 1 pixel leftward instead of rightward. The default is false.
Specify time (msec) to keep local echo mode. The default is 250.
Specify locale. The default is "".
Enable logging messages of mlterm to ~/.mlterm/msg.log. The default is true.
Whether to use local echo mode or not. The default is false.
Specify maximum number of ptys (sessions) to be opened simultaneously. It should be multiple of 32. The default is 32.

See MULTIPLE PTY section for detail.

Specify prefix characters in pressing meta key if mod_meta_mode = esc. The default is \x1b.
Whether to draw the wall picture on Text VRAM instead of Graphic VRAM to improve the performance of scrolling. The default is true.
Don't draw underline. The default is false.
Specify features of glyph substitution. The default is fliga,clig,dlig,hlig,rlig.
Allow access to clipboard(selection) by OSC 52 sequence. The default is false.
Specify script of glyph substitution. The default is latn.
Whether to show substituting glyphs in open type fonts with the use of libotf or harfbuzz. Don't specify --ctl=false if you want to use substituting glyphs. --ctl option disables automatic search of alternative glyphs in other fonts on cairo/xlib and freetype+fontconfig/{wayland|framebuffer}. The default is false. (If mlterm -v doesn't output "otl", this option is unavailable.)
Specify parent Window ID. The default is 0.
Treat the value of -w option as point instead of pixel. Note that this option works on xft, cairo or win32. The default is false.
Specify public key file for ssh connection. The default is ~/.ssh/id_rsa.pub(%HOMEPATH%termid_rsa.pub in win32). (If mlterm -v doesn't output "ssh", this option is unavailable.)
Specify private key file for ssh connection. The default is ~/.ssh/id_rsa(%HOMEPATH%termid_rsa in win32). (If mlterm -v doesn't output "ssh", this option is unavailable.)
Reconnect to ssh server automatically in unexpected disconnection. The default is false. (If mlterm -v doesn't output "ssh", this option is unavailable.)
Specify the directory to save received files via zmodem or scp. The default is ~/.mlterm/recv.
Whether to restart mlterm with all opened ptys except ssh if SIGSEGV, SIGBUS, SIGFPE or SIGILL is received. The default is true.
Specify the color to use to display reverse characters.
Specify the way to display text on the screen when it is resized. Valid values are: none, scroll and wrap. The default is wrap.
Allow OSC 5379 scp. The default is false. Even if allow_scp = false, it is possible to transfer a file to "." directory (~/.mlterm/scp).
Specify device pixel ratio to determine the width of "simple" scrollbar. The default is 1.
Specify the format of logging vt100 sequence. raw for logging as it is and ttyrec for logging by ttyrec format. The default is raw.
Specify a host you want to connect via ssh etc. This option is enabled only if mlterm is built with MinGW or --enable-ssh2 option.

Value format: (<protocol>://)(<user>@)<server>(:<port>)(:<encoding>)

e.g.) mlterm --serv ssh://user@host:22:eucjp
mlterm --serv mosh://user@host:22:utf8

Whether to allow dynamic change of shortcut keys by OSC 5379 set_shortcut sequence. The default is false.
Whether to start mlterm with local pty instead of ssh connection. The default is false.
Whether to trim new line characters at the end in pasting text. The default is false.
Specify the color to use to display underlined characters.
Specify the position (offset from the baseline) of underline. The default is 0.
Use unicode fonts partially regardless of -n option.

e.g.) --ucsnoconv=U+1234-5678,U+0123-4567

Draw the user's attention when making a bell sound in the unfocused window. The default is false.
Select URI by double clicking it regardless of -W option. The default is false.
Set vt color mode. 256 for pseudo color, high for high color and true for true color. The default is high.
Working directory.
Enable x11 forwarding for ssh connection. The default is false. (If mlterm -v doesn't output "ssh", this option is unavailable.)

GUI CONFIGURATOR

Pushing control key and mouse button 3 invokes GUI configurator (mlconfig). It can modify encoding, foreground and background color, tab size, backlog size, font size, usage of combining character, and so on.

GUI configurator has six pages (Encoding, Font, Background, Color, Scrollbar, and Others), OK/Apply/Cancel buttons, and four special buttons.

Note this feature needs GTK+ 2.x or later.

Encoding page

Encoding-related configurations are located in this page. Note that configurations will be enabled when you push Apply button.

Specify encoding. (-E, --km)
Whether to detect appropriate character encoding automatically. (--auto)
Encoding list
Specify character encodings detected automatically. (--ade)
Specify which input method to be used. (-M, --im)

XIM:
Specify the name of XIM server to be connected. You can input from your keyboard or you can choose one of registered XIM servers. This doesn't have equivalent command option. See the section of XIM Configuration File for registration of XIM servers.
Specify the name of the locale to be used for connection to the XIM server. Popular XIM servers usually have acceptable locales to be used for connection. If you choose registered XIM server in Input Method, this will be set automatically. You can also input the locale name from your keyboard.

keyboard:

Specify the name of key mapping table. When using ISCII encoding, Indic key mapping is used automatically. In other encodings, this will be automatically selected according to the current locale.

uim:

Specify the name of the conversion engine to be used. If you choose auto, the conversion engine will be automatically selected according to the current locale.

Note this feature needs uim library.

m17n library:

Specify the language and the input method to be used. If you choose auto, the language and input method will be automatically selected according to the current locale.

Note this feature needs m17n library and m17n-db.

SCIM:

iBus:

Fcitx:

Freewnn:

Specify the address of the host where jserver works.

Canna:

SKK:

Specify the place of skk dictionary (server or file) and the key used as sticky shift key.

IIIMF:

Specify the language id (RFC1766) and the language engine to be used. If you choose auto, the language id/engine will be automatically selected according to the current locale.

Note this feature needs IIIMCF library.

Whether to enable complex text layouting on UTF8 encoding to support indic scripts and RTL (right-to-left) languages such as Arabic and Hebrew. (-C, --ctl)
Whether to support combining characters by overstriking. (-m, --comb)
Combining = 1 (or 0) logical column(s)
Processing combining characters as if it occupies one column logically while it occupies zero column on the screen. (-J, --dyncomb)
When you paste some strings into mlterm, the strings are converted into Unicode and then to mlterm encoding. (-U, --viaucs)
Whether to show substituting glyphs in open type fonts with the use of libotf or harfbuzz. (--otl)
Processing Unicode characters with EastAsianAmbiguous property as fullwidth. (-a, --ac)
Processing CJK fullwidth characters as it occupies two columns logically since it occupies two columns on the screen. (-Z, --multicol)

Font page

Configurations related to appearance (or look&feel) are located in this page.

Font size in pixel. (-w, --fontsize)
Foreground color for letters. (-f, --fg)
Use xft for rendering engine. (-*, --type)
Use cairo for rendering engine. (-*, --type)
Use anti-alias fonts by using Xft or cairo. (-A, --aa)
Use variable column width. (-V, --varwidth)
Vertical writing mode. (-G, --vertical)
Specify XLFD, Xft or cairo font for character sets. "Select" button shows a dialog to choose it.
Whether to use unicode fonts (or non-unicode fonts) all the time regardless of a selected encoding. (-u, --onlyucsfont) (-n, --noucsfont)
Specify code point areas which are shown by unicode fonts regardless of -n option. (--ucsnoconv)
Whether to use a unicode font or (a dec special font) all the time to draw box drawing characters. (--boxdraw)
Specify number of extra dots between lines. (-o, --lsp)
Specify number of extra dots between characters. (--csp)
Specify the position (offset from the baseline) of underline. (--ulpos)
Specify the position (offset from the default baseline) of baseline. (--blpos)
Specify actual screen width (screen height in vertical mode). (-1, --wscr)

Background page

Configurations related to background are located in this page.

Background color. (-b, --bg)
Specify the image file to be used for background image. (-p, --pic)
Pseudo transparent background. (-t, --transbg)
Brightness, contrast, gamma alpha of the background image. (-H, --bright) (-3, --contrast) (-4, --gamma) (-X, --alpha)
Fading ratio when window is unfocused. (-r, --fade)

Color page

Configurations related to color are located in this page.

Specify color to show cursor. (-9, --crfg) (-0, --crbg)
Specify color to show instead of bold, underlined, italic, blinking or crossed-out attribute. (--bd) (--ul) (--it) (--bl) (--co)
Customize VT basic 16 text colors.

Scrollbar page

Configurations related to scrollbar are located in this page.

Specify scrollbar position. (-O, --sbmod)
Specify name of scrollbar. (-S, --sbview)
Specify foreground color of scrollbar. (-F, --sbfg)
Specify background color of scrollbar. (-B, --sbbg)

Others page

Other configurations are located in this page.

Column number of tab. (-x, --tw)
Number of lines of backlog. (-l, --sl)
Number of columns and rows of the screen. (-g, --geometry)
Delimiter characters used for word selection, which are consulted when you double-clicked mlterm, to define what is a word. (-W, --sep)
Doubleclick/tripleclick interval in millisecond. (-$, --mc)
Behavior of META key. (-k, --meta)
Behavior when mlterm receives BEL (0x07) code. (-7, --bel)
Whether to log sequence received from pty in ~/.mlterm/[pty].log in raw or ttyrec format. (--logseq) (--seqfmt)
Whether to enable CLIPBOARD (not only PRIMARY) selection. (-P, --clip)
Whether to use local echo mode. (--loecho)
Whether to blink cursor. (--blink)
Don't exit backscroll mode when console applications output something. (-6, --stbs)
Select URI by double clicking it regardless of -W option. (--uriword)
Whether to broadcast input or pasted characters to all ptys whose value of "ignore_broadcasted_chars" option is false. (--bc)
Whether to trim new line characters at the end in pasting text. (--trim)

Buttons

There are buttons which is independent from OK/Apply/Cancel buttons.

OK button applies the modified configuration to the current mlterm session, saves it to "~/.mlterm/main" configuration file, and quits the GUI Configurator. Apply button just applies the modified configuration to the current mlterm session.
Change font size.
Reset internal status.
Snapshot the screen and save it to ~/.mlterm/*.snp.
Transfer a file via SCP.
One process of mlterm may have multiple sessions and screens. The sessions may or may not have corresponding screen, i.e., the number of sessions can be more than the number of screens. Such situation can be achieved by closing a part of multiple screens from -@/--screens option. In such case, the screen-less session can be designated to one of screens by choosing the session (pty) from this list and push "select" button.

CONFIGURABLE MENU

Pushing control key and mouse button 1 invokes configurable menu displayer (mlterm-menu). It displays a menu with items such as "Larger Font" or "UTF-8 encoding". Though a default menu definition is supplied, you can freely define menu items by writing a menu configuration file. See Menu Configuration File section for detail.

Note this feature needs GTK+ 2.x or later.

MULTIPLE XIM

mlterm can use multiple XIM (X Input Method) servers. The current XIM is specified by the GUI configurator. Using this feature you can input multiple complex languages such as Japanese and Korean. Locale to be used for communication with XIM can also be specified for each XIM. In the GUI configurator, you can choose one of registered pair of XIM and its locale or you can input your favorite XIM and its locale.

The locale for XIM is only used for communication with the XIM and is not related to the current mlterm locale. You have to properly configure the XIM locale only when your XIM has preference on the locale of XIM client (i.e., mlterm in this case). mlterm automatically convert the inputed string into proper encoding and you don't have to care about it.

Of course the initial XIM is chosen by using standard configuration, i.e., using XMODIFIERS environmental variable. See X(7) for detail on XIM and XMODIFIERS variable.

DAEMON MODE

When invoked with -j/--daemon command line option, mlterm starts to listen on a unix domain socket and accept requests from mlclient.

With blend mlterm will exit when the final terminal window is closed. But with genuine, mlterm will disconnect from X server windows and continues to work. In latter case, it's possible to stop and restart a X server and revive the lasting sessions on mlterm.

SCROLLBAR

mlterm supports scrollbar API so that users can develop scrollbar libraries with arbitrary look and feel. The scrollbar libraries can be used by putting the libraries at the specified directory (determined on the compilation process) and invoke mlterm with -s -S name option. Scrollbar libraries named "sample", "sample3", "athena", "motif", "mozmodern", and "next" are supplied.

ANTI-ALIAS

mlterm can use True Type fonts using -A option via FreeType library when it has been compiled with anti-alias option.

Note this feature needs XFree86 4.0.2 or above and FreeType 2.0.2 or above.

WALLPAPER

mlterm can use background image (as known as wallpaper), by using -p/--pic option. You can also specify the brightness of the image by using -H/--bright option.

Note this feature needs gdk-pixbuf.

MULTIPLE PTY

This is one of most unique features of mlterm. The number of windows can be specified using -P option. Typing control + F1 opens another window which shares the same process. The maximum number of windows can be specified using --maxptys option.

BACKSCROLL MODE

mlterm enters into backscroll mode by typing Shift + up or Shift + PageUp key. In the mode, you can use the following keys.

Scroll down one line.
Scroll up one line.
Scroll up one page.
Scroll down one page.
Shortcut keys work the same way as in normal mode. (INSERT_SELECTION, INSERT_CLIPBOARD, RESET and COPY_MODE exit from the backscroll mode.)
Exit from the backscroll mode.

SELECTION

Selection is a mechanism to be used for copy-and-paste in X Window System. Thus, this section describes on so-called copy-and-paste.

There are many encodings in the world. Though copy-and-paste needs sender and receiver and each of them can use one of various encodings, mlterm is designed to be able to receive characters from various encodings as much as possible.

There are two internationalized types of selection. One is COMPOUND_TEXT is the another is UTF8_STRING. COMPOUND_TEXT is ISO2022-based and can distinguish character sets which a character belongs to. However, the character sets which COMPOUND_TEXT supports are limited to ISO8859-* and East Asian character sets. On the other hand, UTF8_STRING is Unicode-based and can express all characters from Unicode character set. However, it cannot distinguish characters from different character sets which share one codepoint in Unicode, which can be a problem especially for CJK Han Ideogram (in other words, Kanji, Hanji, or Hanja). Note that UTF8_STRING is rather new and can be used only with XFree86.

Though the receiver of copy-and-paste can request the preferable type of selection, the sender may not support the requested type. Thus mlterm has to be able to process both of COMPOUND_TEXT and UTF8_STRING.

On the other hand, encodings supported by mlterm (see DESCRIPTION section for detail) are classified into four categories;

(a) Unicode itself
UTF-8.
(b) subset of Unicode and ISO-2022-compliant
"Subset of Unicode" means that Unicode supports round-trip compatibility for the encoding, i.e., the conversion of the encoding --> Unicode --> the encoding doesn't lose any information. "ISO-2022-compliant" means that the encoding can be regarded as a subset of ISO-2022 where a part of ISO-2022 control codes and escape sequences are not supported. Many popular encodings belong to this category such as ISO-8859-*, EUC-*, ISO-2022-KR, TIS-620, TCVN5712, and so on.
(c) subset of Unicode and non-ISO-2022-compliant
Some of popular encodings such as Shift_JIS, Big5, GBK, GB18030, Johab, and so on belongs to this category.
(d) not subset of Unicode
ISO-2022-JP, ISO-2022-JP-2, ISO-2022-JP-3, EUC-TW, and so on. All of them are ISO-2022-compliant.

Now the behavior of mlterm can be explained.

-------------------------------------------------------
encoding received selection  how to process?
-------------------------------------------------------

a COMPOUND_TEXT convert to Unicode
a UTF8_STRING no need for conversion
b COMPOUND_TEXT user preference *1
b UTF8_STRING convert to the encoding *2
c COMPOUND_TEXT user preference *1
c UTF8_STRING convert to the encoding *2
d COMPOUND_TEXT no need for conversion *3
d UTF8_STRING convert to the encoding *2 -------------------------------------------------------

*1 Characters from unsupported character sets (i.e., characters which cannot be expressed in the mlterm encoding) may appear in the selection (received copy-and-paste string). If you want to receive characters which are equivalent to characters which are supported in the current mlterm encoding (i.e., characters which share the same codepoint in Unicode), you can use -U (or --viaucs) option. Otherwise, these characters are pasted into mlterm using ISO-2022 escape sequence (when mlterm encoding is category b). Note such ISO-2022 escape sequences are illegal in the current mlterm encoding and the application software will need special feature to treat them properly, though it is displayed well in mlterm. When mlterm encoding is category c, such characters are simply ignored (when -U option is not enabled).

*2 Characters which cannot be converted into mlterm encoding are simply ignored.

*3 Characters from unsupported character sets will be pasted into mlterm using ISO-2022 escape sequence.

COPY MODE

mlterm enters into copy mode by typing Shift + Control + Return key. In the mode, you can move in the screen including backlog, select region and copy it by the following keys.

Scroll down one line.
Scroll up one line.
Move right.
Move left.
Scroll up one page.
Scroll down one page.
/
Input search string.
Cancel search string.
Start or finish selection.
Start rectangle selection.
Exit from the copy mode.
Stop selection.

CONFIGURATION

mlterm loads configuration files of "main", "font", "vfont", "tfont", "aafont", "vaafont", "taafont", "color", "key", "termcap", and "xim" on start up. "menu" configuration file is loaded by the configurable menu displayer (mlterm-menu). See the section of CONFIGURABLE MENU for detail.

Configuration files for one user are to be located in "~/.mlterm/" directory, while location for configuration files for all users depends on the compilation option. Possible locations are "/etc/", "/etc/X11/", "/usr/X11R6/lib/X11/mlterm/", and so on.

The names and the roles of configuration files are:

Main configuration items which can be overridden by command line options.
Configurations for ordinary X fonts.
Configurations for ordinary X fonts of variable column width.
Configurations for ordinary X fonts of vertical writing.
Configurations for Xft or cairo fonts.
Configurations for Xft or cairo fonts of variable column width.
Configurations for Xft or cairo fonts of vertical writing.
Designate concrete RGB values for color names.
Key definitions for special features of mlterm.
Define mlterm's behaviors which affects terminfo and termcap definition.
Define preset locales for X Input Methods which are shown in the GUI configurator. Of course you can input XIM names and locales for the GUI configurator which are not listed in this configuration file.
Define menu items which is displayed by configurable menu displayer.

The contents of these configuration files (other than menu) consist of lines of "key=value" format. Lines beginning with "#" are ignored.

Note that the configuration files are changed since version 1.9.44.

Main Configuration File

This file contains main configuration items which can be overridden by command line options. The main configuration file "main" has the following keys. Parentheses show the corresponding command-line options. See the explanation on these command-line options for detail.

Specify character encodings detected automatically.
Allow access to clipboard(selection) by OSC 52 sequence.
Allow OSC 5379 scp.
Allow dynamic change of shortcut keys by OSC 5379 set_shortcut sequence.
Alpha in pseudo or true transparent.
Application name. (WM_CLASS property) auto_restart=bool (--restart) Restart mlterm with all opened ptys except ssh if SIGSEGV, SIGBUS, SIGFPE or SIGILL is received. If you want to get core image, specify "false".
Specify the position of baseline. The default is 0.
Behavior when BEL (0x07) is received.
Specify the color to use to display bold characters.
Specify the color to use to display blinking characters.
Background color.
Specify bidi mode.
Specify separator characters (\x00-\xFF is also available) to render bidi text.
Support Big5 CTEXT bugs (which exist in XFree86 4.1.0 or before).
Blink cursor.
Use either unicode font or DEC Special font forcibly to draw box-drawing characters.
Don't draw window decorations.
Specify the amount of darkening or lightening the background image.
Whether to broadcast input or pasted characters to all ptys whose value of "ignore_broadcasted_chars" option is false.
Specify ciphers (comma separated list) for encrypting the ssh session.
Specify the color to use to display crossed-out characters.
Number of columns of Unicode characters with EastAsianAmbiguous property.
Compose line drawing character set.
Specify encoding of the console where mlterm-con works.
Specify the number of sixel graphics colors of the console where mlterm-con works.
Contrast of background image in percent.
Specify background color for cursor.
Specify foreground color for cursor.
Start as a daemon process.
Specify cell width and height in pixel which mlterm-con uses if it doesn't get them.
Specify a host you want to connect via ssh etc.
Specify visual depth.
Specify X server to connect.
Specify path of a directory where emoji image files exist or a open type emoji font to show unicode emoji characters.
Specify filename format of emoji image files in the directory specified by --emoji option.
Specify encoding.
Exit backscroll mode on receiving data from pty.
Send modified keys as parameter for CSI u. (Equivalent to "formatOtherKeys" of xterm)
Specify fading ratio when window is unfocused.
Specify the screen resolution and depth. (e.g. 768x512x4)
Foreground color.
Font size in pixel.
Range of size of usable fonts.
Gamma of background image in percent.
Specify size and position of the window; see X(7).
Don't draw underline.
Icon name.
Path for the image file to be used as window icon.
Whether to ignore broadcasted characters.
Specify inner border width.
Specify input method.
Use ISO8859-1 fonts for US-ASCII part of various encodings.
Specify the color to use to display italic characters.
Specify inner border width of a layout manager.
Embold glyphs by drawing doubly at 1 pixel leftward instead of rightward.
Specify number of extra dots between letters. (ignored if you specify --V option.) If you use multiple fonts whose widths are different, adjust this option.
Specify number of extra dots between lines. (Negative value is available.) If you use multiple fonts whose heights are different, adjust this option.
Specify locale.
Specify time (msec) to keep local echo mode.
Enable logging messages of mlterm to ~/.mlterm/msg[pid].log.
Enable logging vt100 sequences to ~/.mlterm/[device].log.
Specify number of lines of backlog or "unlimited".
Specify maximum number of ptys (sessions) to be opened simultaneously.
Specify prefix characters in pressing meta key if mod_meta_mode = esc.
Behavior of META key.
Specify a key to be regarded as META.
Use non-Unicode fonts even when mlterm encoding is UTF-8.
Use Unicode fonts even when mlterm encoding is not UTF-8.
Specify features of glyph substitution.
Specify script of glyph substitution.
Specify parent Window ID.
Specify primary device attributes string.
Specify the directory to save received files via zmodem or scp.
If the received selection (i.e., copy-and-paste strings) or strings received from XIM is not UTF8_STRING type, convert it into Unicode and then to the current mlterm encoding, in order to identify equivalent characters (i.e., characters which share the same codepoint in Unicode) from various character sets. See SELECTION section below for detail.
Select URI by double clicking it regardless of --W option.
Specify the way to display text on the screen when it is resized.
Specify the color to use to display reverse characters.
Background color for scrollbar.
Foreground color for scrollbar.
Specify actual screen width (screen height in vertical mode).
Specify scrollbar position.
Specify name of scrollbar.
Specify secondary device attributes string.
Draw the wall picture on Text VRAM instead of Graphic VRAM to improve the performance of scrolling.
Specify device pixel ratio to determine the width of "simple" scrollbar.
Reconnect to ssh server automatically in unexpected disconnection.
Specify interval seconds to send keepalive message to ssh server.
Specify public key file for ssh connection.
Specify private key file for ssh connection.
Enable x11 forwarding for ssh connection.
Start mlterm with local pty instead of ssh connection.
Specify changing size when font size becomes larger or smaller.
Specify tab width.
Terminal type.
Title name.
Trim new line characters at the end in pasting text.
Rendering engine for drawing fonts.
Specify the color to use to display underlined characters.
Specify the position (offset from the baseline) of underline. The default is 0.
Force full width regardless of EastAsianWidth.txt.
Force half width regardless of EastAsianWidth.txt.
Use unicode fonts partially regardless of -n option.
Use ~/.mlterm/*aafont configurations with the use of fontconfig.
Automatically detect appropriate character encoding from the encodings specified by auto_detect_encodings option.
Use alternate screen buffer.
Recognize ANSI color change escape sequences.
Use anti alias font.
Use bold font for characters with the bold attribute.
Use CLIPBOARD (not only PRIMARY) selection.
Enable combining characters.
Use CP932 - UCS mapping for displaying JISX0208 by Xft or cairo.
Enable dynamic character combining.
Enable complex text layouting on UTF8 encoding.
Whether to show substituting glyphs in open type fonts with the use of libotf or harfbuzz.
Use italic font for characters with the italic attribute.
Use local echo mode.
Whether to use login shell or not.
Process full width characters.
Treat the value of -w option as point instead of pixel.
Use multiple document interface.
Use pseudo transparent background.
Draw the user's attention when making a bell sound in the unfocused window.
Use variable column width.
Use cursor movement for vertical writing.
Use XIM (X Input Method).
Set vt color mode.
Use vertical writing.
Path for wallpaper image.
Delimiter characters (\xNN is also available) used for word selection.
Working directory.
Don't exit backscroll mode when console applications output something.
Specify the format of logging vt100 sequence.
Specify application role. (WM_WINDOW_ROLE property)

Font Configuration Files

The font configuration files "font", "vfont", "tfont", "aafont", "vaafont", and "taafont" have the following keys.

DEFAULT=font
DEC_SPECIAL=font
ISO8859_n=font
TIS620=font
ISCII_HINDI=font
ISCII_MALAYALAM=font
ISCII_ASSAMESE=font
ISCII_BENGALI=font
ISCII_GUJARATI=font
ISCII_KANNADA=font
ISCII_MALAYALAM=font
ISCII_ORIYA=font
ISCII_PUNJABI=font
ISCII_TAMIL=font
ISCII_TELUGU=font
VISCII=font
KOI8_R=font
KOI8_U=font
TCVN5712=font
JISX0201_ROMAN=font
JISX0201_KATA=font
JISX0208_1978=font
JISX0208_1983=font
JISX0208_1990=font
JISX0213_2000_1=font
JISX0213_2000_2=font
KSX1001_1997=font
UHC=font (not used)
JOHAB=font (not used)
GB2312_80=font
GBK=font
BIG5=font
HKSCS=font
CNS11643_1992_n=font
ISO10646_UCS4_1=font
ISO10646_UCS4_1_FULLWIDTH=font
U+XXXX-XXXX=font
Specify fonts for corresponding character sets. The format is different between "font", "vfont" "tfont" files and "aafont", "vaafont" "taafont" files.

In "font", "vfont", "tfont" files, "font" is specified in "NAME:PERCENT" format where "SIZE" is font size in pixel, and "NAME" is XLFD or alias names of X fonts. If "NAME" contains "%d", it is replaced by an appropriate font size number. ":PERCENT" is multiplied by font size and decides character width of a font. If ":PERCENT" is omitted, max font width is used for it.

In "aafont", "vaafont", "taafont" files, "font" is specified in "FAMILY WEIGHT SLANT SIZE:PERCENT" format. ":PERCENT" is multiplied by font size and decides character width of a font. If ":PERCENT" is omitted, 'M' width is used for it.

mlfc command generates ~/.mlterm/aafont automatically.

Specify boldface fonts.
Specify italic fonts.
Specify bold-italic fonts.
Specify which fonts to use for unicode ranges except U+00-7f.

Color Configuration File

The color configuration file "color" has the following key.

Assign a concrete color for the name COLORNAME. Default colors used by mlterm are black, red, green, yellow, blue, magenta, cyan, and white. and can be overridden here.

For highlighted colors, a name with "hl_" prefix will be automatically searched. i.e. for bold red characters, "hl_red" is searched instead of "red".

17 - 230 and 232 - 255 in 256 colors can be also overridden.

The format of RGB is either "RRRR-GGGG-BBBB" (where RRRR, GGGG, and BBBB are hexadecimal value from 0 to ffff), "#RRGGBB", "#RRGGBBAA", "rgb:RR/GG/BB" or "rgba:RR/GG/BB/AA"(where RR, GG, and BB are hexadecimal value from 00 to ff).

If mlterm failed to parse a entry, the color will be regarded as black.

XIM Configuration File

The X Input Methods configuration file "xim" has the following format

XIM=locale

where XIM is XIM name and locale is locale name used for communication with the XIM server. For example,

kinput2=ja_JP.eucJP
Ami=ko_KR.eucKR
xcin-zh_CN.GB2312=zh_CN.GB2312
These settings are used to create list of XIMs by the GUI configurator. Though a XIM which is not listed in this file can't be selected from the list, it can be selected by specifying its name directly.

Feature Key Configuration File

The feature key configuration file "key" has the following format.

KEY=FEATURE

Here, the format for KEY is "(MASK+)KEY", where MASK is one of Control, Shift, Mod1, Mod2, Mod3, Mod4, Mod5, Mod and Alt. You can specify multiple "MASK+"s. You can search spellings of KEY by using xev(1) command or searching keysym macros from /usr/X11R6/include/X11/keysymdefs.h (or the equivalent file in your X11 include directory) and omit the prefix XK_. Double quotation marks are not needed. You can specify Button1, Button2, Button3, Button4 or Button5 as KEY.

FEATURE is one of IM_HOTKEY, EXT_KBD, OPEN_SCREEN, NEW_PTY, OPEN_PTY, NEXT_PTY, PREV_PTY, VSPLIT_SCREEN, HSPLIT_SCREEN, CLOSE_SCREEN, NEXT_SCREEN, PREV_SCREEN, HEXPAND_SCREEN, VEXPAND_SCREEN, PAGE_UP, SCROLL_UP, SCROLL_UP_TO_MARK, SCROLL_DOWN_TO_MARK, SET_MARK, INSERT_SELECTION, INSERT_CLIPBOARD, RESET, COPY_MODE, "STRING", or "proto:STRING".

Switch conversion mode of m17n library and kdb input methods. (default UNUSED)
Activate or deactivate kbd input method. (This feature was obsoleted by IM_HOTKEY)
Open new pty in new screen (default Ctrl+F1).
Same as OPEN_SCREEN (obsoleted).
Open new pty in current screen (default Ctrl+F2).
Switch to a next free pty (default Ctrl+F3).
Switch to a previous free pty (default Ctrl+F4).
Open new pty in horizontally split screen (default Shift+F1). (If mlterm -v outputs "no-split", this shortcut key is unavailable.)
Open new pty in vertically split screen (default Shift+F2). (If mlterm -v outputs "no-split", this shortcut key is unavailable.)
Switch to a next unfocused screen (default Shift+F3).
Switch to a previous unfocused screen (default Shift+F4).
Close current screen (default Shift+F5).
Expand current screen horizontally (default Shift+F6). (If mlterm -v outputs "no-split", this shortcut key is unavailable.)
Expand current screen vertically (default Shift+F7). (If mlterm -v outputs "no-split", this shortcut key is unavailable.)
Start backscroll mode and scroll up one page (default Shift+Prior).
Start backscroll mode and scroll up by one line (default Shift+Up).
Start backscroll mode and scroll up to the next marked line (default Control+Shift+Up).
Scroll down to the next marked line (default Control+Shift+Down).
Set mark to the current line (default Control+Shift+m).
Insert selection (default Shift+Insert).
Insert clipboard (default UNUSED). (Available on x11 alone)
Reset terminal (default Pause).
Enter copy mode which enables you to select and copy region by keyboard (default Control+Shift+Return).
"STRING"
The specified string is issued when the KEY key is pressed. Double quotation marks are required around the STRING. Note that you cannot control the status of mlterm by sending terminal control codes such as "\x1b]5379;encoding=utf8\x0a" because the code sequence will be caught by your shell (or something running on it). To deliver control sequences to mlterm directly, use "proto:STRING" instead.
"proto:STRING"
The specified string is assumed to mlterm's original control sequence. A list of sequences should be found in doc/en/PROTOCOL. For example, "proto:encoding=utf8" means changing the current character encoding to UTF-8. If you want to show issued STRING in the screen in pressing shortcut keys, prepend "(echo)" to STRING. For example, "proto:(echo)encoding=utf8" shows "Config: encoding=utf8".
"exesel:STRING"
The specified string is assumed to a command to be executed with selected strings as arguments. "%s" in a command string is replaced by selected strings. For example, "exesel:mlclient -e w3m" means executing "mlclient -e w3m [selected text]".
"menu:STRING"
The specified string is assumed to a configuration program to be executed. For example, "menu:mlterm-menu" means executing mlterm-menu.

Terminal Behavior Configuration File

This configuration file determines the behaviors of mlterm that should match the definition of terminfo and termcap. In principle, this file should not be edited and, instead, you should choose a proper value for TERM variable (i.e., proper terminfo/termcap definition) which meets mlterm's behavior. (Since mlterm' can behave as a xterm/kterm to some extent, TERM=kterm / TERM=xterm should give acceptable results.) However, sometimes you may not want to edit your terminfo and termcap. Your software may don't understand terminfo nor termcap, or your terminfo/termcap entry is shared by several terminal emulators and changing it will break other terminals. In such cases, you can configure mlterm so that it works well on existing terminfo/termcap definitions on your systems. This is also useful for distributors of operating systems (like Debian) with strict policy of terminal emulators' behaviors.

You can define the behaviors of mlterm for each value of TERM variable, so that you don't need to edit termcap file each time you login into other systems and use different value of TERM variable by -y option. You can also specify the default behavior when TERM variable is different from all of specified TERM names in the termcap file.

The grammar of this configuration file is resemble to the grammar of termcap entries. First, one or more name(s) of TERM is written. Multiple names are connected with vertical line character '|'. Special name '*' is for default. Then colon ':' comes, and keys are written separated by colons. Configuration(s) for other TERM will follow after new line.

Followings are available keys for each TERM value.

Specify sequence to be outputted when Delete key is pushed (default \E[3~).
Specify sequence to be outputted when BackSpace key is pushed (default ^H).
Specify sequence to be outputted when HOME key is pushed in application cursor key mode. (default \EOH).
@7=sequence
Specify sequence to be outputted when END key is pushed in application cursor key mode. (default \EOF).
Specify sequence to be outputted when F1 key is pushed (default \EOP).
Specify sequence to be outputted when F2 key is pushed (default \EOQ).
Specify sequence to be outputted when F3 key is pushed (default \EOR).
Specify sequence to be outputted when F4 key is pushed (default \EOS).
Specify sequence to be outputted when F5 key is pushed (default \E[15~).
Specify the way how the screen is erased by control codes. If ut is written in the termcap file, charcells are painted by the current background color when erased; otherwise the charcells are painted by the initial background color. Default is non-ut behavior.

The following special characters can be used to specify sequence in keys of kD/kb/kh/@7.

\E
ESC code (0x1b).
^?
DEL code (0x7f).
^A, ^B,...
Corresponding control code (0x01 - 0x1a).

This configuration file defines the menu displayed by the configurable menu displayer mlterm-menu. See CONFIGURABLE MENU section for detail.

SEE ALSO

Manual pages of mlclient(1), locale(7), charsets(7), UTF-8(7), and X(7).

PROTOCOL (https://github.com/arakiken/mlterm/blob/master/doc/en/PROTOCOL) for mlterm's original control escape sequences which enable you to change configurations dynamically.

e.g.) echo -en "\x1b]5379;encoding=eucjp\x07"

README.android (https://github.com/arakiken/mlterm/blob/master/doc/en/README.android) for mlterm on Android.

README.beos (https://github.com/arakiken/mlterm/blob/master/doc/en/README.beos) for mlterm on BeOS (Haiku).

README.brltty (https://github.com/arakiken/mlterm/blob/master/doc/en/README.brltty) for accessibility with the use of brlapi. (https://brl.thefreecat.org).

README.cocoa (https://github.com/arakiken/mlterm/blob/master/doc/en/README.cocoa) for mlterm on MacOSX/Cocoa.

README.cocoatouch (https://github.com/arakiken/mlterm/blob/master/doc/en/README.cocoatouch) for mlterm on iOS/Cocoa Touch.

README.console (https://github.com/arakiken/mlterm/blob/master/doc/en/README.console) for mlterm on Console.

README.fb (https://github.com/arakiken/mlterm/blob/master/doc/en/README.fb) for mlterm on framebuffer.

README.indic (https://github.com/arakiken/mlterm/blob/master/doc/en/README.indic) for indic scripts.

README.sb (https://github.com/arakiken/mlterm/blob/master/doc/en/README.sb) for development of scrollbar library.

README.sdl2 (https://github.com/arakiken/mlterm/blob/master/doc/en/README.sdl2) for mlterm on SDL2.

README.ssh (https://github.com/arakiken/mlterm/blob/master/doc/en/README.ssh) for ssh connection with the use of libssh2 (https://www.libssh2.org).

README.wayland (https://github.com/arakiken/mlterm/blob/master/doc/en/README.wayland) for mlterm on Wayland.

README.win32 (https://github.com/arakiken/mlterm/blob/master/doc/en/README.win32) for mlterm on Win32 GDI.

Mapping tables between Unicode and local character sets (and encodings) are found at Unicode Consortium web site (https://www.unicode.org/Public/MAPPINGS/). Note that mapping tables for East Asian character sets and encodings are moved to OBSOLETE/EASTASIA directory of the site since August 2001.

For BIG5 and BIG5HKSCS encodings, mapping tables for Unicode is taken from ftp://xcin.linux.org.tw/pub/xcin/i18n/charset/.

Unicode Standard Annex (UAX) #11 East Asian Width, which explains East Asian Width properties, and EastAsianWidth.txt, which defines EastAsianAmbiguous characters in Unicode, are supplied by Unicode Consortium (https://www.unicode.org).

FILES

"main", "font", "vfont", "tfont", "aafont", "vaafont", "taafont", "color", "key", "termcap", "xim", and "menu"
Configuration files.

CONTACT

Subscribe mlterm-dev-en ML (https://lists.sourceforge.net/lists/listinfo/mlterm-dev-en).

Attach ~/.mlterm/msg.log, backtrace log and related files to your report if at all possible.

2022-01-16