aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
| * README: make GNOME SSD reply italicDaniel Eklöf2020-01-01-1/+1
| |
| * README: use a definition list for keyboard shortcutsDaniel Eklöf2020-01-01-44/+31
|/
* render: presentation: cleanupDaniel Eklöf2020-01-01-6/+20
|
* render: call wl_display_flush() right after wl_surface_commit()Daniel Eklöf2020-01-01-2/+1
| | | | This groups the two calls, for readability.
* render: presentation: clean up frame interval count calculationDaniel Eklöf2020-01-01-1/+1
|
* term: bump lower delay limit to 500µsDaniel Eklöf2019-12-31-1/+1
| | | | | Emacs with a split screen often goes above 200µs. 500µs is still much better than 2000µs...
* term: ptmx timing: use a define instead of #if 0Daniel Eklöf2019-12-31-3/+5
|
* render: presentation: space between value and "µs"Daniel Eklöf2019-12-31-3/+3
|
* term: lower the lower delay timeout from 2ms to 200µsDaniel Eklöf2019-12-31-1/+1
|
* term: commented out code to measure time between slave outputDaniel Eklöf2019-12-31-0/+24
| | | | | | | | | | | | | | This allows us to measure the time between to refresh delays. That is, when we decide to delay a refresh, we store the current time. If we hit that code path _again_, without having refreshed, we calculate the time that has passed. This gives us an estimate for how we should set our lower delay timeout. This is of course application dependent, but is still much better than simply guessing a value...
* render: presentation: also use seconds when calculating frame interval countDaniel Eklöf2019-12-31-2/+2
|
* render: presentation: log both input -> commit and commit -> presented timesDaniel Eklöf2019-12-31-29/+40
|
* wayland: only bind to 'presentation' interface if -p,--presentation-timingsDaniel Eklöf2019-12-31-10/+16
|
* wayland: remove empty lineDaniel Eklöf2019-12-31-1/+0
|
* render: reset input/commit timestamps on presentation discarded eventDaniel Eklöf2019-12-31-0/+3
|
* wayland: make zxdg_output_v1_listener struct constDaniel Eklöf2019-12-31-1/+1
|
* wayland: optionally use the presentation time protocol to measure input lagDaniel Eklöf2019-12-31-11/+187
| | | | | | | | | | | | | | | | | | | This adds a flag, -p,--presentation-timings, that enables input lag measuring using the presentation time Wayland protocol. When enabled, we store a timestamp when we *send* a key to the slave. Then, when we commit a frame for rendering to the compositor, we request presentation feedback. We also store a timestamp for when the frame was committed. The 'presented' callback then looks at the input and commit timestamps, and compares it with the presented timestamp. The delay is logged at INFO when the delay was less than one frame interval, at WARN when it was one frame interval, and at ERR when it was two or more frame intervals. We also update statistic counters that we log when foot is shut down.
* main: let getopt_long() print error messageDaniel Eklöf2019-12-29-6/+1
|
* main: third member in "struct option" is a pointerDaniel Eklöf2019-12-29-8/+8
|
* main: use a single printf() when printing usageDaniel Eklöf2019-12-29-11/+13
|
* README: use triple quoted blocks for meson/ninja examplesDaniel Eklöf2019-12-29-12/+18
| | | | This allows us to specify which syntax highlighting (sh) to use.
* PKGBUILD: add 'wayland-protocols' to makedependsDaniel Eklöf2019-12-29-1/+1
|
* README: expand the 'install' sectionDaniel Eklöf2019-12-29-1/+58
| | | | | | | * Talk about tllist + fcft * Mention that the PKGBUILD requires tllist+fcft to be installed as system libraries * Provide a short how-to-configure-and build with meson description
* README: remove combining character example that doesn't render in browsersDaniel Eklöf2019-12-29-2/+1
|
* terminfo: set RGB flag in foot-directDaniel Eklöf2019-12-26-0/+1
|
* csi: change DA3 reply to "FOOT", in hexDaniel Eklöf2019-12-21-1/+1
|
* server: verify CWD string length matches the indicated lengthDaniel Eklöf2019-12-21-0/+6
|
* server: move forward the indicated number of TERM bytesDaniel Eklöf2019-12-21-1/+1
|
* server: bug: move forward 2 bytes, not whatever the client sentDaniel Eklöf2019-12-21-1/+1
|
* term: term_init: add 'cwd' argumentDaniel Eklöf2019-12-21-18/+28
| | | | | | | | | | This is used when spawning the slave, to set its current working directory just before we exec() the client. In a regular foot instance, we set the cwd from getcwd(). In a foot server instance, each connecting client sends its cwd to the server, and we use that.
* client/server: client sends its CWD to serverDaniel Eklöf2019-12-21-1/+20
|
* Merge branch 'launch-new-instance'Daniel Eklöf2019-12-21-5/+159
|\
| * osc: implement OSC 7 - set PWDDaniel Eklöf2019-12-21-0/+65
| | | | | | | | | | | | | | | | | | OSC 7 updates the terminal's view of the current working directory. The format is OSC 7;URI ST We decode the URI and updates the term structs 'cwd' member. This is then used when spawning a new terminal instance.
| * term: wip: track current working directoryDaniel Eklöf2019-12-21-0/+14
| | | | | | | | | | | | | | This sets the initial current working directory, as it is when the terminal is instantiated. We chdir() to it just before spawning a new terminal.
| * term: term_spawn_new: always spawn foot/footclient from PATHDaniel Eklöf2019-12-21-3/+3
| |
| * term: term_spawn_new(): new function, spawns a new foot/footclient processDaniel Eklöf2019-12-21-5/+80
|/ | | | Bind ctrl+shift+return to it
* term: experimental: tweak delay timeoutsDaniel Eklöf2019-12-20-2/+2
| | | | | | | | | | | | Increase the low timeout, to try to give clients/slaves more time to emit data. Decrease the upper timeout. On average, we should have ~½ frame left until the next frame. So a maximum delay of a whole frame *will* delay the update one extra frame in many cases. Hopefully, the low timeout is still low enough that we don't miss the next frame, on average.
* Merge branch 'switched-based-vt-parser'Daniel Eklöf2019-12-20-748/+741
|\
| * Revert "vt: refactor"Daniel Eklöf2019-12-20-208/+201
| | | | | | | | This reverts commit a575204bc77c711047740d2328d26043e8c976cb.
| * vt: refactorDaniel Eklöf2019-12-20-201/+208
| |
| * vt: visually compact the switch tablesDaniel Eklöf2019-12-20-271/+271
| |
| * vt: remove enum action; add separate functions for each action insteadDaniel Eklöf2019-12-20-524/+491
| |
| * vt: remove debug assertDaniel Eklöf2019-12-20-1/+0
| |
| * vt: use a pointer that we increment, instead of indexingDaniel Eklöf2019-12-20-21/+21
| |
| * vt: use break, not continueDaniel Eklöf2019-12-20-17/+17
| |
| * vt: no need to assign to term->vt.state for *every* input byteDaniel Eklöf2019-12-20-18/+20
| |
| * vt: remove dead codeDaniel Eklöf2019-12-20-495/+0
| |
| * vt: don't special case UTF-8 collect stateDaniel Eklöf2019-12-20-24/+55
| |
| * vt: convert SOS/PM/APC string from table lookup to switchDaniel Eklöf2019-12-20-2/+30
| |
| * vt: convert DCS from table lookup to switchDaniel Eklöf2019-12-20-7/+195
| |
| * vt: convert CSI ignore from table lookup to switchDaniel Eklöf2019-12-20-2/+34
| |
| * vt: convert CSI intermediate from table lookup to switchDaniel Eklöf2019-12-20-2/+35
| |
| * vt: convert CSI param from table lookup to switchDaniel Eklöf2019-12-20-2/+39
| |
| * vt: add missing 'entry' actions to 'anywhere' sectionsDaniel Eklöf2019-12-20-2/+2
| |
| * vt: convert CSI entry from table lookup to switchDaniel Eklöf2019-12-20-4/+39
| |
| * vt: re-align switchesDaniel Eklöf2019-12-20-67/+68
| |
| * vt: replace GROUND, ESCAPE and ESCAPE_INTERMEDIATE tables with switchesDaniel Eklöf2019-12-20-5/+115
| |
| * vt: use a switch instead of a top-level state lookup tableDaniel Eklöf2019-12-20-1/+26
|/ | | | | Remove the top-level state lookup table, which mapped from a state enum to a state transition table, and replace it with a switch.
* script: generate-alt-random: reduce output sizeDaniel Eklöf2019-12-19-1/+1
|
* PKGBUILD: run foot with the default configurationDaniel Eklöf2019-12-19-1/+1
|
* osc: spell "#if 0" correctlyDaniel Eklöf2019-12-19-1/+1
|
* render: fix bug when erasing old cursor; send correct compositor damageDaniel Eklöf2019-12-19-3/+3
|
* render: render_cell: break out cursor renderingDaniel Eklöf2019-12-19-57/+68
|
* render: attrs_to_font: const:ifyDaniel Eklöf2019-12-19-2/+2
|
* osc: commented out beginning of OSC 777Daniel Eklöf2019-12-19-0/+23
| | | | I haven't decided if I want to support this
* term: cursor blink reset doesn't force-refresh the cursorDaniel Eklöf2019-12-19-2/+5
|
* term/render: check for is_shutting_down in grid_render()Daniel Eklöf2019-12-19-3/+3
|
* main: verify locale is UTF-8Daniel Eklöf2019-12-19-2/+23
|
* term: remove TODODaniel Eklöf2019-12-19-4/+0
|
* cursor blink: move reset to pty inputDaniel Eklöf2019-12-19-3/+3
|
* render: get rid of 'all-clean' detectionDaniel Eklöf2019-12-17-22/+13
| | | | | | | | | | | | | | | | | Instead of trying to figure out if we had to render something (i.e. something in the grid was dirty), and using that to determine whether to post a callback or not, we now let render_refresh() set a flag indication we need to render another frame. This simplifies render_grid(), which now _always_ renders, and pushes it to the compositor. The callback handler checks the pending flag and simply doesn't call render_grid() when there's no more pending state to render. This ends up reducing the number of wakeups when e.g. having a blinking cursor.
* render: move blink timer handling to term.cDaniel Eklöf2019-12-17-51/+35
|
* completions: zsh: footclient: auto-complete files for -s,--server-socketDaniel Eklöf2019-12-17-1/+1
|
* completions: zsh: add -c,--configDaniel Eklöf2019-12-17-1/+2
|
* doc: foot.5: mention that setting workers=0 disables multithreadingDaniel Eklöf2019-12-17-4/+4
|
* doc: foot.1: add -c,--configDaniel Eklöf2019-12-17-1/+4
|
* config: enable user to specify path to configuration fileDaniel Eklöf2019-12-17-35/+65
|
* main: remove unused macrosDaniel Eklöf2019-12-17-3/+0
|
* log: caller can control syslog levelDaniel Eklöf2019-12-17-7/+19
|
* render: render block cursor as a hollow rectangle when unfocusedDaniel Eklöf2019-12-16-14/+36
|
* input: restart cursor blink on keyboard inputDaniel Eklöf2019-12-16-0/+3
| | | | This makes the cursor stay unblinking while typing.
* term: disable cursor blink on unfocus, and re-enable on focusDaniel Eklöf2019-12-16-6/+14
|
* term: disable cursor blink before shutting down terminal, and remove from FDMDaniel Eklöf2019-12-16-0/+4
|
* term: cursor blink: cursor refresh now dirties the cursor cellDaniel Eklöf2019-12-16-5/+45
| | | | | | | | Normally we don't dirty the cell on cursor movement. But, since a blinking cursor isn't a cursor that has moved, our normal cursor rendering wont work. Dirty the cursor cell to force a redraw of it.
* term: implement cursor blinkingDaniel Eklöf2019-12-15-9/+93
| | | | | | | | | | | | | | 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.
* fdm: close fd even if we didn't find it in our listDaniel Eklöf2019-12-15-0/+1
| | | | | | This behavior is debatable, but helps in error handling where we're removing a bunch of descriptors where not all of them have been added to the FDM yet.
* PKGBUILD/meson: bump version to 1.0.01.0.0releases/1.0Daniel Eklöf2019-12-15-2/+2
|
* selection: optimize \r\n -> \n when receiving clipboard dataDaniel Eklöf2019-12-15-6/+14
| | | | | | Instead of first memmoving, possibly lots of data lots of times, the received buffer, and _then_ calling the callback, simply call the callback multiple times, and just skip the \r character(s).
* vt: add commented out cases for 8-bit C1 control charactersDaniel Eklöf2019-12-14-0/+35
| | | | | | | | | | XTerm seems to ignore these when in UTF-8 mode. Since we _only_ support UTF-8, we don't need to recognize these control characters at all. However, it may be good to have them here for reference. So add them, but commented out, along with their corresponding 7-bit versions (which we _do_ recognize and implement).
* csi: describe format of reply to tertiary DADaniel Eklöf2019-12-14-4/+10
|
* csi: Send Device Attributes, Tertiary DA: require Ps == 0Daniel Eklöf2019-12-14-4/+7
|
* client: strncpy() size limit must be less than destination sizeDaniel Eklöf2019-12-14-1/+1
|
* client: add missing break after handling -t,--termDaniel Eklöf2019-12-14-0/+1
|
* client: add 's:' to the list of recognized short optionsDaniel Eklöf2019-12-14-1/+1
|
* Merge branch 'server-socket-path'Daniel Eklöf2019-12-14-43/+76
|\
| * completions: zsh: footclient: add -s,--server-socketDaniel Eklöf2019-12-14-1/+2
| |
| * completions: zsh: foot: complete optional -s,--server PATH argumentDaniel Eklöf2019-12-14-2/+2
| |
| * doc: footclient.1: add -s,--server-socketDaniel Eklöf2019-12-14-0/+3
| |
| * doc: foot.1: update with optional PATH argument to -s,--serverDaniel Eklöf2019-12-14-2/+6
| |
| * client: initialize/deinitialize the logging systemDaniel Eklöf2019-12-14-0/+2
| |