aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* 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
| |
| * client: add -s,--server-socket command line optionDaniel Eklöf2019-12-14-16/+34
| | | | | | | | | | This allows the user to override the default path (XDG_RUNTIME_DIR/foot.sock) we try to connect to.
| * main: allow server socket path to be set on the command lineDaniel Eklöf2019-12-14-3/+9
| | | | | | | | | | This adds an optional argument to -s,--server that allows the user to override the default socket path (XDG_RUNTIME_DIR/foot.sock).
| * server: use socket-path from configDaniel Eklöf2019-12-14-19/+2
| |
| * config: add 'server_socket_path' and set a default valueDaniel Eklöf2019-12-14-0/+16
|/
* server: log socket packetDaniel Eklöf2019-12-13-1/+3
|
* meson: we now require -lmDaniel Eklöf2019-12-05-1/+3
|
* wayland: include more output (monitor) details in the log outputDaniel Eklöf2019-12-05-10/+26
|
* term: determine cell width from the width of the space characterDaniel Eklöf2019-12-05-1/+2
|
* config: trim leading spaces from fontsDaniel Eklöf2019-12-05-2/+7
| | | | | | | | When splitting the font configuration into multiple font specifications, we now trim leading spaces. This makes no actual difference; fontconfig matched the fonts just fine anyway, but this looks better in the logs.
* PKGBUILD: require fcft 0.4.xDaniel Eklöf2019-12-05-1/+1
|
* meson: require fcft 0.4.xDaniel Eklöf2019-12-05-1/+1
|
* fcft: update to 0.4.0Daniel Eklöf2019-12-05-0/+0
|
* term: test: set font DPI to the highest DPI we findDaniel Eklöf2019-12-04-4/+17
| | | | | | | | | | | In most cases (i.e. when there's only a single output/monitor), this will be *the* DPI value. In other cases, well... The _right_ thing to do is track the outputs our window is actually mapped on, and re-instantiate fonts depending on the current output's DPI. But that's for the future...
* main: stop initializing a default set of fontsDaniel Eklöf2019-12-04-25/+0
|
* fcft: update to 0.3.5Daniel Eklöf2019-12-04-0/+0
|
* fcft: update to 0.3.4Daniel Eklöf2019-12-04-0/+0
|
* fcft: update to 0.3.3Daniel Eklöf2019-12-04-0/+0
|