aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
| * 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
|
* meson: we don't need -lm anymoreDaniel Eklöf2019-12-03-3/+0
|
* fcft: update to 0.3.2Daniel Eklöf2019-12-03-0/+0
|
* meson: we don't need -lm anymoreDaniel Eklöf2019-12-03-1/+1
|
* fcft: update to 0.3.0Daniel Eklöf2019-12-03-12/+6
| | | | | fcft now calculates the underline and strikeout integer positions, making our rendering code much simpler.
* search: match_to_end_of_word: reset end_col when done with a rowDaniel Eklöf2019-12-03-0/+2
|
* search: match_to_end_of_word: bug: reset end-col when bumping end-rowDaniel Eklöf2019-12-03-1/+3
| | | | | | | | When we calculate the end coords, we must reset end-col when we reach the end of the line and bump the end-row. This fixes an issue where bumping the row once lead to the end row being bumped for *each* remaining match character.
* search: bug: restore end-col/end-row adjustmentDaniel Eklöf2019-12-03-2/+4
| | | | | Turns out end_col *can* be exactly 0. In this case, we need to adjust the end-row too.
* render: limit size of search surface to parent windowDaniel Eklöf2019-12-03-4/+2
| | | | | | This shouldn't be necessary, but Sway acts up when the subsurface exceeds the parent surface (window, in this case) size, and extends the window size (if floating), leaving it with no content
* Merge branch 'scrollback-search-extend-to-end-of-word'Daniel Eklöf2019-12-03-110/+228
|\
| * search: bug: re-initialize start-row when attempting a new matchDaniel Eklöf2019-12-03-4/+4
| | | | | | | | | | | | When we've already found a partial match (but *not* a complete match), and that match spanned multiple lines, then when we continued with the next start-column we re-used a know-wrong row pointer.
| * render: don't allow negative coordinates of the search surfaceDaniel Eklöf2019-12-03-1/+2
| | | | | | | | | | | | While the protocol allows this, it appears Sway offsets (moves) the parent surface when this happens, resulting in a window half without content.
| * search: map ctrl+shift+w to match to end of word, spaces onlyDaniel Eklöf2019-12-03-4/+12
| | | | | | | | | | This works just like ctrl+w, except that the only space separating characters are whitespaces.
| * search: search_match_to_end_of_word: rename start_{row,col} -> end_{row,col}Daniel Eklöf2019-12-03-8/+10
| |
| * search: split up search_update() into twoDaniel Eklöf2019-12-03-68/+71
| | | | | | | | | | | | | | | | | | * search_find_next() searches the scrollback, continuing from the last match. The assumption is that the search buffer has changed. * search_update_selection() updates the selection and moves the view to ensure the selection is visible. Note that it doesn't verify the selection actually matches the search buffer.
| * search: rename search_update() -> search_find_next()Daniel Eklöf2019-12-03-3/+3
| |