aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* render: minorDaniel Eklöf2019-07-24-1/+2
|
* footrc: add cursor colorDaniel Eklöf2019-07-24-0/+1
|
* render: move local static variables into the terminal structDaniel Eklöf2019-07-24-31/+36
|
* render: move frame_callback to term.renderDaniel Eklöf2019-07-24-9/+11
|
* render: add render_refresh()Daniel Eklöf2019-07-24-16/+16
|
* render: bug: previous cursor wasn't always redrawn correctlyDaniel Eklöf2019-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 colorDaniel Eklöf2019-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öf2019-07-23-0/+9
|
* term: make sure to update 'current row' when restoring saved cursorDaniel Eklöf2019-07-23-3/+20
|
* grid: swap rows doesn't mark rows as dirtyDaniel Eklöf2019-07-23-3/+0
|
* osc: ignore OSC 30 (konsole's "set tab title")Daniel Eklöf2019-07-23-1/+7
|
* csi: implement \E[Z - back tabDaniel Eklöf2019-07-22-1/+10
|
* csi: *sigh* looks like e.g. neovim doesn't respect SeDaniel Eklöf2019-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öf2019-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 configurableDaniel Eklöf2019-07-22-1/+48
|
* render: implement cursor styles 'bar' and 'underline'Daniel Eklöf2019-07-22-49/+94
|
* csi: prepare for alternative cursor stylesDaniel Eklöf2019-07-22-12/+19
|
* term: group 'blink' state together in a structDaniel Eklöf2019-07-22-17/+21
|
* term: group 'flash' state together in a structDaniel Eklöf2019-07-22-14/+18
|
* flash: convert our own 'flash' from a CSI to an OSCDaniel Eklöf2019-07-22-17/+25
|
* csi: implement CSI 3J - erase scroll backDaniel Eklöf2019-07-22-0/+23
|
* keymap: fix sequences for PageDownDaniel Eklöf2019-07-22-7/+7
|
* terminfo: add key sequences for keys with modifiersDaniel Eklöf2019-07-22-6/+58
|
* terminfo: add Se/Ss - describes how to change cursor styleDaniel Eklöf2019-07-22-0/+2
|
* terminfo: add Ms - modify selection/clipboardDaniel Eklöf2019-07-22-0/+1
|
* terminfo: add smxx/rmxx - describes strikeout/crossed-outDaniel Eklöf2019-07-22-0/+2
|
* terminfo: set XT (screen) - we understand OSC and mouse trackingDaniel Eklöf2019-07-22-0/+1
|
* terminfo: set AX (screen) - we understand CSI 39/49mDaniel Eklöf2019-07-22-0/+1
|
* conf: don't fail to start when there's no configuration fileDaniel Eklöf2019-07-22-0/+1
|
* terminfo: revert kmous to \E[MDaniel Eklöf2019-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öf2019-07-21-1/+1
|
* terminfo: add XM (mouse initialization)Daniel Eklöf2019-07-21-2/+2
|
* csi: bug: reset mouse *reporting* on CSI 1005/1006/1015lDaniel Eklöf2019-07-21-1/+4
|
* csi: remove debug loggingDaniel Eklöf2019-07-21-2/+0
|
* main: no need to damage the _entire_ view on blink timerDaniel Eklöf2019-07-21-1/+11
|
* blink: implement 'blink'Daniel Eklöf2019-07-21-1/+79
|
* csi: change flash log message from warning to debugDaniel Eklöf2019-07-21-1/+1
|
* flash: implement 'flash'Daniel Eklöf2019-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 finalDaniel Eklöf2019-07-21-10/+2
|
* dcs: we have no parent terminal to pass through toDaniel Eklöf2019-07-21-59/+1
|
* conf: remove debug loggingDaniel Eklöf2019-07-21-2/+0
|
* csi: implement CSI 22t and CSI 23tDaniel Eklöf2019-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 structDaniel Eklöf2019-07-21-4/+17
|
* csi: remove TODO; we have our own terminfoDaniel Eklöf2019-07-21-7/+0
|
* render: make "new buffer" a debug log message, not warningDaniel Eklöf2019-07-21-1/+1
|
* footrc: example configurationDaniel Eklöf2019-07-21-0/+23
|
* conf: misc valgrind fixesDaniel Eklöf2019-07-21-22/+44
|
* Merge branch 'config-color'Daniel Eklöf2019-07-21-97/+203
|\
| * csi: pick 16 first 256-colors directly from the term structDaniel Eklöf2019-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 structDaniel Eklöf2019-07-21-26/+4
| |
| * conf: fg/bg and all regular + bright colors are now configurableDaniel Eklöf2019-07-21-4/+70
| |
| * conf: config now provides the colors (though still only hardcoded colors)Daniel Eklöf2019-07-21-59/+95
| |
| * term: prepare for configurable colors; add color variables to terminalDaniel Eklöf2019-07-21-10/+19
|/
* osc: add TODODaniel Eklöf2019-07-19-0/+2
|
* osc: delete empty lineDaniel Eklöf2019-07-19-1/+0
|
* osc: implement OSC 52;c;? - query clipboardDaniel Eklöf2019-07-19-38/+132
|
* selection: add text_from_clipboard()Daniel Eklöf2019-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öf2019-07-19-2/+73
|
* osc: initial implementation of OSC 52 - copy to clipboardDaniel Eklöf2019-07-19-0/+64
|
* selection: add text_to_clipboard()Daniel Eklöf2019-07-19-6/+17
| | | | This function takes a string and makes it available to the clipboard.
* input: store last seen wayland input serialDaniel Eklöf2019-07-19-1/+11
| | | | We need this for clipboard data
* base64: initial base64 decode implementationDaniel Eklöf2019-07-19-0/+92
|
* osc: foreground/background reply is now in correct XParseColor formatDaniel Eklöf2019-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öf2019-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' twiceDaniel Eklöf2019-07-19-3/+3
|
* vt: define state_names[] table when debug logging has been enabledDaniel Eklöf2019-07-19-1/+1
|
* vt: handle up to two private charactersDaniel Eklöf2019-07-19-13/+24
|
* ocs: renamed parameter size -> required_size in osc_ensure_size()Daniel Eklöf2019-07-19-1/+1
|
* dcs: sort of implement DCS passthroughDaniel Eklöf2019-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 dynamicallyDaniel Eklöf2019-07-19-4/+30
|
* osc: terminate reply with ST rather than BELDaniel Eklöf2019-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 settersDaniel Eklöf2019-07-18-0/+23
|
* osc: implement foreground/background queryDaniel Eklöf2019-07-18-3/+34
|
* vt: implement SS2/SS3 and STDaniel Eklöf2019-07-18-3/+17
|
* csi: better (more correct) reply to \e[>0cDaniel Eklöf2019-07-18-1/+1
|
* keymap: map tab and back-tabDaniel Eklöf2019-07-18-0/+11
|
* vt: execute: ignore unrecognized C0 commandsDaniel Eklöf2019-07-18-2/+1
|
* terminfo: change kmous to \E[M. This fixes mouse not working in e.g. htopDaniel Eklöf2019-07-18-1/+1
|
* main: allow TERM to be set on the command lineDaniel Eklöf2019-07-18-1/+7
|
* conf: TERM can now be set in footrcDaniel Eklöf2019-07-18-4/+11
|
* csi: color index is an 8-bit unsigned valueDaniel Eklöf2019-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 arrayDaniel Eklöf2019-07-18-2/+4
|
* main: use our own terminfo 'foot' by defaultDaniel Eklöf2019-07-18-1/+1
|
* csi: fix wrong variable compared in for-loopDaniel Eklöf2019-07-18-1/+1
|
* terminfo: intitial terminfo specificationDaniel Eklöf2019-07-18-0/+190
|
* glyph-cache: generate at startup, never update while renderingDaniel Eklöf2019-07-18-20/+38
|
* vt: execute: handle \0 (NUL), by ignoring itDaniel Eklöf2019-07-18-0/+3
|
* render: commentsDaniel Eklöf2019-07-18-0/+3
|
* render: make frame rendering time measuring optionalDaniel Eklöf2019-07-18-0/+6
|
* render: cache generated glyphs for regular ASCII charactersDaniel Eklöf2019-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 conversionDaniel Eklöf2019-07-18-36/+26
|
* font: don't warn when failing to get hinting/antialiasDaniel Eklöf2019-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 frameDaniel Eklöf2019-07-18-0/+12
|
* font: remove assert that was only there for debuggingDaniel Eklöf2019-07-18-1/+0
|
* font: sync cairo's options with the FC patternDaniel Eklöf2019-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-wordDaniel Eklöf2019-07-17-4/+97
|
* selection: bug: apply grid's view offset when starting a selectionDaniel Eklöf2019-07-17-1/+1
|
* csi: implement \E[@ (ICH - insert characters)Daniel Eklöf2019-07-17-15/+24
|
* keymap: use hex instead of octalDaniel Eklöf2019-07-17-3/+3
|
* vt/csi: recognize the reset sequence sent by 'reset'Daniel Eklöf2019-07-17-0/+28
| | | | However, we don't (yet) actually reset the terminal