| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | term: resize: pre-calculate right/bottom margins | Daniel Eklöf | 2020-02-24 | -11/+2 |
| | | ||||
| * | csi: delete all sixels on the 'alt' grid when switching back to 'normal' | Daniel Eklöf | 2020-02-22 | -0/+8 |
| | | ||||
| * | sixel: application configurable image max width/height | Daniel Eklöf | 2020-02-22 | -4/+6 |
| | | ||||
| * | sixel: application configurable palette size (color count) | Daniel Eklöf | 2020-02-22 | -0/+25 |
| | | | | | | This implements the CSI escapes for retrieving and (re)setting the palette size. | |||
| * | csi: DA: we now implement sixel | Daniel Eklöf | 2020-02-22 | -1/+1 |
| | | ||||
| * | csi: log only the un-handled parameter in a multi-operation CSI | Daniel Eklöf | 2020-02-01 | -21/+24 |
| | | | | | | | Assume we don't handle 'CSI 4 X'. Furthermore, assume we receive the following: 'CSI 1;2;3;4X'. In this case, only log '4X' as un-handled, not the entire CSI string. | |||
| * | csi: implement window and cell size reporting escapes | Daniel Eklöf | 2020-02-01 | -1/+57 |
| | | | | | | | | | | | This implements the following queries: * report window size in pixels * report cell size in pixels * report window size in chars We also log a warning for the remaining window operation queries. | |||
| * | csi: recognize the X10 mouse tracking enabler/disabler | Daniel Eklöf | 2020-02-01 | -0/+6 |
| | | | | | | We still don't implement it, but now we at least recognize it and log a warning when it is implemented. | |||
| * | csi: drop '28' from our DA response | Daniel Eklöf | 2020-02-01 | -1/+1 |
| | | | | | We don't support rectangular editing | |||
| * | vt: use 8-bit indices for parameters and sub parameters | Daniel Eklöf | 2020-02-01 | -3/+3 |
| | | | | | | We only support 16 (sub) parameters and thus there's no need for 64-bit index variables. | |||
| * | csi: disable save/restore highlight mouse tracking | Daniel Eklöf | 2020-01-23 | -0/+4 |
| | | | | | | We don't implement it, so no point in warning about save/restore not begin implemented. | |||
| * | csi: warn when client tries to enable "highlight mouse tracking" | Daniel Eklöf | 2020-01-23 | -0/+8 |
| | | ||||
| * | input: implement metaSendsEscape and eightBitMeta | Daniel Eklöf | 2020-01-20 | -3/+18 |
| | | ||||
| * | csi: implement REP - CSI Ps b | Daniel Eklöf | 2020-01-20 | -0/+16 |
| | | ||||
| * | csi: change DA3 reply to "FOOT", in hex | Daniel Eklöf | 2019-12-21 | -1/+1 |
| | | ||||
| * | term: implement cursor blinking | Daniel Eklöf | 2019-12-15 | -5/+6 |
| | | | | | | | | | | | | | | | Blinking can be enabled either by setting the cursor style with CSI Ps SP q and selecting a blinking style. Or, with 'CSI ? 12 h' Note that both affect the same internal state. I.e. you can disable blinking with CSI ? 12l after having selected a blinking cursor style. This is consistent with XTerm behavior. | |||
| * | csi: describe format of reply to tertiary DA | Daniel Eklöf | 2019-12-14 | -4/+10 |
| | | ||||
| * | csi: Send Device Attributes, Tertiary DA: require Ps == 0 | Daniel Eklöf | 2019-12-14 | -4/+7 |
| | | ||||
| * | csi/vt: don't bad client data as errors | Daniel Eklöf | 2019-11-29 | -1/+1 |
| | | | | | This gets rid of spam when cat:ing binary data. | |||
| * | csi/ocs/vt: log unhandled/unrecognized sequences as debug messages | Daniel Eklöf | 2019-11-29 | -2/+2 |
| | | | | | | | | | Having them as error messages was nice when we where still missing lots of sequences. Now we don't anymore, and these just spam stdout as well as syslog when e.g. cat:ing binary data. | |||
| * | terminal: use the 'text' xcursor pointer whenever selection is possible | Daniel Eklöf | 2019-11-28 | -0/+4 |
| | | ||||
| * | csi: implement "Send Device Attributes (Tertiary DA)" | Daniel Eklöf | 2019-11-18 | -0/+18 |
| | | ||||
| * | csi: adjust reply to primary DA | Daniel Eklöf | 2019-11-18 | -1/+1 |
| | | | | | | | | | | | Report us as being VT220, as VT420 causes vttest to send a DECRQSS. This is a DCS request that we don't implement (there's no DCS handling *at all* - all DCS strings are ignored). Should be ok as no one appears to care about this one. Other terminals report a much lower level (urxvt for example, replies with vt100. We used to reply with vt102, which also was fine). | |||
| * | csi: improve "Send Device Attributes (Primary DA)" | Daniel Eklöf | 2019-11-18 | -2/+32 |
| | | | | | | | | Pretend we're a VT420, with a couple of supported features indicated. Note that I haven't verified we support *everything* that each features entails - or even what exactly a feature *is* (locator port?) | |||
| * | csi: document "Send Device Attributes (Secondary DA)" | Daniel Eklöf | 2019-11-18 | -0/+20 |
| | | ||||
| * | csi: implement 'Query Device Status' | Daniel Eklöf | 2019-11-18 | -0/+5 |
| | | | | | By replying with "Device OK" | |||
| * | csi: add debug logs for the various mouse reporting modes | Daniel Eklöf | 2019-11-18 | -1/+4 |
| | | ||||
| * | term: try to improve on a performance regression | Daniel Eklöf | 2019-11-17 | -11/+9 |
| | | | | | | | | | When support was added for DECOM (absolute/relative row addressing), a small but noticeable (~3.5%) performance regression was introduced. Try to improve the situation by simplifying the relative-to-absolute conversion; only the row needs to be transformed. | |||
| * | csi: implement 'CHT' - Cursor Horizontal Tab | Daniel Eklöf | 2019-11-17 | -0/+16 |
| | | ||||
| * | csi: implement 'CPL' - Cursor Previous Line | Daniel Eklöf | 2019-11-17 | -0/+6 |
| | | ||||
| * | csi: implement 'CNL' - Cursor Next Line | Daniel Eklöf | 2019-11-17 | -0/+6 |
| | | ||||
| * | csi: implement 'HPR' - Horizontal Position Relative | Daniel Eklöf | 2019-11-17 | -0/+1 |
| | | ||||
| * | csi: fix bad implementation of CBT (back tab) | Daniel Eklöf | 2019-11-17 | -6/+13 |
| | | | | | | | | * It takes a parameter, that indicates the number of tab stops to move through * Use the tab stops defined in the tab stops list, not hard coded mod 8 columns. | |||
| * | csi: implement 'HPA' - Horizontal Position Absolute | Daniel Eklöf | 2019-11-17 | -0/+1 |
| | | ||||
| * | term: move lcf flag into 'cursor' struct | Daniel Eklöf | 2019-11-17 | -9/+9 |
| | | ||||
| * | term: add struct cursor | Daniel Eklöf | 2019-11-17 | -42/+42 |
| | | ||||
| * | term: rename: print_needs_wrap -> lcf (Last Column Flag) | Daniel Eklöf | 2019-11-17 | -9/+9 |
| | | ||||
| * | csi: el/ed/dch/ich/ech: reset 'print_needs_wrap' (lcf) | Daniel Eklöf | 2019-11-17 | -0/+9 |
| | | | | | | This makes the result of 'wraptest', by Mattias Engdegård, match the behavior of 'DEC' (the architectural behavior of DEC terminals). | |||
| * | csi: implement CSI 0g and CSI 3g | Daniel Eklöf | 2019-11-16 | -0/+26 |
| | | | | | | * 0g - clear tab stop at current column * 3g - clear all tab stops | |||
| * | csi: CSI ?4h enables smooth scrolling, ?4l enables jump scrolling | Daniel Eklöf | 2019-11-05 | -2/+7 |
| | | ||||
| * | csi: implement DECOM - switch cursor origin between absolute and relative | Daniel Eklöf | 2019-11-05 | -13/+27 |
| | | | | | | | | | | | | The default is absolute mode, where 0,0 is the upper left corner of the screen. In relative mode, the origin is relative the top scroll margin. Internally, we always track the current cursor position in absolute mode. Every time we the client *sets* or *queries* the cursor position in relative mode, we translate it to absolute. | |||
| * | csi: DECCOLM erases screen | Daniel Eklöf | 2019-11-05 | -0/+15 |
| | | ||||
| * | csi: CSI ?3h enables 132 column mode, CSI ?3l 80 column mode | Daniel Eklöf | 2019-11-05 | -2/+6 |
| | | ||||
| * | csi: implement force cursor position | Daniel Eklöf | 2019-11-05 | -0/+1 |
| | | ||||
| * | scan-build: fix a couple of minor warnings from a scan-build run | Daniel Eklöf | 2019-11-05 | -2/+2 |
| | | ||||
| * | csi: comment out handling of CSI ? 1042/1043 h/l | Daniel Eklöf | 2019-11-04 | -0/+4 |
| | | | | | | In Wayland, we neither _have_ an urgency hint to set, nor can we raise the window(?) | |||
| * | csi: recognize CSI ? 1042/1043 h/l | Daniel Eklöf | 2019-11-04 | -0/+16 |
| | | | | | | 1042: set 'urgency' window manager hint when receiving ctrl-g 1043: raise window when receiving ctrl-g | |||
| * | Rename: vt_to_slave() -> term_to_slave() | Daniel Eklöf | 2019-11-02 | -4/+4 |
| | | ||||
| * | csi: ignore invalid scrolling regions0.9.0 | Daniel Eklöf | 2019-09-29 | -7/+10 |
| | | | | | | | | | | | There must be at least one scrolling row. I.e. the bottom margin must be larger than the top margin. Note that trying to set an invalid region really will be *ignored*. I.e. we *don't* reset the scrolling region. This conforms to xterm's behavior. | |||
| * | csi: don't ignore the color space identifier in SGRs | Daniel Eklöf | 2019-09-04 | -10/+73 |
| | | | | | | | | | | Only a color space ID of '2' means the sequence is an RGB sequence. Update existing code to verify this, and ignore sequences with other color space IDs. Except color space ID '5', which is the same as a regular 38;5;<idx> sequence, but using sub-parameters instead (38:2:5:<idx>). | |||
| * | csi: CSI h isn't a valid sequence - it needs a parameter | Daniel Eklöf | 2019-08-30 | -5/+29 |
| | | | | | | And, 'insert mode' isn't activated with \e[h, but with \e[4h. | |||
| * | term: rename colors256 -> table | Daniel Eklöf | 2019-08-21 | -6/+6 |
| | | ||||
| * | term: use colors256 array for *all* colors | Daniel Eklöf | 2019-08-21 | -22/+7 |
| | | | | | | | That is, remove the 'regular' and 'bright' color arrays. This is possible since the 256-color array is defined such that the first 16 colors map to the regular and bright colors. | |||
| * | csi: move 256-color table into the terminal struct | Daniel Eklöf | 2019-08-21 | -27/+2 |
| | | ||||
| * | csi: implement CSI ? 1007 h/l - alternateScroll | Daniel Eklöf | 2019-08-19 | -0/+8 |
| | | | | | | When enabled, mouse scrolls in the alternate screen are converted to up/down key presses. | |||
| * | csi: cancel selection *before* switching grid | Daniel Eklöf | 2019-08-08 | -3/+4 |
| | | | | | This fixes an occasional SIGSEGV | |||
| * | csi: add 'unimplemented' warnings for things we handle but ignore | Daniel Eklöf | 2019-08-04 | -6/+19 |
| | | ||||
| * | cell: pack more efficiently and store glyph as a wchar | Daniel Eklöf | 2019-08-02 | -14/+24 |
| | | | | | | | | | | | | The 'attributes' struct is now 8 bytes and naturally packed (used to be 9 bytes, artificially packed). 'cell' struct is now 12 bytes, naturally packed (used to be 13 bytes, artificially packed). Furthermore, the glyph is stored as a wchar instead of a char*. This makes it easier (faster) to do glyph lookup when rendering. | |||
| * | term: implement reset | Daniel Eklöf | 2019-08-01 | -1/+1 |
| | | ||||
| * | vt: remove almost all abort() calls | Daniel Eklöf | 2019-07-30 | -62/+35 |
| | | | | | | | Replace with generic error log messages that simply says the ESC/CSI/OSC sequence is unhandled. This can mean either invalid or unimplemented, depending on the context. | |||
| * | render: add a 'clean' bit to each cell; only render cells that aren't clean | Daniel Eklöf | 2019-07-30 | -10/+15 |
| | | | | | | | | | | | | This patch takes a bit from the foreground color value in a cell (todo: split up foreground/background into bitfields with a separate field for 'foreground/background' has been set), and only re-renders cells that aren't marked as clean. Note: we use a 'clean' bit rather than a 'dirty' bit to make it easy to erase cells - we can (keep doing) do that by simply memsetting a cell range to 0. | |||
| * | csi: ignore CSI ?1036h/l (metaSendsEscape) | Daniel Eklöf | 2019-07-23 | -0/+9 |
| | | ||||
| * | term: make sure to update 'current row' when restoring saved cursor | Daniel Eklöf | 2019-07-23 | -2/+9 |
| | | ||||
| * | csi: implement \E[Z - back tab | Daniel Eklöf | 2019-07-22 | -0/+8 |
| | | ||||
| * | csi: *sigh* looks like e.g. neovim doesn't respect Se | Daniel Eklöf | 2019-07-22 | -8/+5 |
| | | | | | | | | | I.e. it issues a \E[2 q regardless of what we've configured the terminfo Se entry to. So, make \E[2 q mean "the user configured cursor style" (which defaults to 'block'). | |||
| * | csi: let CSI 0 q mean "switch to user configured cursor style" | Daniel Eklöf | 2019-07-22 | -2/+8 |
| | | | | | | | | | According to the specs, \E[0 q means a blinking block cursor. However, since it also states that \E[1 q *also* is a blinking block cursor, and that it is the default, *and* given that fact that parameter-less CSIs typically means "reset", let's make it mean "reset to the user configured cursor style". | |||
| * | render: implement cursor styles 'bar' and 'underline' | Daniel Eklöf | 2019-07-22 | -2/+0 |
| | | ||||
| * | csi: prepare for alternative cursor styles | Daniel Eklöf | 2019-07-22 | -12/+17 |
| | | ||||
| * | flash: convert our own 'flash' from a CSI to an OSC | Daniel Eklöf | 2019-07-22 | -16/+0 |
| | | ||||
| * | csi: implement CSI 3J - erase scroll back | Daniel Eklöf | 2019-07-22 | -0/+22 |
| | | ||||
| * | csi: bug: reset mouse *reporting* on CSI 1005/1006/1015l | Daniel Eklöf | 2019-07-21 | -1/+4 |
| | | ||||
| * | csi: remove debug logging | Daniel Eklöf | 2019-07-21 | -2/+0 |
| | | ||||
| * | csi: change flash log message from warning to debug | Daniel Eklöf | 2019-07-21 | -1/+1 |
| | | ||||
| * | flash: implement 'flash' | Daniel Eklöf | 2019-07-21 | -0/+19 |
| | | | | | | | | | | | Use our own escape sequence for the 'flash' terminfo entry. Implemented by arming a timer FD and setting a boolean that indicates we're currently "flashing". The renderer draws a semi-transparent yellowish layer over the entire window when "flashing" is active. | |||
| * | csi: remove erronous final | Daniel Eklöf | 2019-07-21 | -10/+2 |
| | | ||||
| * | csi: implement CSI 22t and CSI 23t | Daniel Eklöf | 2019-07-21 | -4/+32 |
| | | | | | | | | | | | | 22;0|1|2t pushes the current window title/icon to the stack, while 23 pops it. The second parameter, 0|1|2 has the following meaning: 0 - push/pop icon+title 1 - push/pop icon 2 - push/pop title | |||
| * | csi: remove TODO; we have our own terminfo | Daniel Eklöf | 2019-07-21 | -7/+0 |
| | | ||||
| * | csi: pick 16 first 256-colors directly from the term struct | Daniel Eklöf | 2019-07-21 | -2/+19 |
| | | | | | | | | | | | The 16 first entries in the 256-color array are the regular and bright colors. However, since they can be changed (eventually) at runtime, we can't statically initialize the 256-color array. Instead, pick the regular+bright colors directly from the terminal struct. I.e. the first 16 entries of the 256-color array are now unused. | |||
| * | csi: use colors from terminal struct | Daniel Eklöf | 2019-07-21 | -26/+4 |
| | | ||||
| * | conf: config now provides the colors (though still only hardcoded colors) | Daniel Eklöf | 2019-07-21 | -45/+1 |
| | | ||||
| * | term: prepare for configurable colors; add color variables to terminal | Daniel Eklöf | 2019-07-21 | -2/+2 |
| | | ||||
| * | csi: recognize DECRQM (CSI ? Ps $ p) | Daniel Eklöf | 2019-07-19 | -0/+23 |
| | | | | | | | The client sends this to request the state of DEC private modes. We don't support any of them, so for now, reply with 'reset'. | |||
| * | csi: tweak logging: no need to mention 'CSI' twice | Daniel Eklöf | 2019-07-19 | -3/+3 |
| | | ||||
| * | vt: handle up to two private characters | Daniel Eklöf | 2019-07-19 | -4/+8 |
| | | ||||
| * | csi: recognize, but ignore, modifyOtherKeys et al resource setters | Daniel Eklöf | 2019-07-18 | -0/+23 |
| | | ||||
| * | csi: better (more correct) reply to \e[>0c | Daniel Eklöf | 2019-07-18 | -1/+1 |
| | | ||||
| * | csi: color index is an 8-bit unsigned value | Daniel Eklöf | 2019-07-18 | -6/+4 |
| | | | | | | This fixes an issue where a large 8-bit value was signed extended into a large 64-bit value. | |||
| * | csi: validate param before indexing into the 256-color array | Daniel Eklöf | 2019-07-18 | -2/+4 |
| | | ||||
| * | csi: fix wrong variable compared in for-loop | Daniel Eklöf | 2019-07-18 | -1/+1 |
| | | ||||
| * | csi: implement \E[@ (ICH - insert characters) | Daniel Eklöf | 2019-07-17 | -15/+24 |
| | | ||||
| * | vt/csi: recognize the reset sequence sent by 'reset' | Daniel Eklöf | 2019-07-17 | -0/+24 |
| | | | | | However, we don't (yet) actually reset the terminal | |||
| * | csi: document a couple of unimplemented CSIs | Daniel Eklöf | 2019-07-17 | -0/+3 |
| | | ||||
| * | csi: move 'dim' attribute from 'vt' to cell attributes | Daniel Eklöf | 2019-07-16 | -3/+2 |
| | | ||||
| * | csi: add back 'blink' attribute | Daniel Eklöf | 2019-07-16 | -2/+2 |
| | | ||||
| * | terminal: foreground/background in cell attributes are now uint32_t | Daniel Eklöf | 2019-07-16 | -40/+48 |
| | | | | | This reduces the cell size, and thus improves the cache behavour | |||
| * | csi: implement \E[21m (disable bold) | Daniel Eklöf | 2019-07-16 | -0/+1 |
| | | ||||
| * | csi: implement FocusIn/Out events | Daniel Eklöf | 2019-07-16 | -0/+8 |
| | | ||||
| * | csi: recognize, but mostly ignore, cursor style configuration | Daniel Eklöf | 2019-07-16 | -0/+32 |
| | | ||||
| * | csi: add missing 'break' | Daniel Eklöf | 2019-07-16 | -0/+1 |
| | | ||||
| * | Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhere | Daniel Eklöf | 2019-07-15 | -3/+3 |
| | | ||||
