| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Merge branch 'refactor-subsurface-creation' | Daniel Eklöf | 2021-02-17 | -190/+144 |
| |\ | ||||
| | * | wayland: csd_instantiate(): remove TODO | Daniel Eklöf | 2021-02-17 | -21/+0 |
| | | | | | | | | | The sub-surfaces are working just fine without the initial commit. | |||
| | * | wayland: drop ‘_surface’ suffix from subsurface struct instances | Daniel Eklöf | 2021-02-17 | -43/+42 |
| | | | ||||
| | * | render-timer: use wayl_win_subsurface_new/destroy() | Daniel Eklöf | 2021-02-17 | -20/+10 |
| | | | ||||
| | * | scrollback-indicator: use wayl_win_subsurface_new/destroy() | Daniel Eklöf | 2021-02-17 | -46/+15 |
| | | | ||||
| | * | search: use wayl_win_subsurface_new/destroy() | Daniel Eklöf | 2021-02-17 | -34/+20 |
| | | | ||||
| | * | csd: use wayl_win_subsurface_new/destroy() | Daniel Eklöf | 2021-02-17 | -29/+39 |
| | | | ||||
| | * | url-mode: convert struct wl_url to use wayl_win_subsurface_new() | Daniel Eklöf | 2021-02-17 | -46/+8 |
| | | | ||||
| | * | wayland: add wayl_win_subsurface_new() and wayl_win_subsurface_destroy() | Daniel Eklöf | 2021-02-17 | -1/+60 |
| |/ | | | | | These are utility functions to create a Wayland subsurface associated with the window. | |||
| * | csi: ‘CSI 13 ; 2 t’ reply is now (0,0) | Daniel Eklöf | 2021-02-16 | -3/+4 |
| | | | | | | | | | Foot previously responded with window local coordinates. But, XTerm responds with screen *absolute* coordinates. This isn’t possible under Wayland, thus we now report (0,0) instead. Same as we do for ‘CSI 13 ; 0 t’. | |||
| * | install: add libnotify and xdg-utils as optional dependencies | Daniel Eklöf | 2021-02-14 | -0/+6 |
| | | ||||
| * | Merge branch 'notifications-are-inhibited-while-window-has-keyboard-focus' | Daniel Eklöf | 2021-02-14 | -3/+7 |
| |\ | | | | | | | Closes #328 | |||
| | * | doc: foot.ini: notifications are inhibited while we’re focused | Daniel Eklöf | 2021-02-14 | -3/+7 |
| |/ | | | | Closes #328 | |||
| * | Merge branch 'working-dir-command-line-option' | Daniel Eklöf | 2021-02-14 | -16/+108 |
| |\ | | | | | | | Closes #347 | |||
| | * | client: -D,--working-directory: check path exists and is a directory | Daniel Eklöf | 2021-02-13 | -1/+8 |
| | | | ||||
| | * | main: -D,--working-directory: check path exists and is a directory | Daniel Eklöf | 2021-02-13 | -1/+7 |
| | | | ||||
| | * | changelog: -D,--working-directory=DIR | Daniel Eklöf | 2021-02-12 | -0/+2 |
| | | | ||||
| | * | completions: fish: add -D,--working-directory | Daniel Eklöf | 2021-02-12 | -0/+2 |
| | | | ||||
| | * | completions: zsh: add -D,--working-directory | Daniel Eklöf | 2021-02-12 | -0/+2 |
| | | | ||||
| | * | doc: footclient.1: add -D,--working-directory=DIR | Daniel Eklöf | 2021-02-12 | -0/+4 |
| | | | ||||
| | * | doc: foot.1: add -D,--working-directory=DIR | Daniel Eklöf | 2021-02-12 | -0/+4 |
| | | | ||||
| | * | doc: foot.1: add missing short option to --login-shell | Daniel Eklöf | 2021-02-12 | -1/+1 |
| | | | ||||
| | * | main/client: add -D,--working-directory=DIR | Daniel Eklöf | 2021-02-12 | -14/+33 |
| | | | | | | | | | | | This overrides the CWD the slave process chdir()’s into before exec:ing the client application. | |||
| | * | server: send exit-code -1 when we fail to instantiate a new terminal | Daniel Eklöf | 2021-02-12 | -0/+1 |
| | | | ||||
| | * | user-notification: add new function ‘user_notification_add()’ | Daniel Eklöf | 2021-02-12 | -1/+46 |
| | | | ||||
| * | | Merge branch 'url-hint-letters' | Daniel Eklöf | 2021-02-13 | -22/+57 |
| |\ \ | |/ |/| | | | Closes #355 | |||
| | * | readme: mention that the key sequence alphabet can be configured | Daniel Eklöf | 2021-02-13 | -2/+2 |
| | | | ||||
| | * | doc: foot.1: mention that the key sequence alphabet can be configured | Daniel Eklöf | 2021-02-13 | -2/+2 |
| | | | ||||
| | * | url-mode: use ‘jump-label-letters’ as the alphabet for key sequences | Daniel Eklöf | 2021-02-13 | -8/+9 |
| | | | | | | | | | | | | | | | Instead of hard coding the alphabet to “sadfjklewcmpgh”, use the letters from ‘jump-label-letters’. Closes #355 | |||
| | * | doc: foot.ini.5: document jump-label-letters | Daniel Eklöf | 2021-02-13 | -0/+4 |
| | | | ||||
| | * | foot.ini: add default value of jump-label-letters | Daniel Eklöf | 2021-02-13 | -0/+1 |
| | | | ||||
| | * | config: add jump-label-letters option | Daniel Eklöf | 2021-02-13 | -0/+13 |
| | | | ||||
| | * | config: refactor: add str_to_wchars(), use it when parsing word-delimiters | Daniel Eklöf | 2021-02-13 | -8/+24 |
| | | | ||||
| | * | url-mode: do case insensitive comparison when matching key sequence | Daniel Eklöf | 2021-02-13 | -2/+2 |
| |/ | ||||
| * | Merge branch 'releases/1.6' | Daniel Eklöf | 2021-02-12 | -16/+33 |
| |\ | ||||
| | * | meson/pkgbuild: bump version to 1.6.41.6.4releases/1.6 | Daniel Eklöf | 2021-02-12 | -2/+2 |
| | | | ||||
| | * | changelog: prepare for 1.6.4 | Daniel Eklöf | 2021-02-12 | -3/+1 |
| | | | ||||
| | * | selection: don’t strip formatting C0 control characters in bracketed paste mode | Daniel Eklöf | 2021-02-12 | -18/+29 |
| | | | | | | | | | | | | | | | | | It’s ok to let the receiving end handle formatting C0 control characters in bracketed paste mode. In fact, we *must* let them through. Otherwise it is impossible to paste e.g. tabs into editors and similar applications. | |||
| | * | changelog: use standard signals for SIGCHLD | Daniel Eklöf | 2021-02-12 | -0/+3 |
| | | | ||||
| | * | config: selection-target: space-optimize the static ‘value’ array | Daniel Eklöf | 2021-02-12 | -1/+1 |
| | | | ||||
| | * | doc: foot.ini: selection-target=none|primary|clipboard|both | Daniel Eklöf | 2021-02-12 | -6/+11 |
| | | | ||||
| | * | changelog: selection-target=none|primary|clipboard|both | Daniel Eklöf | 2021-02-12 | -0/+8 |
| | | | ||||
| | * | config: add ‘none’ as a possible value for ‘selection-target’ | Daniel Eklöf | 2021-02-12 | -12/+22 |
| | | | | | | | | | | | | | | | When ‘selection-target’ is set to ‘none’, selecting text does not copy the text to _any_ clipboard. This patch also refactors the value parsing to be data driven. | |||
| | * | selection: copy selected text to the target configured by ‘selection-target’ | Daniel Eklöf | 2021-02-12 | -1/+14 |
| | | | | | | | | | Closes #288 | |||
| | * | config: add new option ‘selection-target’ | Daniel Eklöf | 2021-02-12 | -0/+23 |
| | | | | | | | | | | | This option controls the clipboard target that selected text should be copied to. | |||
| | * | reaper: monitor SIGCHLD using the FDM instead of via a signalfd | Daniel Eklöf | 2021-02-12 | -139/+91 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to letting the FDM do the low-level signal watching, this patch also fixes a bug; multiple SIGCHLDs, be it delivered either through a signal, or via a signalfd, can be coalesced, like all signals. This means we need to loop on waitpid() with WNOHANG until there are no more processes to reap. This in turn requires a small change to the way reaper callbacks are implemented. Previously, the callback was allowed to do the wait(). This was signalled back to the reaper through the callback’s return value. Now, since we’ve already wait():ed, the process’ exit status is passed as an argument to the reaper callback. The callback for the client application has been updated accordingly; it sets a flag in the terminal struct, telling term_destroy() that the process has already been wait():ed on, and also stores the exit status. | |||
| | * | render: block all signals in the rendering threads | Daniel Eklöf | 2021-02-12 | -0/+5 |
| | | | ||||
| | * | main: monitor SIGINT+SIGTERM using the FDM | Daniel Eklöf | 2021-02-12 | -9/+10 |
| | | | ||||
| | * | fdm: add support for managing signals | Daniel Eklöf | 2021-02-12 | -26/+147 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add fdm_signal_add() and fdm_signal_del(). Signals added to the fdm will be monitored, and the provided callback called as “soon as possible” from the main context (i.e not from the signal handler context). Monitored signals are *blocked* by default. We use epoll_pwait() to unblock them while we’re polling. This allows us to do race-free signal detection. We use a single handler for all monitored signals; the handler simply updates the signal’s slot in a global array (sized to fit SIGRTMAX signals). When epoll_pwait() returns EINTR, we loop the global array. The callback associated with each signal that fired is called. | |||
| | * | install: add -Dterminfo to list of compile-time options | Daniel Eklöf | 2021-02-12 | -3/+4 |
| | | | ||||
| | * | changelog: -Dterminfo changed from boolean to feature option | Daniel Eklöf | 2021-02-12 | -0/+2 |
| | | | ||||
| | * | meson: convert -Dterminfo from a boolean to a feature option | Daniel Eklöf | 2021-02-12 | -5/+5 |
| | | | | | | | | | Patch from Jan Beich | |||
| | * | ime: Reset terminal's IME state on text_input.leave | Tadeo Kondrak | 2021-02-12 | -0/+12 |
| | | | | | | | | | | | | | | | | | To reproduce issue: - Launch an IME from inside foot - Type in some preedit text - Use Ctrl-C to close the IME - IME text stays in terminal until focus is changed | |||
| | * | changelog: add section for 1.6.4 | Daniel Eklöf | 2021-02-12 | -0/+11 |
| | | | ||||
| * | | Merge branch 'dont-strip-formatting-chars-when-pasting-in-bracketed-paste-mode' | Daniel Eklöf | 2021-02-12 | -18/+26 |
| |\ \ | ||||
| | * | | selection: don’t strip formatting C0 control characters in bracketed paste mode | Daniel Eklöf | 2021-02-12 | -18/+26 |
| |/ / | | | | | | | | | | | | | | | It’s ok to let the receiving end handle formatting C0 control characters in bracketed paste mode. In fact, we *must* let them through. Otherwise it is impossible to paste e.g. tabs into editors and similar applications. | |||
| * | | Merge branch 'add-missing-short-options-to-usage' | Daniel Eklöf | 2021-02-12 | -11/+11 |
| |\ \ | ||||
| | * | | main/client: add missing short options to usage (--help output) | Daniel Eklöf | 2021-02-12 | -11/+11 |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initially, these options *did not* have short options. Then, in e81388336750a20a2da98a57e9726c8ba1b481e3, the short options were added to footclient’s getopt_long() call. This was in a sense incorrect. But instead of reverting it, the short options were made official in 8eaa1959904ecff0e7e75d152220344457912f76, by adding the short options to foot, documenting them in the man pages, and adding them to the shell completions. Though the commit message of 8eaa1959904ecff0e7e75d152220344457912f76 says the options have now been included in usage(), they were in fact *not* added to usage. This patch does just that. | |||
| * | | changelog: use standard signals for SIGCHLD | Daniel Eklöf | 2021-02-11 | -2/+5 |
| | | | ||||
| * | | Merge branch 'log-level' | Daniel Eklöf | 2021-02-11 | -37/+138 |
| |\ \ | | | | | | | | | | Closes #337 | |||
| | * | | main: client: factor out some common code for "--log-level" option | Craig Barnes | 2021-02-11 | -58/+61 |
| | | | | ||||
| | * | | changelog: -d,--log-level | Daniel Eklöf | 2021-02-09 | -0/+2 |
| | | | | ||||
| | * | | completions: fish: -d,--log-level | Daniel Eklöf | 2021-02-09 | -0/+2 |
| | | | | ||||
| | * | | completions: zsh: -d,--log-level | Daniel Eklöf | 2021-02-09 | -0/+2 |
| | | | | ||||
| | * | | doc: footclient.1: document -d,--log-level | Daniel Eklöf | 2021-02-09 | -0/+4 |
| | | | | ||||
| | * | | doc: foot.1: document -d,--log-level | Daniel Eklöf | 2021-02-09 | -0/+4 |
| | | | | ||||
| | * | | client: add -d,--log-level | Daniel Eklöf | 2021-02-09 | -14/+54 |
| | | | | ||||
| | * | | main: add -d,--log-level=[debug,info,warning,error] | Daniel Eklöf | 2021-02-09 | -20/+59 |
| | | | | ||||
| | * | | log: log-level applies to messages logged to stderr too | Daniel Eklöf | 2021-02-09 | -3/+8 |
| | | | | ||||
| * | | | Merge branch 'fdm-signal-handling' | Daniel Eklöf | 2021-02-11 | -171/+253 |
| |\ \ \ | ||||
| | * | | | reaper: monitor SIGCHLD using the FDM instead of via a signalfd | Daniel Eklöf | 2021-02-11 | -138/+90 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to letting the FDM do the low-level signal watching, this patch also fixes a bug; multiple SIGCHLDs, be it delivered either through a signal, or via a signalfd, can be coalesced, like all signals. This means we need to loop on waitpid() with WNOHANG until there are no more processes to reap. This in turn requires a small change to the way reaper callbacks are implemented. Previously, the callback was allowed to do the wait(). This was signalled back to the reaper through the callback’s return value. Now, since we’ve already wait():ed, the process’ exit status is passed as an argument to the reaper callback. The callback for the client application has been updated accordingly; it sets a flag in the terminal struct, telling term_destroy() that the process has already been wait():ed on, and also stores the exit status. | |||
| | * | | | render: block all signals in the rendering threads | Daniel Eklöf | 2021-02-11 | -0/+5 |
| | | | | | ||||
| | * | | | main: monitor SIGINT+SIGTERM using the FDM | Daniel Eklöf | 2021-02-11 | -9/+10 |
| | | | | | ||||
| | * | | | fdm: add support for managing signals | Daniel Eklöf | 2021-02-11 | -24/+148 |
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add fdm_signal_add() and fdm_signal_del(). Signals added to the fdm will be monitored, and the provided callback called as “soon as possible” from the main context (i.e not from the signal handler context). Monitored signals are *blocked* by default. We use epoll_pwait() to unblock them while we’re polling. This allows us to do race-free signal detection. We use a single handler for all monitored signals; the handler simply updates the signal’s slot in a global array (sized to fit SIGRTMAX signals). When epoll_pwait() returns EINTR, we loop the global array. The callback associated with each signal that fired is called. | |||
| * | | | Merge branch 'xassert-false' | Craig Barnes | 2021-02-10 | -36/+30 |
| |\ \ \ | ||||
| | * | | | Mark slave_exec() as "noreturn" and convert xassert(false) to BUG(...) | Craig Barnes | 2021-02-10 | -2/+3 |
| | | | | | ||||
| | * | | | Convert all but 2 remaining uses of xassert(false) to BUG("...") | Craig Barnes | 2021-02-10 | -17/+12 |
| | | | | | ||||
| | * | | | Convert some more uses of xassert(false) to BUG("...") | Craig Barnes | 2021-02-09 | -5/+5 |
| | | | | | ||||
| | * | | | Convert some uses of xassert(false) to BUG("some error message") | Craig Barnes | 2021-02-09 | -12/+10 |
| | | | | | ||||
| * | | | | Merge branch 'turn-meson-terminfo-option-into-a-feature' | Daniel Eklöf | 2021-02-09 | -8/+11 |
| |\ \ \ \ | |_|/ / |/| | | | ||||
| | * | | | install: add -Dterminfo to list of compile-time options | Daniel Eklöf | 2021-02-09 | -3/+4 |
| | | | | | ||||
| | * | | | changelog: -Dterminfo changed from boolean to feature option | Daniel Eklöf | 2021-02-09 | -0/+2 |
| | | | | | ||||
| | * | | | meson: convert -Dterminfo from a boolean to a feature option | Daniel Eklöf | 2021-02-09 | -5/+5 |
| | | | | | | | | | | | | | | | | | Patch from Jan Beich | |||
| * | | | | csi: add 47+1047 (alt screen) to DECRQM | Daniel Eklöf | 2021-02-09 | -0/+2 |
| | | | | | ||||
| * | | | | Merge remote-tracking branch 'origin/debug-log' | Daniel Eklöf | 2021-02-09 | -12/+13 |
| |\ \ \ \ | |_|/ / |/| | | | ||||
| | * | | | debug: make use of log_msg() in fatal_error() and bug() functions | Craig Barnes | 2021-02-09 | -12/+13 |
| |/ / / | | | | | | | | | | Instead of writing directly to stderr and/or syslog(3). | |||
| * / / | render: use portable HAS_INCLUDE() wrapper instead of __has_include() | Craig Barnes | 2021-02-09 | -1/+9 |
| |/ / | ||||
| * | | Merge branch 'refactor-key-bindings' | Daniel Eklöf | 2021-02-08 | -330/+144 |
| |\ \ | ||||
| | * | | key-bindings: refactor: use a single type for all key bindings | Daniel Eklöf | 2021-02-08 | -330/+144 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Up until now, the various key binding modes (“normal”, “search” and “url”) have used their own struct definitions for their key bindings. The only reason for this was to have a properly typed “action” (using the appropriate “action” enum). This caused lots of duplicated code. This patch refactors this to use a single struct definition for the “unparsed” key bindings handled by the configuration, and another single definition for “parsed” bindings used while handling input. This allows us to implement configuration parsing, keymap translation and so on using one set of functions, regardless of key binding mode. | |||
| * | | | Merge branch 'url-parser-recognize-percent' | Daniel Eklöf | 2021-02-08 | -2/+2 |
| |\ \ \ | | | | | | | | | | | | | Closes #338 | |||
| | * | | | url-mode: ‘%’ is a valid URI character (but don’t allow it at the end) | Daniel Eklöf | 2021-02-08 | -2/+2 |
| |/ / / | | | | | | | | | | Closes #338 | |||
| * | | | Merge branch 'kitty-theme' | Daniel Eklöf | 2021-02-08 | -0/+22 |
| |\ \ \ | ||||
| | * | | | Add kitty theme | Stefan Tatschner | 2021-02-08 | -0/+22 |
| |/ / / | ||||
| * | | | Merge branch 'prefer-tll_remove-over-tll_free' | Daniel Eklöf | 2021-02-08 | -24/+35 |
| |\ \ \ | |/ / |/| | | ||||
| | * | | misc: when free:ing tll lists, prefer tll_remove() over tll_free() | Daniel Eklöf | 2021-02-08 | -24/+35 |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In many places we have the following pattern: tll_foreach(list, it) free(it->item.thing); tll_free(list); Since all tll functions are macros, and thus inlined, and since tll_free in itself expands to a tll_foreach(), the above pattern expands to more native code than necessary. This is somewhat smaller: tll_foreach(list, it) { free(it->item.thing); tll_remove(list, it); } | |||
| * | | Merge branch 'url-detection' | Daniel Eklöf | 2021-02-08 | -138/+1340 |
| |\ \ | ||||
| | * | | url-mode: urls_render(): early exit when URL list is empty | Daniel Eklöf | 2021-02-07 | -0/+3 |
| | | | | ||||
| | * | | url-mode: generate-key-combos: minor efficiency tweaks | Daniel Eklöf | 2021-02-07 | -7/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use a do..while loop; this lets us drop the second half of the loop condition. * Call wcslen(prefix) once, *before* iterating the alphabet characters. * Step through the alphabet characters using a pointer, as this avoids an indexed load (with possibly an imul instruction in e.g. -Os builds). | |||
| | * | | url-mode: be consistent; use xmalloc() + xrealloc() | Daniel Eklöf | 2021-02-07 | -4/+4 |
| | | | | ||||
| | * | | url-mode: early exit when assigning key combos to empty list | Daniel Eklöf | 2021-02-07 | -0/+3 |
| | | | | ||||
