aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* input: ignore ISO Level 3 Shift (AltGr) when hiding the mouse cursorDaniel Eklöf2020-08-04-1/+2
|
* config: move cursor.hide-when-typing to mouse.hide-when-typingDaniel Eklöf2020-08-04-10/+38
|
* footrc: add new option 'scrollback.multiplier'Daniel Eklöf2020-08-03-0/+1
|
* Merge branch 'scrollback-multiplier' into masterDaniel Eklöf2020-08-03-2/+22
|\
| * config: add scrollback.multiplier optionDaniel Eklöf2020-08-03-2/+22
|/ | | | | | | This option is used to multiply the mouse scroll amount for mouse and trackpad based scrollback scrolling. Closes #54.
* input: hide-when-typing: ignore modifiersDaniel Eklöf2020-08-03-1/+7
|
* changelog: add craigbarnes to 'contributors' for the upcoming releaseDaniel Eklöf2020-08-03-0/+2
|
* Merge branch 'footclient-man-synopsis' into masterDaniel Eklöf2020-08-03-2/+2
|\
| * doc: fix "SYNOPSIS" section in footclient(1) man pageCraig Barnes2020-08-03-2/+2
| |
* | Merge branch 'e-escape' into masterDaniel Eklöf2020-08-03-10/+10
|\ \ | |/ |/|
| * Replace non-portable "\e" escape in string literals with "\033"Craig Barnes2020-08-02-10/+10
|/
* config: clean upDaniel Eklöf2020-08-02-10/+1
| | | | | Better parsing means we catch syntax errors earlier, meaning we can remove some of the checks.
* Merge branch 'socket-path-uses-wayland-display-instead-of-xdg-session-id' into masterDaniel Eklöf2020-08-02-17/+26
|\
| * server/client: use $WAYLAND_DISPLAY instead of $XDG_SESSION_ID in default socket pathDaniel Eklöf2020-08-02-17/+26
|/ | | | | | | | | Foot is a Wayland client and cannot be run outside of a Wayland session. As such, it makes more sense to use $WAYLAND_SESSION instead of $XDG_SESSION_ID in the default socket path since this makes it clearer which Wayland session we belong to. Closes #55.
* main: update --help with correct default path for -s,--serverDaniel Eklöf2020-08-02-2/+2
| | | | I missed this in f3c301ee8b94c3354080695326ceedc7a3866321 when fixing
* doc: foot.1: fix default path in -s,--serverDaniel Eklöf2020-08-02-6/+15
| | | | | | | | | | | | | | | | | | | The documentation incorrectly stated that the default path is $XDG_RUNTIME_DIR/foot.sock. The correct default path is * $XDG_RUNTIME_DIR/foot-$XDG_SESSION_ID.sock * $XDG_RUNTIME_DIR/foot-no-session.sock * /tmp/foot.sock Depending on whether XDG_RUNTIME_DIR and XDG_SESSION_ID has been set or not. This also removes the '<>' from the default when XDG_SESSION_ID is not set. Closes #53.
* input: don't hide cursor if key is 'shift'Daniel Eklöf2020-08-01-5/+7
| | | | | Since shift is used to enable selecting text in mouse-grabbing applications, hiding the cursor in this case is counter productive.
* Revert "slave: use an event FD to communicate errors after fork before exec"Daniel Eklöf2020-08-01-17/+20
| | | | | | | | | | | | | | | | | This reverts commit 027a8de6f547115fd90b8ee612fc616b61d5000c. I was a bit quick on this one, and only tested error cases. Turns out, this causes foot to hang in a blocking read(3) on the event FD. This is because while the FD has FD_CLOEXEC, that flag is per file descriptor. I.e. the forked copy of the event fd is closed when we exec(), but since this isn't a pipe, nothing is signaled to the parent process, which thus remains blocking in read(3) since its copy of the event fd hasn't been closed. We _could_ write a dummy value on the event fd just before exec(), but then we wouldn't be able to catch errors from exec() self - only errors *before* exec().
* slave: use an event FD to communicate errors after fork before execDaniel Eklöf2020-08-01-20/+17
| | | | | | | | Replace the pipe we used to communicate errors after fork(), but before exec() to the parent process with an event FD. The overhead in the kernel is much lower to setup an event fd, compared to a pipe.
* slave: emit user-notifications before dup:ing stdin/stdout/stderrDaniel Eklöf2020-08-01-45/+50
| | | | | | | | | Since we need to restore the status flags anyway, there's nothing to gain from emitting the user notifications after dup:ing the pts file descriptor. On the other hand, emitting user notifications *before* dup:ing means we can still print error messages for e.g. write(3) errors.
* slave: user-notifications: skip the O_NONBLOCK dance when there aren't any notificationsDaniel Eklöf2020-07-31-1/+1
|
* slave: restore pts file status flags after emitting user-notificationsDaniel Eklöf2020-07-31-3/+5
| | | | | | | | | | | | | | | We (need to) set O_NONBLOCK on the pts file description before emitting the user-notifications, to ensure we don't block in write(3). However, since file status flags are per *file*, not per file *descriptor*, this ends up setting O_NONBLOCK on the dup:ed stdin/stdout/stderr file descriptors too. Not all clients want this, or can handle this. Thus we need to restore the original flags before exec:ing the client. This fixes "makepkg" build failures.
* slave: user-notifications: don't block in write(3)Daniel Eklöf2020-07-31-0/+18
| | | | | | | | | | | The main process is blocking and waiting for us to close the error pipe (in exec(3), via O_CLOEXEC). Thus, pts data will *not* be processed until we've exec:d the shell. Because of this we must not write too much and block in write(3). Do this by setting O_NONBLOCK on the pts fd (*after* dup:ing it to stdin/stderr/sdout) and watch for EAGAIN EWOULDBLOCK.
* slave: user-notifications: emit errors first, then warnings and last deprecationsDaniel Eklöf2020-07-31-2/+21
|
* config: pipe-*: fix length calculation of the pipe command substringDaniel Eklöf2020-07-31-1/+1
|
* config: add 'hide-when-typing'Daniel Eklöf2020-07-31-15/+56
| | | | | | When enabled, the mouse cursor is hidden when the user types in the terminal. It is un-hidden when the user moves the mouse, or when the window loses keyboard focus.
* config: configuration errors are no longer fatalDaniel Eklöf2020-07-31-80/+144
| | | | | Instead of refusing to start foot on configuration errors, we start and print a user-notification.
* config: add 'pipe-selected' key bindingDaniel Eklöf2020-07-31-13/+43
| | | | | | | This works just like pipe-visible and pipe-scrollback, but pipes the user-selected text, if any, to the external tool. Closes #51
* install: tllist is a *build* dependency, not a *runtime* dependencyDaniel Eklöf2020-07-31-1/+1
|
* doc+readme: make it clear(er) that RMB can be hold-and-draggedDaniel Eklöf2020-07-31-2/+6
|
* user-notification: 'productify' the user-warning systemDaniel Eklöf2020-07-30-62/+127
| | | | | | | | * Rename user_warning to user_notification * Add warning and error types (in addition to the existing deprecated) * Simplify logic when emitting a user notification after forking; we don't need to copy the notification data since we're in a new process and have total control over that memory.
* readme: remove 'explanation' of server/daemon modeDaniel Eklöf2020-07-30-1/+1
| | | | It is described in a separate section anyway.
* config: tokenize key bindings' pipe command when loading the configurationDaniel Eklöf2020-07-30-65/+50
| | | | | | This allows us to detect syntax errors early on, and is also more efficient since we don't have to re-tokenize the command line every time the binding is executed.
* changelog: use <section>.<option> syntaxDaniel Eklöf2020-07-30-2/+1
|
* slave: don't ignore write(3) errorsDaniel Eklöf2020-07-29-3/+14
|
* config: emit a user-warning for deprecated option 'scrollback'Daniel Eklöf2020-07-29-0/+11
|
* term: add capability to print warnings *inside* the terminalDaniel Eklöf2020-07-29-5/+51
| | | | | This is intended to be used to print e.g. deprecation warnings inside the terminal, *before* the shell is started.
* changelog: update scrollback indicator entry to reflect moved optionsDaniel Eklöf2020-07-29-2/+2
|
* main: add --check-config command line optionDaniel Eklöf2020-07-29-1/+19
|
* config: add scrollback sectionDaniel Eklöf2020-07-29-17/+53
| | | | | | | | | * Move 'scrollback' to 'scrollback.lines' * Move (the new) 'scrollback-indicator-*' options to 'scrollback.indicator-*' Log a deprecation warning when the old 'scrollback' option is used, but don't remove it, yet.
* doc: footrc.5: add 'uniq | tac' to the pipe-visible exampleDaniel Eklöf2020-07-29-1/+2
|
* search/config: configurable key bindings for (scrollback) search modeDaniel Eklöf2020-07-29-9/+213
|
* render: make compiler happy; make sure 'cell_count' has been initializedDaniel Eklöf2020-07-29-1/+1
| | | | | | | | | Compiler, in release builds, complains about 'cell_count' "may be used uninitialized". This isn't true, as it is initialized in every possible switch case below. But, make the compiler happy and zero-initialize it before the switch statement.
* changelog: scrollback indicator is a *new* feataureDaniel Eklöf2020-07-29-4/+8
|
* Merge branch 'releases/1.4' into masterDaniel Eklöf2020-07-29-9/+15
|\
| * meson/pkgbuild: update version to 1.4.41.4.4releases/1.4Daniel Eklöf2020-07-29-2/+2
| |
| * changelog: add extra newline between index and first releaseDaniel Eklöf2020-07-29-0/+1
| |
| * config: handle trailing comments and empty valuesDaniel Eklöf2020-07-29-16/+33
| |
| * changelog: improved font size consistency across monitors with different DPIDaniel Eklöf2020-07-29-0/+2
| |
| * term: use the monitors diagonal DPI value, instead of it's vertical PPI valueDaniel Eklöf2020-07-29-3/+3
| |
| * term: store current font DPI as a float instead of an integerDaniel Eklöf2020-07-29-12/+12
| | | | | | | | | | FontConfig's DPI is a double, and using a float instead of an integer results in higher resolution.
| * wayland: calculate a single, scaled DPI valueDaniel Eklöf2020-07-29-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | Previously, we calculated the monitors horizontal and vertical PPI values. For font sizing, we used the vertical PPI value. It seems however, that using the diagonal PPI value, i.e. diagonal_px / diagonal_inch, gives more consistent results. This is still a PPI value, but since it is intended to be used as a FontConfig DPI value, name it 'dpi'.
| * input: margins are not selectableDaniel Eklöf2020-07-29-17/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | * Fix col/row calculation in pointer-enter event; we did not take the margins into account. * seat->mouse.col,row are now set to -1 if the cursor is inside the margins. That is, col/row are only ever valid when the mouse is actually over the grid, and not in the margins. * Use regular 'left-ptr' mouse cursor when mouse is inside the margins, to not make the user think he/she can start a selection. Besides making things clearer, this also fixes a crash that occurred if you started a selection in e.g. the right margin.
| * changelog: add 1.4.4 sectionDaniel Eklöf2020-07-29-0/+4
| |
* | readme: license: write out "MIT license"Daniel Eklöf2020-07-28-1/+1
| |
* | readme: move 'requirements' into INSTALL.mdDaniel Eklöf2020-07-28-42/+42
| |
* | readme: now that the install section is so short, move it upDaniel Eklöf2020-07-28-6/+7
| |
* | readme: move installation instructions to INSTALL.mdDaniel Eklöf2020-07-28-188/+196
| |
* | changelog: move #47 to the correct releaseDaniel Eklöf2020-07-28-2/+2
| |
* | Merge branch 'diagonal-dpi'Daniel Eklöf2020-07-28-17/+30
|\ \ | | | | | | | | | Closes #47.
| * \ Merge branch 'master' into diagonal-dpiDaniel Eklöf2020-07-28-68/+423
| |\ \ | |/ / |/| |
* | | config: fix check for scrollback-indicator-format=percentageDaniel Eklöf2020-07-28-1/+1
| | |
* | | config: add free-form text variant to 'scrollback-indicator-format'Daniel Eklöf2020-07-28-12/+31
| | | | | | | | | | | | And make the empty string the new default.
* | | config: handle trailing comments and empty valuesDaniel Eklöf2020-07-28-16/+33
| | |
* | | readme: add link to licenseDaniel Eklöf2020-07-28-0/+7
| | |
* | | doc: footrc.5: add references to foot.1 and footclient.1Daniel Eklöf2020-07-27-0/+4
| | |
* | | doc: rename foot.5 -> footrc.5Daniel Eklöf2020-07-27-9/+11
| | |
* | | config: rename scrollback-indicator-style to scrollback-indicator-positionDaniel Eklöf2020-07-27-19/+19
| | |
* | | render: scrollback indicator: apply weston sub-surface quirkDaniel Eklöf2020-07-27-0/+2
| | |
* | | Merge branch 'scrollback-position-indicator'Daniel Eklöf2020-07-27-24/+302
|\ \ \ | | | | | | | | | | | | Closes #42
| * | | changelog: move scrollback indicator entries from 1.4.3 to 'unreleased'Daniel Eklöf2020-07-27-7/+14
| | | |
| * | | changelog: add link to issueDaniel Eklöf2020-07-27-1/+2
| | | |
| * | | Merge branch 'master' into scrollback-position-indicatorDaniel Eklöf2020-07-27-6/+13
| |\ \ \ | |/ / / |/| | |
* | | | changelog: add new 'unreleased' sectionDaniel Eklöf2020-07-27-0/+10
| | | |
* | | | Merge branch 'releases/1.4'Daniel Eklöf2020-07-27-8/+5
|\ \ \ \ | | |_|/ | |/| |
| * | | meson/pkgbuild: bump version to 1.4.31.4.3Daniel Eklöf2020-07-27-2/+2
| | | |
| * | | changelog: prepare for 1.4.3Daniel Eklöf2020-07-27-6/+3
| | | |
| * | | Merge branch 'master' into releases/1.4Daniel Eklöf2020-07-27-84/+240
| |\ \ \ | |/ / / |/| | |
| | * | Merge branch 'master' into scrollback-position-indicatorDaniel Eklöf2020-07-27-13/+32
| | |\ \ | |_|/ / |/| | |
* | | | doc: foot.5: modifiers+keys are pluralDaniel Eklöf2020-07-27-1/+1
| | | |
* | | | selection: extending a selection is now interactiveDaniel Eklöf2020-07-27-10/+12
| | | | | | | | | | | | | | | | | | | | That is, a selection extension can be resized just like an ordinary extension.
* | | | tokenize: handle escaped quotesDaniel Eklöf2020-07-27-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We only support escaping quotes inside a quote, and only of the same type as the enclosing quote. I.e. "double quote \"escaped double quote\"" But not "double quote \'invalid escaped single quote\'"
* | | | Merge branch 'tokenizer-reset-argv-on-error'Daniel Eklöf2020-07-27-1/+5
|\ \ \ \ | | | | | | | | | | | | | | | Closes #49.
| * | | | changelog: mention fix for crash on unclosed quote in tokenizerDaniel Eklöf2020-07-27-0/+3
| | | | |
| * | | | tokenize: remove newline from log message (LOG_ERR appends one for us)Daniel Eklöf2020-07-27-1/+1
| | | | |
| * | | | tokenize: reset *argv = NULL on errorDaniel Eklöf2020-07-27-0/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | This allows the caller to call free() without having to worry about whether it has already been free:d or not. Closes #49.
| | * | render: scrollback indicator: render relative indicator "smoothly"Daniel Eklöf2020-07-27-7/+7
| | | | | | | | | | | | | | | | That is, don't require it to be placed on a grid row.
| | * | changelog: scrollback position indicatorDaniel Eklöf2020-07-26-0/+3
| | | |
| | * | Merge branch 'master' into scrollback-position-indicatorDaniel Eklöf2020-07-26-88/+114
| | |\ \ | |_|/ / |/| | |
| | * | render: scrollback indicator: add top marginDaniel Eklöf2020-07-26-4/+4
| | | |
| | * | input: handle the scrollback indicator surface in pointer eventsDaniel Eklöf2020-07-26-0/+4
| | | |
| | * | term: term_surface_kind(): recognize the scrollback indicator sub-surfaceDaniel Eklöf2020-07-26-0/+3
| | | |
| | * | input: margins are not selectableDaniel Eklöf2020-07-26-17/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix col/row calculation in pointer-enter event; we did not take the margins into account. * seat->mouse.col,row are now set to -1 if the cursor is inside the margins. That is, col/row are only ever valid when the mouse is actually over the grid, and not in the margins. * Use regular 'left-ptr' mouse cursor when mouse is inside the margins, to not make the user think he/she can start a selection. Besides making things clearer, this also fixes a crash that occurred if you started a selection in e.g. the right margin.
| | * | config: scrollback-indicator-format: percent -> percentageDaniel Eklöf2020-07-26-11/+13
| | | |
| | * | render: scrollback indicator: use black on bright blueDaniel Eklöf2020-07-26-2/+2
| | | |
| | * | render: scrollback indicator: implement 'relative' and 'line' variantsDaniel Eklöf2020-07-26-9/+41
| | | | | | | | | | | | | | | | | | | | We now implement all combinations of 'scrollback-indicator-style' and 'scrollback-indicator-format'.
| | * | render: scrollback indicator: wip: implement 'fixed:percent' indicatorDaniel Eklöf2020-07-26-10/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When scrollback indicator has been enabled, and the viewport isn't at the bottom, we now render a *static* indicator with the position in percent. We use the color scheme's blue color as background, and it's white color as foreground. This is subject to change... Should maybe be configurable as well. The Wayland surface + sub-surface are instantiated on-demand, and automatically destroyed when no longer used.
| | * | render: search: fix subpixel argument to fcft_glyph_rasterize()Daniel Eklöf2020-07-26-1/+1
| | | |
| | * | wayland: add scrollback indicator surface + sub-surface to wl_windowDaniel Eklöf2020-07-26-0/+12
| | | |
| | * | shm: add shm_cookie_scrollback_indicator()Daniel Eklöf2020-07-26-1/+2
| | | |