| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | render: reflow: mark all "new" rows as dirty | Daniel Eklöf | 2020-02-14 | -2/+4 |
| | | ||||
| * | render: resize: do linefeed *after* updating cursor position | Daniel Eklöf | 2020-02-12 | -2/+6 |
| | | ||||
| * | render: resize; heuristics to prevent prompt from being printed on a newline | Daniel Eklöf | 2020-02-12 | -5/+5 |
| | | ||||
| * | render: resize: temporarily disable row adjustment | Daniel Eklöf | 2020-02-12 | -0/+3 |
| | | | | | | | This was intended to prevent a new prompt from being printed on a newline. However, it breaks normal output under certain conditions, that have yet to be determined exactly what they are. | |||
| * | render: resize: only stay on current row if col is within grid width | Daniel Eklöf | 2020-02-12 | -1/+3 |
| | | ||||
| * | term: formfeed: set linefeed correctly when we're at last column with lcf=1 | Daniel Eklöf | 2020-02-12 | -2/+5 |
| | | | | | | | When cursor.lcf is set, that means the cursor column was *not* incremented when we printed the last character. Thus, we should *not* decrement the column before setting the linefeed bit. | |||
| * | render: spelling | Daniel Eklöf | 2020-02-12 | -1/+1 |
| | | ||||
| * | footrc, doc/foot.5: improve documentation of 'shell', and mention --login | Daniel Eklöf | 2020-02-11 | -2/+3 |
| | | ||||
| * | Merge branch 'text-reflow' | Daniel Eklöf | 2020-02-11 | -50/+172 |
| |\ | ||||
| | * | selection: handle line break at last column correctly | Daniel Eklöf | 2020-02-11 | -1/+2 |
| | | | | | | | | | | | Insert a newline into the selection even if the last column contained a printable character, *if* that column also has linefeed=1. | |||
| | * | render: resize: calculated cursor row *should* never be beyond the screen bottom | Daniel Eklöf | 2020-02-10 | -1/+2 |
| | | | ||||
| | * | render: reflow: clear new line if already allocated | Daniel Eklöf | 2020-02-10 | -1/+2 |
| | | | ||||
| | * | render: resize: fix cursor positioning at grid wrap around | Daniel Eklöf | 2020-02-10 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | When current view is at a grid wrap around (last emitted row index is < grid offset), the cursor row ended up being negative which we then mapped to the top line. This is wrong. When we're at a wrap around, re-adjust cursor by adding the grid's row count. | |||
| | * | render: reflow: initial line is always unallocated | Daniel Eklöf | 2020-02-10 | -5/+5 |
| | | | ||||
| | * | term: font_size_{increase,descrease}: adjust size by 0.5pt | Daniel Eklöf | 2020-02-10 | -2/+2 |
| | | | ||||
| | * | input: ctrl+= increases font size, not resets it | Daniel Eklöf | 2020-02-10 | -6/+6 |
| | | | ||||
| | * | vt: tag cells that were form-feed:ed, to allow correct text reflow | Daniel Eklöf | 2020-02-10 | -4/+17 |
| | | | | | | | | | | | | | | | | | | | To handle text reflow correctly when a line has a printable character in the last column, but was still line breaked, we need to track the fact that the slave inserted a line break here. Otherwise, when the window width is increased, we'll end up pulling up the next line, when we really should have inserted a line break. | |||
| | * | README: reflow has been implemented | Daniel Eklöf | 2020-02-10 | -2/+0 |
| | | | ||||
| | * | render: reflow: no need to clear cells | Daniel Eklöf | 2020-02-10 | -2/+1 |
| | | | | | | | | | | | We set initialize=true when allocating a new row. This initializes the cell to 0, with clean=1. | |||
| | * | render: initial support for text reflow | Daniel Eklöf | 2020-02-10 | -36/+141 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The algorithm is as follows: Start at the beginning of the scrollback. That is, at the oldest emitted lines. This is done by taking the current offset, and adding the number of (old) screen rows, and then iterating until we find the first allocated line. Next, we iterate the entire old grid. At the beginning, we allocate a line for the new grid, and setup a global pointer for that line, and the current cell index. For each line in the old grid, iterate its cells. Copy the the cells over to the new line. Whenever the new line reaches its maximum number of columns, we line break it by increasing the current row index and allocating a new row (if necessary - we may be overwriting old scrollback if the new grid is smaller than the old grid). Whenever we reach the end of a line of the old grid, we insert a line break in the new grid's line too **if** the last cell in the old line was empty. If it was **not** empty, we **don't** line break the new line. Furthermore, empty cells in general need special consideration. A line ending with a string of empty cells doesn't have to be copied the new line. And more importantly, should **not** increase the new line's cell index (which may cause line breaks, which is incorrect). However, if a string of empty cells is followed by non empty cells, we need to copy all the preceding empty cells to the line too. When the entire scrollback history has been reflowed, we need to figure out the new grid's offset. This is done by trying to put the **last** emitted line at the bottom of the screen. I.e. the new offset is typically "last_line_idx - term->rows". However, we need to handle empty lines. So, after subtracting the number of screen rows, we _increase_ the offset until we see a non-empty line. This ensures we handle grid's that doesn't fill an entire screen. Finally, we need to re-position the cursor. This is done by trying to place the cursor **at** (_not_ after) the last emitted line. We keep the current cursor column as is (but possibly truncated, if the grid's width decreased). | |||
| * | | term: log error when failing to initialize the primary fonts | Daniel Eklöf | 2020-02-09 | -0/+1 |
| |/ | ||||
| * | Merge branch 'document-text-resize' | Daniel Eklöf | 2020-02-09 | -0/+18 |
| |\ | ||||
| | * | doc: foot.1: keyboard shortcuts for font size adjument | Daniel Eklöf | 2020-02-09 | -0/+9 |
| | | | ||||
| | * | README: document keyboard shortcuts for font size adjustment | Daniel Eklöf | 2020-02-09 | -0/+9 |
| |/ | ||||
| * | Merge branch 'text-resize' | Daniel Eklöf | 2020-02-09 | -21/+132 |
| |\ | ||||
| | * | meson/PKGBUILD: adjust fcft requirements; the new version is 1.1.1 | Daniel Eklöf | 2020-02-09 | -2/+2 |
| | | | ||||
| | * | term: factor out common font changing code | Daniel Eklöf | 2020-02-08 | -22/+20 |
| | | | ||||
| | * | render: resize: reset scroll damage | Daniel Eklöf | 2020-02-08 | -1/+2 |
| | | | | | | | | | | | We've resized, and reset the render's 'last-buf' pointer; any scroll damage we have is **not** valid anymore. | |||
| | * | input: hook ctrl+{=,0} to term_font_size_reset() | Daniel Eklöf | 2020-02-08 | -0/+5 |
| | | | ||||
| | * | term: add term_font_size_reset() | Daniel Eklöf | 2020-02-08 | -7/+39 |
| | | | ||||
| | * | meson/PKGBUILD: bump fcft required version to 1.2.0 | Daniel Eklöf | 2020-02-08 | -2/+2 |
| | | | ||||
| | * | input: hook ctrl+{plus/KP-Add/minus/KP-Subtract} to term_font_size_{increase,decrease} | Daniel Eklöf | 2020-02-08 | -0/+12 |
| | | | ||||
| | * | term: add term_font_size_{increase,decrease}() | Daniel Eklöf | 2020-02-08 | -6/+54 |
| | | | ||||
| | * | render: add render_resize_force() | Daniel Eklöf | 2020-02-08 | -5/+20 |
| |/ | | | | | This forces a full resize operation, even though actual window size (or scale) hasn't changed. | |||
| * | term: reduce max number of iterations when trying to drain client | Daniel Eklöf | 2020-02-05 | -1/+1 |
| | | ||||
| * | term: language | Daniel Eklöf | 2020-02-05 | -5/+5 |
| | | ||||
| * | main: add --print-pid=FILE|FD | Daniel Eklöf | 2020-02-05 | -18/+80 |
| | | | | | | When specified, our PID is written to the specified file (or FD), after we've successfully started up. | |||
| * | main: add --print-pid=FILE|FD | Daniel Eklöf | 2020-02-05 | -10/+73 |
| | | | | | | | | When specified, our PID is written to the specified file (or FD), after we've successfully started up. Only applicable in server mode. | |||
| * | term: always read *all* we can from the client before updating state | Daniel Eklöf | 2020-02-05 | -8/+15 |
| | | | | | | | But place an upper limit on the number of iterations we read, to prevent starvation caused by a bad behaving client to constantly writes data. | |||
| * | log: log to stderr, not stdout | Daniel Eklöf | 2020-02-04 | -9/+9 |
| | | ||||
| * | completions: zsh: --hold has no arguments | Daniel Eklöf | 2020-02-04 | -1/+1 |
| | | ||||
| * | Implement --hold | Daniel Eklöf | 2020-02-03 | -12/+36 |
| | | | | | When specified, we don't exit when the slave/client process exits. | |||
| * | fcft: update to 1.1.0 | Daniel Eklöf | 2020-02-01 | -6/+6 |
| | | ||||
| * | vt: ensure we never step outside our parameter and sub-parameter arrays | Daniel Eklöf | 2020-02-01 | -6/+70 |
| | | | | | | | | | | | | | | | | | | | | | We only support 16 parameters, and for each parameter, 16 sub-parameters. If we ever hit that limit (or rather, if the client writes 17 (sub) parameters), log this and stop incrementing the parameter index variable. For performance reason, we implement the following behavior: * We never increment the parameter index past the supported number. This ensures all code *accessing* the parameter list can do so without verifying the validity of the index. * The *first* time we see too many parameters, and the first time we see too many sub parameters, log this. Then *never* log again. Even if we see too many parameters in a completely different escape. This is so that we don't have to keep a "have warned" boolean in the terminal struct, but can use a simple function local static variable. | |||
| * | 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. | |||
| * | vt: collect (intermediate): log a warning if user supplied more than two intermediates | Daniel Eklöf | 2020-02-01 | -1/+1 |
| | | ||||
| * | vt: collect (intermediate): log _which_ character we collected | Daniel Eklöf | 2020-02-01 | -1/+1 |
| | | ||||
| * | 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 | -7/+7 |
| | | | | | | We only support 16 (sub) parameters and thus there's no need for 64-bit index variables. | |||
| * | dcs: fix comment: ESU is *End* synchronized update | Daniel Eklöf | 2020-01-29 | -1/+1 |
| | | ||||
| * | dcs: bsu/esu: convert warning log to debug log | Daniel Eklöf | 2020-01-26 | -2/+2 |
| | | ||||
| * | vt: bug: state machine: csi entry: handle 0x3a/0x3b correctly | Daniel Eklöf | 2020-01-25 | -1/+1 |
| | | | | | | | | | | | | 0x3a/0x3b are ':' and ';'. These should not only switch to the 'csi param' state, but also be parsed as a parameter. This fixes an issue where a multi-parameter escape with the first parameter omitted was parsed incorrectly - as if the first parameter wasn't there. I.e. "\e[;123r" was parsed as "\e[123r" | |||
| * | dcs: remove abort() from BSU/ESU | Daniel Eklöf | 2020-01-25 | -2/+0 |
| | | ||||
| * | desktop: add foot-server.desktop - launches a foot server instance | Daniel Eklöf | 2020-01-24 | -1/+11 |
| | | ||||
| * | terminfo: use ST, not BEL as OSC terminator | Daniel Eklöf | 2020-01-23 | -5/+5 |
| | | ||||
| * | vt: bug: fix check for error from mbrtowc() | Daniel Eklöf | 2020-01-23 | -1/+4 |
| | | | | | | | | mbrtowc() returns an unsigned. Need to cast to signed before checking if less than zero. This fixes an issue where invalid utf-8 sequences where treated as valid. | |||
| * | 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 |
| | | ||||
| * | terminal: regression: char printed to wrong column | Daniel Eklöf | 2020-01-22 | -3/+4 |
| | | | | | | | | | | When term_print() was implemented, it introduced a regression where printing a character when the last cursor was in the last column on a line would print the character in the wrong column. This is because term_print() retrieved a pointer to the current cell *before* line wrapping (and possibly inserting empty cells). | |||
| * | presentation: store input timestamp in a per-commit context | Daniel Eklöf | 2020-01-21 | -35/+42 |
| | | | | | | This should reduce the risk of mixing up an input timestamp with the corresponding rendered frame. | |||
| * | doc: foot.1: document alt/meta characters | Daniel Eklöf | 2020-01-20 | -0/+16 |
| | | ||||
| * | doc: foot.1: use BOLD for things that should by typed as-is | Daniel Eklöf | 2020-01-20 | -3/+3 |
| | | ||||
| * | terminfo: sort | Daniel Eklöf | 2020-01-20 | -15/+33 |
| | | ||||
| * | terminfo: add 'oc' (orig colors) | Daniel Eklöf | 2020-01-20 | -0/+1 |
| | | | | | | We already had the functionality, we just didn't expose it in the terminfo. | |||
| * | input: implement metaSendsEscape and eightBitMeta | Daniel Eklöf | 2020-01-20 | -34/+101 |
| | | ||||
| * | csi: implement REP - CSI Ps b | Daniel Eklöf | 2020-01-20 | -0/+18 |
| | | ||||
| * | render: fallback to background color if cursor text color is not set | Daniel Eklöf | 2020-01-20 | -3/+3 |
| | | ||||
| * | osc: implement OSC 12 and OSC 112 (set/reset text cursor color) | Daniel Eklöf | 2020-01-20 | -0/+30 |
| | | ||||
| * | dcs: remove assert; handler may be zero on unimplemented OCS command | Daniel Eklöf | 2020-01-20 | -1/+0 |
| | | ||||
| * | term: fix reset state of VT state | Daniel Eklöf | 2020-01-20 | -2/+2 |
| | | ||||
| * | term: factor out character printing to new function term_print() | Daniel Eklöf | 2020-01-20 | -90/+81 |
| | | ||||
| * | fcft: update to 1.0.0 | Daniel Eklöf | 2020-01-19 | -17/+6 |
| | | | | | | Allow/disallow subpixel antialiasing in font_glyph_for_wc(), not using font_enable_subpixel_antialias(). | |||
| * | meson/PKGBUILD: need fcft >= 0.4.3 to configure subpixel antialiasing | Daniel Eklöf | 2020-01-18 | -2/+2 |
| | | ||||
| * | term: enable subpixel antialiasing if background is opaque | Daniel Eklöf | 2020-01-18 | -1/+13 |
| | | ||||
| * | Merge branch 'releases/1.1' | Daniel Eklöf | 2020-01-15 | -2/+2 |
| |\ | ||||
| | * | meson/PKGBUILD: bump version to 1.1.01.1.0releases/1.1 | Daniel Eklöf | 2020-01-15 | -2/+2 |
| |/ | ||||
| * | ci: checkout/clone (doh!) | Daniel Eklöf | 2020-01-14 | -2/+2 |
| | | ||||
| * | ci: no 'git' available by default, need to install it | Daniel Eklöf | 2020-01-14 | -0/+1 |
| | | ||||
| * | ci; no pushd/popd available | Daniel Eklöf | 2020-01-14 | -2/+2 |
| | | ||||
| * | input: reset XKB compose state on keyboard leave | Daniel Eklöf | 2020-01-14 | -0/+1 |
| | | ||||
| * | ci: checkout tllist/fcft subprojects | Daniel Eklöf | 2020-01-14 | -0/+4 |
| | | ||||
| * | Revert "input: generate key down events on keyboard-enter" | Daniel Eklöf | 2020-01-14 | -9/+1 |
| | | | | | This reverts commit 84739d78c626ad12543417dc1e3038abd6a4e2d5. | |||
| * | input: generate key down events on keyboard-enter | Daniel Eklöf | 2020-01-13 | -1/+9 |
| | | ||||
| * | input: reset modifier state on keyboard-leave | Daniel Eklöf | 2020-01-13 | -0/+5 |
| | | ||||
| * | render: resize: TIOCSWINSZ: don't include padding in ws_{x,y}pixel | Daniel Eklöf | 2020-01-12 | -2/+2 |
| | | ||||
| * | term: shorten application_synchronized_updates -> app_sync_updates | Daniel Eklöf | 2020-01-12 | -26/+26 |
| | | ||||
| * | term: enable_application_synchronized_updates: not a noop if already enabled | Daniel Eklöf | 2020-01-12 | -3/+0 |
| | | | | | | If synchronized updates are already enabled when we receive a request to enable them, extend the timeout. | |||
| * | dcs: bsu/esu: add link to spec | Daniel Eklöf | 2020-01-12 | -0/+4 |
| | | ||||
| * | dcs: abort() in bsu/esu | Daniel Eklöf | 2020-01-12 | -2/+4 |
| | | | | | | Since I haven't seen this in the wild, let's abort() to make sure we catch when an application does this, so we can verify it really works. | |||
| * | Merge branch 'synchronized-updates' | Daniel Eklöf | 2020-01-12 | -29/+124 |
| |\ | ||||
| | * | term: app sync updates: disable delayed rendering timers once only | Daniel Eklöf | 2020-01-12 | -8/+9 |
| | | | | | | | | | | | Disable the delayed rendering timers when enabling application synchronized updates, not every time we've received ptmx data. | |||
| | * | term/render: move {enable,disable}_application_synchronized_updates() | Daniel Eklöf | 2020-01-12 | -38/+37 |
| | | | | | | | | | From render -> terminal | |||
| | * | render: add a timeout for application synchronized updates | Daniel Eklöf | 2020-01-12 | -8/+60 |
| | | | | | | | | | | | This ensures we can recover from a crashing (or bad behaving) application that sends a BSU but then never sends an ESU. | |||
| | * | render: rename render_{enable,disable}_refresh() | Daniel Eklöf | 2020-01-12 | -7/+9 |
| | | | ||||
| | * | term: rename refresh_prohibited -> application_synchronized_updates | Daniel Eklöf | 2020-01-12 | -7/+7 |
| | | | ||||
| | * | term: ptmx: cancel, and don't re-arm, delay timers when refresh has been disabled | Daniel Eklöf | 2020-01-12 | -22/+34 |
| | | | ||||
| | * | dcs: bsu/esu: call render_{disable,enable}_refresh() | Daniel Eklöf | 2020-01-12 | -6/+8 |
| | | | ||||
| | * | render: add render_{enable,disable}_refresh() | Daniel Eklöf | 2020-01-12 | -0/+27 |
| |/ | | | | | | | Calling render_disable_refresh() causes update requests to that terminal to be ignored. Calling render_enable_refresh() re-enables updates. | |||
