| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | render: minor | Daniel Eklöf | 2019-07-24 | -1/+2 |
| | | ||||
| * | footrc: add cursor color | Daniel Eklöf | 2019-07-24 | -0/+1 |
| | | ||||
| * | render: move local static variables into the terminal struct | Daniel Eklöf | 2019-07-24 | -31/+36 |
| | | ||||
| * | render: move frame_callback to term.render | Daniel Eklöf | 2019-07-24 | -9/+11 |
| | | ||||
| * | render: add render_refresh() | Daniel Eklöf | 2019-07-24 | -16/+16 |
| | | ||||
| * | render: bug: previous cursor wasn't always redrawn correctly | Daniel Eklöf | 2019-07-24 | -39/+56 |
| | | | | | | | | | | | | | | | | | | | | | The main problem is knowing: * The correct *cell* (to be able to render the *content* when erasing the old cursor) * Whether the cursor has moved (to determine whether to stop the rendering loop or not) * Where on the *screen* the cursor is/was (since the terminal may be partly scrolled back) This patch stores three static variables: * last_cursor is used to compare against current cursor to see if the cursor has moved or not * last_cursor_on_screen is the actual screen coordinates the cursor was rendered at (typically the same as last_cursor, but may be offset by the view) * last_cursor_cell is a pointer to the cell to render | |||
| * | conf: allow the user to configure a fixed cursor color | Daniel Eklöf | 2019-07-23 | -15/+81 |
| | | | | | | | | | | | | | | | | | | | | The default is to reverse the foreground/background colors in the cell with the cursor. But, if the user configures a specific set of cursor colors, those will always be used, regardless of other cell attributes (dim, reverse etc). The cursor color is specified as two color values, 'text' and 'cursor'. The block cursor uses the 'cursor' color as background, and the 'text' color for the glyph. All other cursor styles uses the 'cursor' color for the cursor, but uses the cell's foreground color for the glyph (meaning, dim/reverse/etc applies). | |||
| * | 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 | -3/+20 |
| | | ||||
| * | grid: swap rows doesn't mark rows as dirty | Daniel Eklöf | 2019-07-23 | -3/+0 |
| | | ||||
| * | osc: ignore OSC 30 (konsole's "set tab title") | Daniel Eklöf | 2019-07-23 | -1/+7 |
| | | ||||
| * | csi: implement \E[Z - back tab | Daniel Eklöf | 2019-07-22 | -1/+10 |
| | | ||||
| * | csi: *sigh* looks like e.g. neovim doesn't respect Se | Daniel Eklöf | 2019-07-22 | -9/+6 |
| | | | | | | | | | 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 | -3/+11 |
| | | | | | | | | | 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". | |||
| * | conf: make cursor's default style configurable | Daniel Eklöf | 2019-07-22 | -1/+48 |
| | | ||||
| * | render: implement cursor styles 'bar' and 'underline' | Daniel Eklöf | 2019-07-22 | -49/+94 |
| | | ||||
| * | csi: prepare for alternative cursor styles | Daniel Eklöf | 2019-07-22 | -12/+19 |
| | | ||||
| * | term: group 'blink' state together in a struct | Daniel Eklöf | 2019-07-22 | -17/+21 |
| | | ||||
| * | term: group 'flash' state together in a struct | Daniel Eklöf | 2019-07-22 | -14/+18 |
| | | ||||
| * | flash: convert our own 'flash' from a CSI to an OSC | Daniel Eklöf | 2019-07-22 | -17/+25 |
| | | ||||
| * | csi: implement CSI 3J - erase scroll back | Daniel Eklöf | 2019-07-22 | -0/+23 |
| | | ||||
| * | keymap: fix sequences for PageDown | Daniel Eklöf | 2019-07-22 | -7/+7 |
| | | ||||
| * | terminfo: add key sequences for keys with modifiers | Daniel Eklöf | 2019-07-22 | -6/+58 |
| | | ||||
| * | terminfo: add Se/Ss - describes how to change cursor style | Daniel Eklöf | 2019-07-22 | -0/+2 |
| | | ||||
| * | terminfo: add Ms - modify selection/clipboard | Daniel Eklöf | 2019-07-22 | -0/+1 |
| | | ||||
| * | terminfo: add smxx/rmxx - describes strikeout/crossed-out | Daniel Eklöf | 2019-07-22 | -0/+2 |
| | | ||||
| * | terminfo: set XT (screen) - we understand OSC and mouse tracking | Daniel Eklöf | 2019-07-22 | -0/+1 |
| | | ||||
| * | terminfo: set AX (screen) - we understand CSI 39/49m | Daniel Eklöf | 2019-07-22 | -0/+1 |
| | | ||||
| * | conf: don't fail to start when there's no configuration file | Daniel Eklöf | 2019-07-22 | -0/+1 |
| | | ||||
| * | terminfo: revert kmous to \E[M | Daniel Eklöf | 2019-07-21 | -2/+10 |
| | | | | | | ncurses disables mouse support completely if kmous != \E[M. Now, since kmous *has* to match XM, this means we must also disable XM. | |||
| * | terminfo: since we now expose our SGR cap, set kmous=\E< | Daniel Eklöf | 2019-07-21 | -1/+1 |
| | | ||||
| * | terminfo: add XM (mouse initialization) | Daniel Eklöf | 2019-07-21 | -2/+2 |
| | | ||||
| * | 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 |
| | | ||||
| * | main: no need to damage the _entire_ view on blink timer | Daniel Eklöf | 2019-07-21 | -1/+11 |
| | | ||||
| * | blink: implement 'blink' | Daniel Eklöf | 2019-07-21 | -1/+79 |
| | | ||||
| * | 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 | -22/+84 |
| | | | | | | | | | | | 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 |
| | | ||||
| * | dcs: we have no parent terminal to pass through to | Daniel Eklöf | 2019-07-21 | -59/+1 |
| | | ||||
| * | conf: remove debug logging | Daniel Eklöf | 2019-07-21 | -2/+0 |
| | | ||||
| * | csi: implement CSI 22t and CSI 23t | Daniel Eklöf | 2019-07-21 | -6/+38 |
| | | | | | | | | | | | | 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 | |||
| * | term: track current window title in terminal struct | Daniel Eklöf | 2019-07-21 | -4/+17 |
| | | ||||
| * | csi: remove TODO; we have our own terminfo | Daniel Eklöf | 2019-07-21 | -7/+0 |
| | | ||||
| * | render: make "new buffer" a debug log message, not warning | Daniel Eklöf | 2019-07-21 | -1/+1 |
| | | ||||
| * | footrc: example configuration | Daniel Eklöf | 2019-07-21 | -0/+23 |
| | | ||||
| * | conf: misc valgrind fixes | Daniel Eklöf | 2019-07-21 | -22/+44 |
| | | ||||
| * | Merge branch 'config-color' | Daniel Eklöf | 2019-07-21 | -97/+203 |
| |\ | ||||
| | * | 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: fg/bg and all regular + bright colors are now configurable | Daniel Eklöf | 2019-07-21 | -4/+70 |
| | | | ||||
| | * | conf: config now provides the colors (though still only hardcoded colors) | Daniel Eklöf | 2019-07-21 | -59/+95 |
| | | | ||||
| | * | term: prepare for configurable colors; add color variables to terminal | Daniel Eklöf | 2019-07-21 | -10/+19 |
| |/ | ||||
| * | osc: add TODO | Daniel Eklöf | 2019-07-19 | -0/+2 |
| | | ||||
| * | osc: delete empty line | Daniel Eklöf | 2019-07-19 | -1/+0 |
| | | ||||
| * | osc: implement OSC 52;c;? - query clipboard | Daniel Eklöf | 2019-07-19 | -38/+132 |
| | | ||||
| * | selection: add text_from_clipboard() | Daniel Eklöf | 2019-07-19 | -7/+30 |
| | | | | | | This function reads data from the clipboard, and calls a user-provided callback for each chunk of clipboard data. | |||
| * | base64: implement encode() | Daniel Eklöf | 2019-07-19 | -2/+73 |
| | | ||||
| * | osc: initial implementation of OSC 52 - copy to clipboard | Daniel Eklöf | 2019-07-19 | -0/+64 |
| | | ||||
| * | selection: add text_to_clipboard() | Daniel Eklöf | 2019-07-19 | -6/+17 |
| | | | | | This function takes a string and makes it available to the clipboard. | |||
| * | input: store last seen wayland input serial | Daniel Eklöf | 2019-07-19 | -1/+11 |
| | | | | | We need this for clipboard data | |||
| * | base64: initial base64 decode implementation | Daniel Eklöf | 2019-07-19 | -0/+92 |
| | | ||||
| * | osc: foreground/background reply is now in correct XParseColor format | Daniel Eklöf | 2019-07-19 | -4/+13 |
| | | | | | | The format we used previously was a discouraged and obsolete format (and incorrect too). | |||
| * | 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: define state_names[] table when debug logging has been enabled | Daniel Eklöf | 2019-07-19 | -1/+1 |
| | | ||||
| * | vt: handle up to two private characters | Daniel Eklöf | 2019-07-19 | -13/+24 |
| | | ||||
| * | ocs: renamed parameter size -> required_size in osc_ensure_size() | Daniel Eklöf | 2019-07-19 | -1/+1 |
| | | ||||
| * | dcs: sort of implement DCS passthrough | Daniel Eklöf | 2019-07-19 | -4/+62 |
| | | | | | | | | We now store the passthrough characters in a buffer, and call dcs_passthrough() on unhook. However, dcs_passthrough() doesn't do anything. | |||
| * | osc: allocate data buffer dynamically | Daniel Eklöf | 2019-07-19 | -4/+30 |
| | | ||||
| * | osc: terminate reply with ST rather than BEL | Daniel Eklöf | 2019-07-18 | -1/+1 |
| | | | | | | This is the preferred terminator anyway, and at least Emacs likes it a whole lot better. | |||
| * | csi: recognize, but ignore, modifyOtherKeys et al resource setters | Daniel Eklöf | 2019-07-18 | -0/+23 |
| | | ||||
| * | osc: implement foreground/background query | Daniel Eklöf | 2019-07-18 | -3/+34 |
| | | ||||
| * | vt: implement SS2/SS3 and ST | Daniel Eklöf | 2019-07-18 | -3/+17 |
| | | ||||
| * | csi: better (more correct) reply to \e[>0c | Daniel Eklöf | 2019-07-18 | -1/+1 |
| | | ||||
| * | keymap: map tab and back-tab | Daniel Eklöf | 2019-07-18 | -0/+11 |
| | | ||||
| * | vt: execute: ignore unrecognized C0 commands | Daniel Eklöf | 2019-07-18 | -2/+1 |
| | | ||||
| * | terminfo: change kmous to \E[M. This fixes mouse not working in e.g. htop | Daniel Eklöf | 2019-07-18 | -1/+1 |
| | | ||||
| * | main: allow TERM to be set on the command line | Daniel Eklöf | 2019-07-18 | -1/+7 |
| | | ||||
| * | conf: TERM can now be set in footrc | Daniel Eklöf | 2019-07-18 | -4/+11 |
| | | ||||
| * | 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 |
| | | ||||
| * | main: use our own terminfo 'foot' by default | Daniel Eklöf | 2019-07-18 | -1/+1 |
| | | ||||
| * | csi: fix wrong variable compared in for-loop | Daniel Eklöf | 2019-07-18 | -1/+1 |
| | | ||||
| * | terminfo: intitial terminfo specification | Daniel Eklöf | 2019-07-18 | -0/+190 |
| | | ||||
| * | glyph-cache: generate at startup, never update while rendering | Daniel Eklöf | 2019-07-18 | -20/+38 |
| | | ||||
| * | vt: execute: handle \0 (NUL), by ignoring it | Daniel Eklöf | 2019-07-18 | -0/+3 |
| | | ||||
| * | render: comments | Daniel Eklöf | 2019-07-18 | -0/+3 |
| | | ||||
| * | render: make frame rendering time measuring optional | Daniel Eklöf | 2019-07-18 | -0/+6 |
| | | ||||
| * | render: cache generated glyphs for regular ASCII characters | Daniel Eklöf | 2019-07-18 | -8/+47 |
| | | | | | | | | | To avoid having to re-generate glyphs, cache the glyphs. For now, we only cache ASCII characters, as this allows us to lookup the cache by simply indexing with the character (into a 256-entry array). | |||
| * | render: break out color conversion | Daniel Eklöf | 2019-07-18 | -36/+26 |
| | | ||||
| * | font: don't warn when failing to get hinting/antialias | Daniel Eklöf | 2019-07-18 | -6/+2 |
| | | | | | | | | These properties aren't always included in the pattern, and when they aren't, trying to get them will fail. This isn't an error, just fallback to a default value. | |||
| * | render: time how long time it takes to render a frame | Daniel Eklöf | 2019-07-18 | -0/+12 |
| | | ||||
| * | font: remove assert that was only there for debugging | Daniel Eklöf | 2019-07-18 | -1/+0 |
| | | ||||
| * | font: sync cairo's options with the FC pattern | Daniel Eklöf | 2019-07-17 | -1/+24 |
| | | | | | | | Configure cairo's 'options' with default values, then update the FontConfig pattern. Finally, update the cairo options after having retrieved the final FontConfig option. | |||
| * | selection: implement double-click-to-select-word | Daniel Eklöf | 2019-07-17 | -4/+97 |
| | | ||||
| * | selection: bug: apply grid's view offset when starting a selection | Daniel Eklöf | 2019-07-17 | -1/+1 |
| | | ||||
| * | csi: implement \E[@ (ICH - insert characters) | Daniel Eklöf | 2019-07-17 | -15/+24 |
| | | ||||
| * | keymap: use hex instead of octal | Daniel Eklöf | 2019-07-17 | -3/+3 |
| | | ||||
| * | vt/csi: recognize the reset sequence sent by 'reset' | Daniel Eklöf | 2019-07-17 | -0/+28 |
| | | | | | However, we don't (yet) actually reset the terminal | |||
