From d2b2b895939a3f5879b95360fefe1c0fc32b66b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 5 Sep 2017 21:45:12 +0200 Subject: [PATCH] improved the help page + added markdown style html formatting processor) --- html_orig/css/app.css | 20 +- html_orig/index.php | 6 +- html_orig/pages/help.php | 559 ++++++++++++++++++------------- html_orig/sass/_normalize.scss | 2 +- html_orig/sass/layout/_box.scss | 1 + html_orig/sass/pages/_about.scss | 28 +- 6 files changed, 378 insertions(+), 238 deletions(-) diff --git a/html_orig/css/app.css b/html_orig/css/app.css index 78b1336..2c759a8 100644 --- a/html_orig/css/app.css +++ b/html_orig/css/app.css @@ -165,7 +165,7 @@ pre { code, pre { - font-family: monospace; + font-family: "DejaVu Sans Mono", "Inconsolata", monospace; font-size: 1em; } /* Forms @@ -573,6 +573,7 @@ ul { .Box { display: block; max-width: 900px; + line-height: 1.35em; margin-top: 1rem; padding: 0.61805rem 1rem; border-radius: 3px; @@ -1640,6 +1641,11 @@ body.term #botnav { .page-about td { white-space: normal; } +.page-help code { + background: rgba(33, 97, 109, 0.31); + border-radius: 1px; + padding: 0 2px; } + .colorprev { margin-top: 0.38198rem; margin-bottom: 0.38198rem; } @@ -1656,13 +1662,21 @@ body.term #botnav { .Row table th { background-color: rgba(255, 255, 255, 0.1); } -.ansiref td:nth-child(1) { - font-family: monospace; } .ansiref.w100 { width: 100%; } .ansiref.w100 td:nth-child(1) { width: 6em; } +.nomen { + width: 100%; } + .nomen code { + white-space: nowrap; } + .nomen td:last-child { + min-width: 15em; } + +.tscroll { + overflow-x: auto; } + @media screen and (min-width: 545px) { .mq-phone { display: none !important; } } diff --git a/html_orig/index.php b/html_orig/index.php index f100715..2ce2622 100644 --- a/html_orig/index.php +++ b/html_orig/index.php @@ -43,8 +43,12 @@ if (file_exists($_pf)) { // special symbols $str = str_replace('\,', ' ', $str); - $str = preg_replace('/(?<=\w)~(?=\w)/', ' ', $str); + $str = preg_replace('/(?<=[^ ])~(?=[^ ])/', ' ', $str); + $str = preg_replace('/(?$1', $str); + $str = preg_replace('/(?$1', $str); + $str = preg_replace('/(?$1', $str); + $str = preg_replace("/\s*(\\\\\\\\)[\n \t]+/", '
', $str); include_str($str); } else { echo "404"; diff --git a/html_orig/pages/help.php b/html_orig/pages/help.php index 16eff86..eaf670d 100644 --- a/html_orig/pages/help.php +++ b/html_orig/pages/help.php @@ -4,27 +4,27 @@
ESPTerm v2
-

Escape Sequences Intro & Nomenclature

+

Basic Intro & Nomenclature

VT102 -

ESPTerm emulates VT102 (pictured) with some additions from later VT models and xterm. +

+ ESPTerm emulates VT102 (pictured) with some additions from later VT models and Xterm. All commonly used attributes and commands are supported. - ESPTerm is capable of displaying ncurses applications such as Midnight Commander using agetty.

+ ESPTerm is capable of displaying ncurses applications such as _Midnight Commander_ using _agetty_. +

ESPTerm accepts UTF-8 characters received on the communication UART and displays them on the screen, - interpreting some codes as Control Characters. Those are e.g. Carriage Return (13), Line Feed (10), Tab (9), Backspace (8) and Bell (7). - Escape sequences start with the control character ESC (27), followed by any number of ASCII characters - forming the body of the command. + interpreting some codes as Control Characters. Those are e.g. _Carriage Return_ (13), _Line Feed_ (10), + _Tab_ (9), _Backspace_ (8) and _Bell_ (7). +

+ +

+ Escape sequences start with the control character _ESC_ (27), + followed by any number of ASCII characters forming the body of the command.

- +

Nomenclature & Command Types

- -

Examples on this help page use the following symbols for special characters and command types: - (spaces are for clarity only, DO NOT include them in the commands!)

- - + +

+ Examples on this help page use the following symbols for special characters and command types:\\ + (spaces are for clarity only, _DO NOT_ include them in the commands!) +

+ +
+
- - - - - + + + + + - - - - + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - + + + + +
NameSymbolASCIIC stringFunction
ESC\eESC (27)"\e", "\x1b", "\033"Introduces an escape sequence. (Note: \e is a GCC extension)*ESC*`\e``ESC` (27)`"\e"`, `"\x1b"`, `"\033"`Introduces an escape sequence. _(Note: `\e` is a GCC extension)_
Bell\aBEL (7)"\a", "\x7", "\07"*Bell*`\a``BEL`~(7)`"\a"`, `"\x7"`, `"\07"` Audible beep
String TerminatorSTESC \ (27 92)
or \a (7)
"\x1b\\", "\a"Terminates a string command (\a can be used as an alternative)*String Terminator*`ST``ESC \`~(27~92)
_or_~`\a`~(7)
`"\x1b\\"`, `"\a"`Terminates a string command (`\a` can be used as an alternative)
Control Sequence IntroducerCSIESC ["\x1b["Starts a CSI command. Examples: \e[?7;10h, \e[2J*Control Sequence Introducer*`CSI``ESC [``"\x1b["`Starts a CSI command. Examples: `\e[?7;10h`, `\e[2J`
Operating System CommandOSCESC ]"\x1b]"Starts an OSC command. Is followed by a command string terminated by ST. Example: \e]0;My Screen Title\a*Operating System Command*`OSC``ESC ]``"\x1b]"`Starts an OSC command. Is followed by a command string terminated by `ST`. Example: `\e]0;My Screen Title\a`
Select Graphic RenditionSGRCSI n ; n ; n m"\x1b[1;2;3m"Set text attributes, like color or style. 0 to 10 numbers can be used, \e[m is treated as \e[0m*Select Graphic Rendition*`SGR``CSI n;n;nm``"\x1b[1;2;3m"`Set text attributes, like color or style. 0 to 10 numbers can be used, `\e[m` is treated as `\e[0m`
- -

There are also some other commands that don't follow the CSI, SGR or OSC pattern, such as \e7 or - \e#8. A list of the most important escape sequences is presented in the following sections.

+
+ +

There are also some other commands that don't follow the CSI, SGR or OSC pattern, such as `\e7` or + `\e#8`. A list of the most important escape sequences is presented in the following sections.

@@ -112,7 +122,9 @@

Screen Behavior & Refreshing

-

The initial screen size, title text and button labels can be configured in Terminal Settings.

+

+ The initial screen size, title text and button labels can be configured in Terminal Settings. +

Screen updates are sent to the browser through a WebSocket after some time of inactivity on the communication UART @@ -129,8 +141,8 @@

- All text attributes are set using SGR commands like \e[10;20;30m, with up to 10 numbers separated by semicolons. - To restore all attributes to their default states, use SGR 0: \e[0m or \e[m. + All text attributes are set using SGR commands like `\e[10;20;30m`, with up to 10 numbers separated by semicolons. + To restore all attributes to their default states, use SGR 0: `\e[0m` or `\e[m`.

Those are the supported text attributes SGR codes:

@@ -155,12 +167,16 @@

Colors

-

Colors are set using SGR commands (like \e[10;20;30m). The following tables list the SGR codes to use. +

+ Colors are set using SGR commands (like `\e[10;20;30m`). The following tables list the SGR codes to use. Selected colors are used for any new text entered, as well as for empty space when using line and screen clearing commands. - The configured default colors can be restored using SGR 39 for foreground and SGR 49 for background.

+ The configured default colors can be restored using SGR 39 for foreground and SGR 49 for background. +

-

The actual color representation depends on a color theme which - can be selected in Terminal Settings.

+

+ The actual color representation depends on a color theme which + can be selected in Terminal Settings. +

Foreground colors

@@ -213,20 +229,20 @@
-

User Input: Keyboard, Mouse, Buttons

+

User Input: Keyboard, Mouse

Keyboard

The user can input text using their keyboard, or on Android, using the on-screen keyboard which is open using - a button beneath the screen. Supported are all printable characters, as well as many control keys, such as arrows, Ctrl+letters - and function keys. Sequences sent by function keys are based on VT102 and xterm. + a button beneath the screen. Supported are all printable characters, as well as many control keys, such as arrows, _Ctrl+letters_ + and function keys. Sequences sent by function keys are based on VT102 and Xterm.

- The codes sent by Home, End, F1-F4 and cursor keys are affected by various keyboard modes (Application Cursor Keys, - Application Numpad Mode, SS3 Fn Keys Mode). + The codes sent by _Home_, _End_, _F1-F4_ and cursor keys are affected by various keyboard modes (_Application Cursor Keys_, + _Application Numpad Mode_, _SS3 Fn Keys Mode_). Some can be set in the Terminal Settings, others via commands.

@@ -238,195 +254,202 @@ KeyCodeKeyCode Up - \e[A + `\e[A` F1 - \eOP + `\eOP` Down - \e[B + `\e[B` F2 - \eOQ + `\eOQ` Right - \e[C + `\e[C` F3 - \eOR + `\eOR` Left - \e[D + `\e[D` F4 - \eOS + `\eOS` Home - \eOH + `\eOH` F5 - \e[15~ + `\e[15~` End - \eOF + `\eOF` F6 - \e[17~ + `\e[17~` Insert - \e[2~ + `\e[2~` F7 - \e[18~ + `\e[18~` Delete - \e[3~ + `\e[3~` F8 - \e[19~ + `\e[19~` Page Up - \e[5~ + `\e[5~` F9 - \e[20~ + `\e[20~` Page Down - \e[6~ + `\e[6~` F10 - \e[21~ + `\e[21~` Enter - CR (13) + `\r` (13) F11 - \e[23~ + `\e[23~` Ctrl+Enter - LF (10) + `\n` (10) F12 - \e[24~ + `\e[24~` Tab - TAB (9) + `\t` (9) ESC - ESC (27) + `\e` (27) Backspace - BS (8) + `\b` (8) Ctrl+A..Z - ASCII 1-26 + ASCII 1-26

Action buttons

- The blue buttons under the screen send ASCII codes 1, 2, 3, 4, 5, which incidentally - correspond to Ctrl+A,B,C,D,E. This choice was made to make button press parsing as simple as possible. + The blue buttons under the screen send ASCII codes 1, 2, 3, 4, 5, which incidentally + correspond to _Ctrl+A,B,C,D,E_. This choice was made to make button press parsing as simple as possible.

Mouse

- ESPTerm implements standard mouse tracking schemes based on Xterm. Mouse tracking can be used to implement - powerful user interactions such as on-screen buttons, draggable sliders or dials, menus etc. ESPTerm's - mouse tracking was tested using vttest and should be compatible with all terminal applications + ESPTerm implements standard mouse tracking modes based on Xterm. Mouse tracking can be used to implement + powerful user interactions such as on-screen buttons, draggable sliders or dials, menus etc. ESPTerm's + mouse tracking was tested using VTTest and should be compatible with all terminal applications that request mouse tracking.

- +

Mouse can be tracked in different ways; some are easier to parse, others more powerful. The coordinates can also be encoded in different ways. All mouse tracking options are set using option commands: - CSI ? n h to enable, CSI ? n l to disable option n. + `CSI ? _n_ h` to enable, `CSI ? _n_ l` to disable option _n_.

- +

Mouse Tracking Modes

- +

All tracking modes produce three numbers which are then encoded and send to the application. - First is the event number (N), then the X and Y coordinates, 1-based. - Mouse wheel works as two buttons which generate only press events. + First is the _event number_ N, then the _X and Y coordinates_, 1-based.

- - + +

+ Mouse buttons are numbered: 1=left, 2=middle, 3=right. + Wheel works as two buttons (4 and 5) which generate only press events (no release). +

+ +
+
- - + + - - + + - - + + - - + + - - + + - +
OptionNameDescription
9X10 mode`9`*X10~mode* This is the most basic tracking mode, in which only button presses are reported. N = button - 1: (0 left, 1 middle, 2 right, 3, 4 wheel).
1000Normal mode`1000`*Normal~mode* In Normal mode, both button presses and releases are reported. - The lower two bits of N indicate the button pressed: - 00b (0) left, 01b (1) middle, 10b (2) right, 11b (3) button release. + The lower two bits of N indicate the button pressed: + `00b` (0) left, `01b` (1) middle, `10b` (2) right, `11b` (3) button release. Wheel buttons are reported as 0 and 1 with added 64 (e.g. 64 and 65). Normal mode also supports tracking of modifier keys, which are added to N as bit masks: - 4 Shift, 8 Meta/Alt, 16 Control/Cmd. Example: middle button with Shift = 1 + 4 = 101b (5). + 4=_Shift_, 8=_Meta/Alt_, 16=_Control/Cmd_. Example: middle button with _Shift_ = 1 + 4 = `101b` (5).
1002Button-Event tracking`1002`*Button-Event tracking* - This is similar to Normal mode (1000), but mouse motion with a button held is also reported. - A motion event is generated when the mouse cursor moves between screen character cells. + This is similar to Normal mode (`1000`), but mouse motion with a button held is also reported. + A motion event is generated when the mouse cursor moves between screen character cells. A motion event has the same N as a press event, but 32 is added. For example, drag-drop event with the middle button will produce N = 1 (press), 33 (dragging) and 3 (release).
1003Any-Event tracking`1003`*Any-Event tracking* This mode is almost identical to Button Event tracking (1002), but motion events are sent even when no mouse buttons are held. This could be used to draw on-screen mouse cursor, for example. - Motion events with no buttons will use N = 32 + 11b (35). + Motion events with no buttons will use N = 32 + _11b_ (35).
1004Focus tracking`1004`*Focus~tracking* Focus tracking is a separate function from the other mouse tracking modes, therefore they can be enabled together. - Focus tracking reports when the terminal window (in Xterm) gets or loses focus, or in ESPTerm's case, when any - user is connected. This can be used to pause/resume a game or on-screen animations. - Focus tracking mode sends CSI I when the terminal receives, and CSI O when it loses focus. + Focus tracking reports when the terminal window (in Xterm) gets or loses focus, or in ESPTerm's case, when any + user is connected. This can be used to pause/resume a game or on-screen animations. + Focus tracking mode sends `CSI I` when the terminal receives, and `CSI O` when it loses focus.
- +
+

Mouse Report Encoding

- +

- The following schemes can be used with any of the tracking modes (except Focus tracking, which is not affected). + The following encoding schemes can be used with any of the tracking modes (except Focus tracking, which is not affected).

- - + +
+
- - + + - - + + - - + + - - + +
OptionNameDescription
N/ANormal scheme--*Normal~encoding* - This is the default scheme used when no other option is selected. - A mouse report in this scheme has the format CSI M n x y, - where n, x and y are characters with ASCII value 32 + the respective number, e.g. - 0 becomes 32 (space), 1 becomes 33 (!). Example: \e[M !! - left button press at coordinates 1,1 when - using X10 mode. + This is the default encoding scheme used when no other option is selected. + In this mode, a mouse report has the format `CSI M _n_ _x_ _y_`, + where _n_, _x_ and _y_ are characters with ASCII value = 32 (space) + the respective number, e.g. + 0 becomes 32 (space), 1 becomes 33 (!). The reason for adding 32 is to avoid producing control characters. + Example: `\e[M !!` - left button press at coordinates 1,1 when using X10 mode.
1005UTF-8 scheme`1005`*UTF-8~encoding* This scheme should encode each of the numbers as a UTF-8 code point, expanding the maximum possible value. Since ESPTerm's screen size is limited and this has no practical benefit, this serves simply as an alias @@ -434,26 +457,28 @@
1006SGR scheme`1006`*SGR~encoding* - In SGR scheme, the response is a SGR sequence with the three numbers as ASCII values. In this case, - 32 is not added, like in the Normal and UTF-8 schemes. Also, button release is not reported as 11b, - but using the normal button code while changing the final SGR character: M for button press - and m for button release. Example: \e[2;80;24m - the right button was released + In SGR encoding, the response looks like a SGR sequence with the three numbers as semicolon-separated + ASCII values. In this case 32 is not added like in the Normal and UTF-8 schemes, because + it would serve nor purpose here. Also, button release is not reported as 11b, + but using the normal button code while changing the final SGR character: `M` for button press + and `m` for button release. Example: `\e[2;80;24m` - the right button was released at row 80, column 24.
1015URXVT scheme`1015`*URXVT~encoding* - This is similar to the SGR scheme, but the final character is always M and the numbers are - like in the Normal scheme, with 32 added. This scheme has no real advantage over the previous schemes and + This is similar to SGR encoding, but the final character is always `M` and the numbers are + like in the Normal scheme, with 32 added. This scheme has no real advantage over the previous schemes and was added solely for completeness.
+
@@ -473,8 +498,8 @@

- Legend: - Italic letters such as n are ASCII numbers that serve as arguments, separated with a semicolon. + *Legend:* + Italic letters such as _n_ are ASCII numbers that serve as arguments, separated with a semicolon. If an argument is left out, it's treated as 0 or 1, depending on what makes sense for the command.

@@ -485,33 +510,43 @@ - \e[nA
- \e[nB
- \e[nC
- \e[nD + + \e[nA \\ + \e[nB \\ + \e[nC \\ + \e[nD + - Move cursor up (A), down (B), right (C), left (D) + Move cursor up (`A`), down (`B`), right (`C`), left (`D`) - \e[nF
- \e[nE + + \e[nF \\ + \e[nE + - Go n lines up (F) or down (E), start of line + Go _n_ lines up (`F`) or down (`E`), start of line - \e[rd
- \e[cG
- \e[r;cH + + \e[rd \\ + \e[cG \\ + \e[r;cH + - Go to absolute position - row (d), column (G), or both (H). Use \e[H to go to 1,1. + Go to absolute position - row (`d`), column (`G`), or both (`H`). Use `\e[H` to go to 1,1. - \e[6n - Query cursor position. Sent back as \e[r;cR. + + `\e[6n` + + + Query cursor position. Sent back as `\e[r;cR`. + @@ -522,12 +557,22 @@ CodeMeaning - \e[s
\e[u - Save (s) or restore (u) cursor position + + + \e[s \\ + \e[u + + + Save (`s`) or restore (`u`) cursor position - \e7
\e8 - Save (7) or restore (8) cursor position and attributes + + + \e7 \\ + \e8 + + + Save (`7`) or restore (`8`) cursor position and attributes @@ -538,22 +583,38 @@ CodeMeaning - \e[a;br - Set scrolling region to rows a through b and go to 1,1. By default, the + + `\e[a;br` + + + Set scrolling region to rows _a_ through _b_ and go to 1,1. By default, the scrolling region spans the entire screen height. The cursor can leave the region using - absolute position commands, unless Origin Mode (see below) is active. + absolute position commands, unless Origin Mode (see below) is active. + - \e[?6h
\e[?6l - Enable (h) or disable (l) Origin Mode and go to 1,1. In Origin Mode, all coordinates - are relative to the Scrolling Region and the cursor can't leave the region. + + + \e[?6h \\ + \e[?6l + + + + Enable (`h`) or disable (`l`) Origin Mode and go to 1,1. In Origin Mode, all coordinates + are relative to the Scrolling Region and the cursor can't leave the region. + - \e[nS
- \e[nT + + \e[nS \\ + \e[nT + + + + Move contents of the Scrolling Region up (`S`) or down (`T`), pad with empty + lines of the current background color. - Move contents of the Scrolling Region up (S) or down (T), pad with empty lines of the current background color. @@ -564,22 +625,30 @@ CodeMeaning - \eH - Set tab stop at the current column. There are, by default, tabs every 8 columns. + + `\eH` + + + Set tab stop at the current column. There are, by default, tabs every 8 columns. + - \e[nI
- \e[nZ + + \e[nI \\ + \e[nZ + - Advance (I) or go back (Z) n tab stops or end/start of line. ASCII TAB (9) is equivalent to \e[1I + Advance (`I`) or go back (`Z`) _n_ tab stops or end/start of line. ASCII _TAB_ (9) is equivalent to \e[1I - \e[0g
- \e[3g
+ + \e[0g \\ + \e[3g \\ + - Clear tab stop at the current column (0), or all columns (3). + Clear tab stop at the current column (`0`), or all columns (`3`). @@ -590,12 +659,22 @@ CodeMeaning - \e[?7h
\e[?7l - Enable (h) or disable (l) cursor auto-wrap and screen auto-scroll + + + \e[?7h \\ + \e[?7l + + + Enable (`h`) or disable (`l`) cursor auto-wrap and screen auto-scroll - \e[?25h
\e[?25l - Show (h) or hide (l) the cursor + + + \e[?25h \\ + \e[?25l + + + Show (`h`) or hide (`l`) the cursor @@ -608,7 +687,7 @@

Legend: - Italic letters such as n are ASCII numbers that serve as arguments, separated with a semicolon. + Italic letters such as _n_ are ASCII numbers that serve as arguments, separated with a semicolon. If an argument is left out, it's treated as 0 or 1, depending on what makes sense for the command.

@@ -616,33 +695,50 @@ CodeMeaning - \e[mJ - Clear part of screen. m: 0 - from cursor, 1 - to cursor, 2 - all + + `\e[mJ` + + + Clear part of screen. _m_: 0 - from cursor, 1 - to cursor, 2 - all + - \e[mK - Erase part of line. m: 0 - from cursor, 1 - to cursor, 2 - all + + `\e[mK` + + + Erase part of line. _m_: 0 - from cursor, 1 - to cursor, 2 - all + - \e[nX + `\e[nX` + + Erase _n_ characters in line. - Erase n characters in line. - \e[nL
- \e[nM + + \e[nL \\ + \e[nM + + + + Insert (`L`) or delete (`M`) _n_ lines. Following lines are pulled up or pushed down. - Insert (L) or delete (M) n lines. Following lines are pulled up or pushed down. - \e[n@
- \e[nP + + \e[n@ \\ + \e[nP + + + + Insert (`@`) or delete (`P`) _n_ characters. The rest of the line is pulled left or pushed right. + Characters going past the end of line are lost. - Insert (@) or delete (P) n characters. The rest of the line is pulled left or pushed right. - Characters going past the end of line are lost. @@ -656,7 +752,7 @@

ESPTerm implements Alternate Character Sets as a way to print box drawing characters and special symbols. A character set can change what each received ASCII character - is printed as on the screen (eg. "{" is "π" in codepage 0). The implementation is based + is printed as on the screen (eg. "{" is "π" in codepage `0`). The implementation is based on the original VT devices. Since ESPTerm also fully supports UTF-8, you can probably ignore this feature and use Unicode directly. It's added for compatibility with some programs that use this. @@ -665,10 +761,10 @@

The following codepages are implemented:

    -
  • B - US ASCII (default)
  • -
  • A - UK ASCII: # replaced with £
  • -
  • 0 - Symbols and basic line drawing (standard DEC alternate character set)
  • -
  • 1 - Symbols and advanced line drawing (based on DOS codepage 437)
  • +
  • `B` - US ASCII (default)
  • +
  • `A` - UK ASCII: # replaced with £
  • +
  • `0` - Symbols and basic line drawing (standard DEC alternate character set)
  • +
  • `1` - Symbols and advanced line drawing (based on DOS codepage 437)

To see what character maps to which symbol, look in the source code or try it. All codepages use codes 32-127, 32 being space.

@@ -686,19 +782,19 @@ CodeMeaning - \e(x + `\e(x` Set G0 = codepage x - \e)x + `\e)x` Set G1 = codepage x - SO (14) + _SO_ (14) Activate G0 - SI (15) + _SI_ (15) Activate G1 @@ -719,20 +815,21 @@ CodeMeaning - \ec + `\ec` Clear screen, reset attributes and cursor. The screen size, title and button labels remain unchanged. - \e[5n + `\e[5n` - Query device status, ESPTerm replies with \e[0n "device is OK". - Can be used to check if the terminal has booted up and is ready to receive commands. + Query device status, ESPTerm replies with `\e[0n` "device is OK". + Can be used to check if the terminal has booted up and is ready to receive commands. + - CAN (24) + _CAN_ (24) This ASCII code is not a command, but is sent by ESPTerm when it becomes ready to receive commands. When this code is received on the UART, it means ESPTerm has restarted and is ready. Use this to detect @@ -740,22 +837,26 @@ - \e]0;title\a + `\e]0;title\a` Set screen title (this is a standard OSC command) - \e]81;btn1\a
- \e]82;btn2\a
- \e]83;btn3\a
- \e]84;btn4\a
- \e]85;btn5\a
+ + \e]81;btn1\a \\ + \e]82;btn2\a \\ + \e]83;btn3\a \\ + \e]84;btn4\a \\ + \e]85;btn5\a \\ + + + + Set button 1-5 label - eg.`\e]81;Yes\a` + sets the first button text to "Yes". - Set button 1-5 label - eg. \e]81;Yes\a - sets the first button text to "Yes". - \e[8;r;ct + `\e[8;r;ct` Set screen size (this is a command borrowed from xterm) diff --git a/html_orig/sass/_normalize.scss b/html_orig/sass/_normalize.scss index ad1ad9c..0b1750f 100755 --- a/html_orig/sass/_normalize.scss +++ b/html_orig/sass/_normalize.scss @@ -245,7 +245,7 @@ code, pre //samp { - font-family: monospace; + font-family: "DejaVu Sans Mono", "Inconsolata", monospace; font-size: 1em; } diff --git a/html_orig/sass/layout/_box.scss b/html_orig/sass/layout/_box.scss index 93d11dd..a16e39b 100755 --- a/html_orig/sass/layout/_box.scss +++ b/html_orig/sass/layout/_box.scss @@ -1,6 +1,7 @@ .Box { display: block; max-width: 900px; + line-height: 1.35em; margin-top: dist(0); padding: dist(-1) dist(0); diff --git a/html_orig/sass/pages/_about.scss b/html_orig/sass/pages/_about.scss index e55ce39..27e8f88 100644 --- a/html_orig/sass/pages/_about.scss +++ b/html_orig/sass/pages/_about.scss @@ -22,6 +22,14 @@ } } +.page-help { + code { + background: rgba(33, 97, 109, 0.31); + border-radius: 1px; + padding: 0 2px; + } +} + .colorprev { margin-top: dist(-2); margin-bottom: dist(-2); @@ -48,10 +56,6 @@ } .ansiref { - td:nth-child(1) { - font-family: monospace; - } - &.w100 { width: 100%; @@ -60,3 +64,19 @@ } } } + +.nomen { + width: 100%; + + code { + white-space: nowrap; + } + + td:last-child { + min-width: 15em; + } +} + +.tscroll { + overflow-x: auto; +}