aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* csi: implement window and cell size reporting escapesDaniel Eklöf2020-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/disablerDaniel Eklöf2020-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 responseDaniel Eklöf2020-02-01-1/+1
| | | | We don't support rectangular editing
* vt: use 8-bit indices for parameters and sub parametersDaniel Eklöf2020-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 updateDaniel Eklöf2020-01-29-1/+1
|
* dcs: bsu/esu: convert warning log to debug logDaniel Eklöf2020-01-26-2/+2
|
* vt: bug: state machine: csi entry: handle 0x3a/0x3b correctlyDaniel Eklöf2020-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/ESUDaniel Eklöf2020-01-25-2/+0
|
* desktop: add foot-server.desktop - launches a foot server instanceDaniel Eklöf2020-01-24-1/+11
|
* terminfo: use ST, not BEL as OSC terminatorDaniel Eklöf2020-01-23-5/+5
|
* vt: bug: fix check for error from mbrtowc()Daniel Eklöf2020-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 trackingDaniel Eklöf2020-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öf2020-01-23-0/+8
|
* terminal: regression: char printed to wrong columnDaniel Eklöf2020-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 contextDaniel Eklöf2020-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 charactersDaniel Eklöf2020-01-20-0/+16
|
* doc: foot.1: use BOLD for things that should by typed as-isDaniel Eklöf2020-01-20-3/+3
|
* terminfo: sortDaniel Eklöf2020-01-20-15/+33
|
* terminfo: add 'oc' (orig colors)Daniel Eklöf2020-01-20-0/+1
| | | | | We already had the functionality, we just didn't expose it in the terminfo.
* input: implement metaSendsEscape and eightBitMetaDaniel Eklöf2020-01-20-34/+101
|
* csi: implement REP - CSI Ps bDaniel Eklöf2020-01-20-0/+18
|
* render: fallback to background color if cursor text color is not setDaniel Eklöf2020-01-20-3/+3
|
* osc: implement OSC 12 and OSC 112 (set/reset text cursor color)Daniel Eklöf2020-01-20-0/+30
|
* dcs: remove assert; handler may be zero on unimplemented OCS commandDaniel Eklöf2020-01-20-1/+0
|
* term: fix reset state of VT stateDaniel Eklöf2020-01-20-2/+2
|
* term: factor out character printing to new function term_print()Daniel Eklöf2020-01-20-90/+81
|
* fcft: update to 1.0.0Daniel Eklöf2020-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 antialiasingDaniel Eklöf2020-01-18-2/+2
|
* term: enable subpixel antialiasing if background is opaqueDaniel Eklöf2020-01-18-1/+13
|
* Merge branch 'releases/1.1'Daniel Eklöf2020-01-15-2/+2
|\
| * meson/PKGBUILD: bump version to 1.1.01.1.0releases/1.1Daniel Eklöf2020-01-15-2/+2
|/
* ci: checkout/clone (doh!)Daniel Eklöf2020-01-14-2/+2
|
* ci: no 'git' available by default, need to install itDaniel Eklöf2020-01-14-0/+1
|
* ci; no pushd/popd availableDaniel Eklöf2020-01-14-2/+2
|
* input: reset XKB compose state on keyboard leaveDaniel Eklöf2020-01-14-0/+1
|
* ci: checkout tllist/fcft subprojectsDaniel Eklöf2020-01-14-0/+4
|
* Revert "input: generate key down events on keyboard-enter"Daniel Eklöf2020-01-14-9/+1
| | | | This reverts commit 84739d78c626ad12543417dc1e3038abd6a4e2d5.
* input: generate key down events on keyboard-enterDaniel Eklöf2020-01-13-1/+9
|
* input: reset modifier state on keyboard-leaveDaniel Eklöf2020-01-13-0/+5
|
* render: resize: TIOCSWINSZ: don't include padding in ws_{x,y}pixelDaniel Eklöf2020-01-12-2/+2
|
* term: shorten application_synchronized_updates -> app_sync_updatesDaniel Eklöf2020-01-12-26/+26
|
* term: enable_application_synchronized_updates: not a noop if already enabledDaniel Eklöf2020-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 specDaniel Eklöf2020-01-12-0/+4
|
* dcs: abort() in bsu/esuDaniel Eklöf2020-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öf2020-01-12-29/+124
|\
| * term: app sync updates: disable delayed rendering timers once onlyDaniel Eklöf2020-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öf2020-01-12-38/+37
| | | | | | | | From render -> terminal
| * render: add a timeout for application synchronized updatesDaniel Eklöf2020-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öf2020-01-12-7/+9
| |
| * term: rename refresh_prohibited -> application_synchronized_updatesDaniel Eklöf2020-01-12-7/+7
| |
| * term: ptmx: cancel, and don't re-arm, delay timers when refresh has been disabledDaniel Eklöf2020-01-12-22/+34
| |
| * dcs: bsu/esu: call render_{disable,enable}_refresh()Daniel Eklöf2020-01-12-6/+8
| |
| * render: add render_{enable,disable}_refresh()Daniel Eklöf2020-01-12-0/+27
|/ | | | | | | Calling render_disable_refresh() causes update requests to that terminal to be ignored. Calling render_enable_refresh() re-enables updates.
* dcs: abort() in bsu/esuDaniel Eklöf2020-01-12-0/+2
| | | | I **really** want to know if someone is using these...
* dcs: put: don't append data if buffer resize failedDaniel Eklöf2020-01-12-1/+2
|
* dcs: use default param value of 0 in log messageDaniel Eklöf2020-01-12-1/+1
|
* Merge branch 'dcs'Daniel Eklöf2020-01-12-0/+106
|\
| * dcs: initial handling of DCS in generalDaniel Eklöf2020-01-12-0/+106
|/ | | | | | | | | | | | | | | | | | | | | | Add data structure to term->vt. This structure tracks the free-form data that is passed-through, and the handler to call at the end. Intermediates and parameters are collected by the normal VT parser. Then, when we enter the passthrough state, we call dcs_hook(). This function checks the intermediate(s) and parameters, and selects the appropriate unhook handler (and optionally does some execution already). In passthrough mode, we simply append strings to an internal buffer. This might have to be changed in the future, if we need to support a DCS that needs to execute as we go. In unhook (i.e. when the DCS is terminated), we execute the unhook handler. As a proof-of-concept, handlers for BSU/ESU (Begin/End Synchronized Update) has been added (but are left unimplemented).
* render: don't bother trying to lookup glyph for empty cellsDaniel Eklöf2020-01-12-1/+2
| | | | | Depending on the font, it may not have an entry for code point '0', which will cause us to try to load fallback fonts.
* Merge branch 'switch-based-keymap-lookup'Daniel Eklöf2020-01-11-156/+176
|\
| * input: commentsDaniel Eklöf2020-01-11-45/+57
| |
| * input: keymap_lookup: only do lookup, don't sent to clientDaniel Eklöf2020-01-11-11/+12
| |
| * keymap: remove keymap tableDaniel Eklöf2020-01-11-89/+0
| | | | | | | | Lookup is now done in code, using a switch-statement
| * input: add a switch-based function that translates XKB keysym to escape dataDaniel Eklöf2020-01-11-19/+105
| |
| * input: break out keymap lookup to a separate functionDaniel Eklöf2020-01-11-25/+35
|/
* README: installation: s/debug/release/Daniel Eklöf2020-01-11-1/+1
|
* README: install::other: do a release build, and mention profile guidedDaniel Eklöf2020-01-11-2/+6
|
* fcft/tllist: remove git submodulesDaniel Eklöf2020-01-11-18/+13
|
* keymap: add KP enterDaniel Eklöf2020-01-11-0/+2
| | | | | This makes the keypad enter key emit "\eOM" in keypad application mode.
* term/wayland: use MONOTONIC timersDaniel Eklöf2020-01-10-6/+6
|
* README: some terminal emulators call "server mode" "daemon mode"Daniel Eklöf2020-01-10-2/+2
|
* keymap: add escapes for keypad 'begin'Daniel Eklöf2020-01-10-0/+7
| | | | This is usually the '5' key, in non-num lock mode.
* Revert "terminal: use edge-triggered FDM handler for the PTY"Daniel Eklöf2020-01-10-16/+16
| | | | This reverts commit f5e27b49eb53ec64a592236680deee0c68c32f0f.
* Revert "selection: use edge-triggered FDM handlers"Daniel Eklöf2020-01-10-3/+3
| | | | This reverts commit 5bac3cfa2cb6a1e7b6eb0012c134bd2e844fcf61.
* Revert "server: use edge-triggered FDM handler for the client connections"Daniel Eklöf2020-01-10-13/+13
| | | | This reverts commit 9141b8a6573f973f97aa1615a8cc0c488cfd77e7.
* server: use edge-triggered FDM handler for the client connectionsDaniel Eklöf2020-01-10-13/+13
|
* server: be more resilient against bad behaving clientsDaniel Eklöf2020-01-10-3/+16
| | | | | | | | | | | | | | | Make both the server listening socket and the connecting client sockets non-blocking. Then, when reading the initial length of the setup packet, handle read errors from partial reads separately. Assume the client writes all four bytes of the 'length' field at once, and bail out if we are unable to read those 4 bytes. Limit the maximum setup packet size to 128K. This is to prevent clients from pretending the setup packet is insanely large, causing us to fail to malloc.
* terminal: make the event FD used to delay shutdown non-blockingDaniel Eklöf2020-01-10-1/+1
|
* terminal: use edge-triggered FDM handler for the PTYDaniel Eklöf2020-01-10-16/+16
| | | | | | | | This means that the read handler now has to keep reading until we get EAGAIN. But it also means we don't have to flip the EPOLLOUT flag in the FDM handler back and forth when writing to the PTY.
* selection: use edge-triggered FDM handlersDaniel Eklöf2020-01-10-3/+3
|
* wayland; fixupDaniel Eklöf2020-01-10-0/+1
|
* wayland: just to be sure, check return value of wl_display_read_events()Daniel Eklöf2020-01-10-1/+4
|
* wayland: make wayland socket non-blockingDaniel Eklöf2020-01-10-0/+6
|
* fdm: fix log messageDaniel Eklöf2020-01-10-1/+1
|
* fdm: verify FDs are non-blocking (debug builds only)Daniel Eklöf2020-01-10-0/+10
|
* fcft: bumpDaniel Eklöf2020-01-09-0/+0
|
* completions: zsh: add empty completions for options with required argumentDaniel Eklöf2020-01-09-1/+1
|
* selection: finalize: ignore whether selections are 'enabled' or notDaniel Eklöf2020-01-06-3/+0
| | | | | | This fixes an issue where a "forced" selection (shift being pressed while slave is tracking mouse events) would not finalize if the user released shift *before* releasing the mouse button.
* selection: update: don't dirty cells that don't change stateDaniel Eklöf2020-01-06-21/+50
| | | | | | | | | | | | | | | | Previously when updating a selection, we would unmark *all* cells in the old selection, and then mark all cells in the new selection. This caused *all* cells to be dirtied and thus re-rendered. Avoid this, by adding a temporary state to the cells' selected state. Before unmarking the old selection, pre-mark the new selection using a temporary state. When unmarking the old selection, ignore cells in this temporary state. When marking the new selection, ignore cells in this temporary state (except clearing the temporary state).
* selection: foreach_selection_*: must wrap row numberDaniel Eklöf2020-01-05-2/+6
| | | | | Fixes occasional crashes when we're at the end of the grid and selection wraps around.
* search: rename render.search_offset -> render.search_glyph_offsetDaniel Eklöf2020-01-05-8/+8
|
* Merge branch 'search-render-improvements'Daniel Eklöf2020-01-05-6/+29
|\
| * render: ensure cursor is always visible in the search boxDaniel Eklöf2020-01-05-6/+29
|/ | | | | | | | | | | | | | | | | | Maintain a view 'offset' (which glyph from the search string to start rendering at). This defines the start of the viewable area. The end is the offset + the search box size (which is limited to the window size). Adjust this offset whenever the cursor moves outside the viewable area. For now, this is always done in the same way: set the offset to the cursor position. This means that when we're entering text at the end of the search criteria (i.e. the normal case; we're simply typing), and the search box reaches the window size, the cursor will jump to the start of the search box, which will be empty. This could be confusing, but let's go with for now.
* README: add 'git submodule update --init' step to how-to-installDaniel Eklöf2020-01-05-1/+8
|
* render: xcursor: remove render_xcursor_refresh()Daniel Eklöf2020-01-04-18/+17
|
* doc: slight change of wording for mouse-drag-to-selectDaniel Eklöf2020-01-04-5/+5
|
* README: abuse of definition list to get multiple paragraphsDaniel Eklöf2020-01-04-5/+5
|
* README: let's see if codeberg understands these paragraphs belong togetherDaniel Eklöf2020-01-04-1/+1
|
* renderer: destroy: actually free the renderer instance (doh!)Daniel Eklöf2020-01-04-0/+2
|
* wayland: wayl_flush: re-initialize fd array before each pollDaniel Eklöf2020-01-04-5/+13
|