aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
* | shm: new functions: shm_cookie_*()Daniel Eklöf2020-03-18-4/+5
| | | | | | | | These functions return a SHM cookie given a terminal instance.
* | shm: log size of purged bufferDaniel Eklöf2020-03-18-2/+3
| |
* | search: replace hard-coded key bindings with "user configurable" onesDaniel Eklöf2020-03-18-167/+228
| | | | | | | | | | | | | | | | They aren't really user configurable. At least not yet. However, with this, we now handle raw key codes just like the normal key bindings. Meaning, e.g. ctrl+g, ctrl+a, ctrl+e etc now works while searching with e.g. a russian layout.
* | input: bindings: don't match raw key code alone - mods must also matchDaniel Eklöf2020-03-18-2/+8
| |
* | conf: bindings: case insensitive matching against 'none'Daniel Eklöf2020-03-18-8/+8
| |
* | input: bind key bindings to raw key codes tooDaniel Eklöf2020-03-18-1/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, when looking for a matching user key binding, we only matched *symbols*. This means that the physical keys that generate a specific key binding is layout dependent. What's worse, it may not even be possible to generate the key binding at all. Russian is one such layout, where all the "normal" (us) symbols are replaced. By using raw key codes, we can get around this - the key code has a direct mapping to the physical key. However, matching raw key codes **only** doesn't always make sense either. For now, match **both** symbols _and_ key codes. Symbols take precedence. TODO: we might have to make this configurable _per binding_. Note: 'search' mode still uses mostly hardcoded shortcuts that still have this problem (i.e. ctrl+g doesn't work with a russian layout).
* | input: key-binding: log error when we fail to translate to XKB symbolDaniel Eklöf2020-03-18-1/+10
| |
* | doc: foot.5: spawn-terminal: mention OSC 7Daniel Eklöf2020-03-17-1/+3
| |
* | doc: foot.1: document ctrl+shift+nDaniel Eklöf2020-03-17-0/+5
| |
* | README: document ctrl+shift+nDaniel Eklöf2020-03-17-0/+5
| |
* | changelog: mention change of default key binding for spaw-terminalDaniel Eklöf2020-03-17-0/+1
| |
* | conf: change default key binding for spawn-terminal to ctrl+shift+nDaniel Eklöf2020-03-17-3/+3
| |
* | conf: make delayed rendering timeouts configurableDaniel Eklöf2020-03-17-7/+65
| | | | | | | | | | | | | | | | | | | | | | This adds an undocumented 'tweak' section to footrc, with two new options: * delayed-render-lower * delayed-render-upper Both takes an integer value, representing the lower/upper timeout values (in nano seconds) for delayed rendering.
* | term: ptmx: don't set 'pending' flag when app sync updates are in useDaniel Eklöf2020-03-17-38/+34
| |
* | render: don't try to resize if we're shutting downDaniel Eklöf2020-03-17-0/+3
| | | | | | | | | | | | This fixes an issue where we sometimes (depends on compositor?) tried to signal a TIOCSWINSZ and failed. This caused us to log a misleading error message.
* | doc: foot.1: mention default value for '--log-colorize'Daniel Eklöf2020-03-17-1/+2
| |
* | doc: foot.1: fix typo - this isn't yambarDaniel Eklöf2020-03-17-1/+1
| |
* | doc: foot.5: mention default value for 'pad'Daniel Eklöf2020-03-17-1/+1
| |
* | doc: foot.5: mention default value for 'geometry'Daniel Eklöf2020-03-17-1/+1
| |
* | render: render non-block cursors after rendering the glyph + decorationsDaniel Eklöf2020-03-17-4/+9
| | | | | | | | | | | | This fixes an issue where an 'underline' cursor wasn't visible on underlined text - the cursor was rendered first, and then shadowed by the text underline.
* | term: ptmx: don't enqueue extra frame render when app sync updates have been changedDaniel Eklöf2020-03-16-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Track whether app-sync updates were enabled or disabled while handling the current chunk of PTMX data. This fixes and issue where we called render_refresh() unnecessarily under (at least) the following conditions: * Application sent "BSU <data> ESU" in the *same* chunk. In this case we never saw that app sync was enabled and triggered delayed rendering as usual. * Application sent ESU. While we had noticed app sync updates being enabled in earlier PTMX reads, when it was disabled *in the current* PTMX read, we treated it as if it had not been enabled at all. This caused us to trigger delayed rendering. Now we call render_refresh() directly from ESU, and detect the "flip off" case in PTMX read and avoid triggering a delayed rendering. The end result of all this is that each key press (for e.g. scrolling in a pager application) went from two frames being rendered, to a single frame.
* | alt-screen: use a custom 'saved' cursor when switching to alt screenDaniel Eklöf2020-03-16-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an issue where we failed to restore the cursor correctly when exiting from the alternate screen, if the client had sent escapes to save the cursor position while inside the alternate screen. This was because we used the *same* storage for saving the cursor position through escapes, as for saving it when entering the alternate screen. Fix by using a custom variable dedicated to normal <--> alt screen switching.
* | wayland: add FDs to FDM as soon as the FDs are readyDaniel Eklöf2020-03-15-6/+6
| |
* | wayland: store display FD in wayland structDaniel Eklöf2020-03-15-6/+9
| | | | | | | | | | | | | | | | This way we: * Don't have to call wl_display_get_fd() all the time * No longer call fdm_del_no_close() even though the FD hasn't been added to the FDM.
* | completions: zsh: don't strip spaces from font name completionsDaniel Eklöf2020-03-15-1/+7
| |
* | main: log version at startupDaniel Eklöf2020-03-15-0/+2
| |
* | changelog: add indexDaniel Eklöf2020-03-15-0/+7
| |
* | Merge branch 'releases/1.2'Daniel Eklöf2020-03-15-2/+8
|\ \
| * | meson/PKGBUILD: bump version to 1.2.31.2.3releases/1.2Daniel Eklöf2020-03-15-2/+8
| | |
* | | changelog: spacesDaniel Eklöf2020-03-14-0/+15
| | |
* | | Merge branch 'releases/1.2'Daniel Eklöf2020-03-14-6/+13
|\| | | |/ |/|
| * changelog: mention fix for #51.2.2Daniel Eklöf2020-03-14-0/+2
| |
| * term: use logical DPI+scale factor when scaling fontsDaniel Eklöf2020-03-14-23/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an issue where the fonts were rendered too small when the output had fractional scaling. For integral scaling, using the logical (scaled) DPI multiplied with the scaling factor results in the same final DPI value as if we had used the physical DPI. But for fractional scaling, this works around the fact that the compositor downscales the surface after we've rendered it. Closes #5
| * quirks: weston_csd_{on,off}: don't do anything in fullscreen modeDaniel Eklöf2020-03-14-0/+4
| |
| * changelog: updated to mention fix for #3Daniel Eklöf2020-03-14-0/+4
| | | | | | | | I really need to learn to update the changelog **with** the fix...
| * terminal: appky scale factor when force-resizing on font reloadDaniel Eklöf2020-03-14-1/+1
| | | | | | | | | | | | | | If we don't, we'll end up e.g. increasing the window size when moving the window between outputs with different scaling. Closes #3
| * client: log path we actually tried to connect to (and failed)Daniel Eklöf2020-03-14-1/+1
| |
| * client: update --server-socket usage to mention XDG_SESSION_IDDaniel Eklöf2020-03-14-1/+1
| |
| * changelog: updateDaniel Eklöf2020-03-14-0/+9
| |
| * server/client: add XDG_SESSION_ID to the default socket pathDaniel Eklöf2020-03-14-3/+10
| | | | | | | | This allows multiple foot servers to run in multiple sessions.
| * .desktop: 'terminal' is not a common icon nameDaniel Eklöf2020-03-14-2/+2
| | | | | | | | | | Not all icon themes have a 'terminal' icon. 'utilities-terminal' on the other hand is a standardized icon name.
| * changelog: remove 'unreleased' sectionDaniel Eklöf2020-03-14-8/+0
| |
* | changelog: upper case initial letterDaniel Eklöf2020-03-14-1/+1
| |
* | changelog: mention removal of Sway 1.2 keyboard/pointer workaroundsDaniel Eklöf2020-03-14-0/+1
| |
* | input: remove Sway 1.2 keyboard/pointer workaroundsDaniel Eklöf2020-03-14-52/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sway 1.4 is better than 1.2, in that we always have keyboard focus when we get a keyboard_key() event. That however is because it doesn't send keyboard_leave() on e.g. a TTY switch. Still, this is good enough - foot handles this and doesn't crash. We are also able to process input without having to refocus the window. And, Sway master (what will become Sway 1.5) has fixed this for real - we now get a keyboard_leave() and pointer_leave() event on a TTY switch. And the corresponding enter events when switching back.
* | input: add debug logs to all keyboard/pointer enter/leave/action eventsDaniel Eklöf2020-03-14-4/+22
| |
* | Merge branch 'scale-fonts-using-logical-dpi-plus-scale-factor'Daniel Eklöf2020-03-13-23/+82
|\ \
| * | changelog: mention fix for #5Daniel Eklöf2020-03-11-0/+2
| | |
| * | term: use logical DPI+scale factor when scaling fontsDaniel Eklöf2020-03-11-23/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an issue where the fonts were rendered too small when the output had fractional scaling. For integral scaling, using the logical (scaled) DPI multiplied with the scaling factor results in the same final DPI value as if we had used the physical DPI. But for fractional scaling, this works around the fact that the compositor downscales the surface after we've rendered it. Closes #5
* | | sixel: improve handling of images when reflowing the gridsDaniel Eklöf2020-03-13-42/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the sixels' 'row' attribute when re-flowing a grid, to ensure it is rendered at the correct place. This should work in most cases, but will break when the cell size has changed (e.g. font size increase/decrease, or a DPI change). This patch also moves the sixel image list from the terminal struct into the grid struct. The sixels are per-grid after all.
* | | input: maximize: unset fullscreen before toggling maximized stateDaniel Eklöf2020-03-12-0/+2
| | |
* | | doc/foot.5: formatting fixesDaniel Eklöf2020-03-12-15/+15
| | |
* | | README: shortcuts (bindings) _can_ be changedDaniel Eklöf2020-03-12-4/+2
| | |
* | | Merge branch 'bindings'Daniel Eklöf2020-03-12-87/+560
|\ \ \
| * | | doc/foot.5: mention that *all* actions can be used in mouse bindingsDaniel Eklöf2020-03-12-0/+2
| | | |
| * | | doc/foot.5: add an example that uses ShiftDaniel Eklöf2020-03-12-1/+2
| | | |
| * | | Merge branch 'master' into bindingsDaniel Eklöf2020-03-12-5/+10
| |\ \ \ | |/ / / |/| | |
* | | | quirks: weston_csd_{on,off}: don't do anything in fullscreen modeDaniel Eklöf2020-03-12-0/+4
| |/ / |/| |
* | | config: add str_to_bool()Daniel Eklöf2020-03-11-5/+10
| | |
| * | config: key-bindings: verify key combo isn't already mapped to another actionDaniel Eklöf2020-03-12-11/+53
| | |
| * | config: mouse-bindings: verify button isn't already mappedDaniel Eklöf2020-03-12-5/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | A button may only be mapped to a single action. Detect when the user tried to map the same button to multiple actions and error out. To clear a binding (for example, to free up a button from the default bindings), one can set the action it is bound to to `NONE` (e.g. `primary-paste=NONE`).
| * | changelog: user configurable key- and mouse bindingsDaniel Eklöf2020-03-12-0/+2
| | |
| * | config/input: implement mouse bindingsDaniel Eklöf2020-03-12-20/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New config section, "mouse-bindings", where bindings are defined on the form "action=BTN_<name> * pointer_button() handler now scans the bindings list instead of hardcoding primary-paste to BTN_MIDDLE. * The implementation handles single- double- and triple clicks in the bindings, but there is currently no way to define anything but a single-click binding in the configuration.
| * | config: 'invalid key' is always an error, not a warningDaniel Eklöf2020-03-12-4/+3
| | |
| * | bindings: add minimize/maximize/fullscreen actionsDaniel Eklöf2020-03-12-0/+39
| | | | | | | | | | | | These actions are by default not bound to anything.
| * | quirks: weston_csd_{on,off}: don't do anything in fullscreen modeDaniel Eklöf2020-03-12-0/+4
| | |
| * | Merge branch 'master' into bindingsDaniel Eklöf2020-03-10-9/+21
| |\ \ | |/ / |/| |
* | | changelog: updated to mention fix for #3Daniel Eklöf2020-03-10-0/+4
| | | | | | | | | | | | I really need to learn to update the changelog **with** the fix...
* | | terminal: appky scale factor when force-resizing on font reloadDaniel Eklöf2020-03-10-1/+1
| | | | | | | | | | | | | | | | | | | | | If we don't, we'll end up e.g. increasing the window size when moving the window between outputs with different scaling. Closes #3
* | | client: log path we actually tried to connect to (and failed)Daniel Eklöf2020-03-10-1/+1
| | |
* | | client: update --server-socket usage to mention XDG_SESSION_IDDaniel Eklöf2020-03-10-1/+1
| | |
* | | wayland: remove empty lineDaniel Eklöf2020-03-10-1/+0
| | |
* | | shm: we don't really handle SHM failures, so just abort()Daniel Eklöf2020-03-10-0/+2
| | |
* | | shm: mmap returns MAP_FAILED, so use that as guard valueDaniel Eklöf2020-03-10-2/+2
| | |
* | | shm: set pool_fd=1 after closing it, to avoid double-closing on errorDaniel Eklöf2020-03-10-1/+1
| | |
* | | shm: try to mmap with MAP_UNINITIALIZEDDaniel Eklöf2020-03-10-1/+2
| | | | | | | | | | | | | | | This flag is expected to be ignored on most systems, but can't hurt to try.
* | | shm: log errno error message tooDaniel Eklöf2020-03-10-1/+1
| | |
* | | changelog: updateDaniel Eklöf2020-03-09-0/+6
| | |
| * | doc/foot.1: keyboard shortcuts: add pointer to foot(5)Daniel Eklöf2020-03-09-2/+4
| | |
| * | doc/foot.5: document key bindingsDaniel Eklöf2020-03-09-0/+47
| | |
| * | main: free config if we fail to load the configDaniel Eklöf2020-03-09-1/+3
| | |
| * | config: load custom key bindingsDaniel Eklöf2020-03-09-22/+74
| | | | | | | | | | | | | | | | | | | | | | | | This adds parsing of a new section - "key-bindings" - where the user can configure the key bindings on the form "action=combo1 .. comboN" The validity of the key combinations are checked with the default XKB keymap.
| * | input: parse_key_binding_for_action: export functionDaniel Eklöf2020-03-09-4/+9
| | |
| * | input: parse_key_binding_for_action: repair LOG_DBG statementDaniel Eklöf2020-03-09-1/+1
| | |
| * | Merge branch 'master' into bindingsDaniel Eklöf2020-03-09-22/+40
| |\ \ | |/ / |/| |
* | | server/client: add XDG_SESSION_ID to the default socket pathDaniel Eklöf2020-03-09-3/+10
| | | | | | | | | | | | This allows multiple foot servers to run in multiple sessions.
* | | term: init: no need to roundtripDaniel Eklöf2020-03-09-5/+5
| | |
* | | wayland: make a missing presentation time interface an errorDaniel Eklöf2020-03-09-3/+4
| | | | | | | | | | | | | | | If the user wanted to do presentation timing, and the interface isn't there, then this is an error.
* | | wayland: register FDM hook early, to avoid unregister errors when failingDaniel Eklöf2020-03-09-5/+5
| | |
* | | .desktop: 'terminal' is not a common icon nameDaniel Eklöf2020-03-09-2/+2
| | | | | | | | | | | | | | | Not all icon themes have a 'terminal' icon. 'utilities-terminal' on the other hand is a standardized icon name.
* | | config: csd: error out on invalid keyDaniel Eklöf2020-03-08-0/+6
| | |
* | | scripts/generate-alt-random-writes: use TIOCGWINSZ instead of shutilDaniel Eklöf2020-03-08-4/+8
| | |
| * | footrc: add default key bindingsDaniel Eklöf2020-03-08-0/+11
| | | | | | | | | | | | Note that we still don't parse this section.
| * | wayland: free 'search' key bindings on destroyDaniel Eklöf2020-03-08-0/+1
| | |
| * | search: add support for user configurable key bindingsDaniel Eklöf2020-03-08-9/+31
| | | | | | | | | | | | No default bindings defined yet, though.
| * | input: convert the rest of the normal key bindings to configurable bindingsDaniel Eklöf2020-03-08-83/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New actions defined and implemented: * scrollback up/down * font size up/down/reset * spawn terminal Break out key combo parsing to a new function, parse_key_binding_for_action(). This function parses a string containing one or more space separated key combo definitions on the form (mod1+mod2+...+key), where key is a XKB key name (e.g. KP_Add). Convert all hardcoded key bindings to configuration based bindings. These still cannot actually be configured by the user, but at least lives in the conf struct.
| * | wip: initial framework for dealing with key/mouse bindings in different modesDaniel Eklöf2020-03-08-17/+130
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds initial support for defining key and mouse bindings that are applied in different terminal modes/states. For example, there are two arrays dealing with key and mouse bindings in the "normal" mode. Most bindings will go here. There's also an array for "search" mode. These bindings will be used when the user has started a scrollback search. In the future, there may be a model selection mode as well. Or maybe "search" and "modal selection" will be combined into a single "keyboard" mode. We'll see. Since the keyboard bindings depend on the current XKB keymap, translation from the user specified key combination string cannot be done when loading the configuration, but must be done when we've received a keymap from the wayland server. We should explore if it's possible to load some kind of default keymap just to be able to verify the validity of the key combination strings at configuration load time, to be able to reject the configuration at startup. A couple of key bindings have been added as proof of concept. Mouse bindings aren't handled at all yet, and is likely to be re-written. For example, we can probably translate the configuration strings at configuration load time.
* | README: only the bundled PKGBUILD requires tllist+fcft to be installed system-wideDaniel Eklöf2020-03-06-1/+2
| |
* | README: font size adjustments are in half point stepsDaniel Eklöf2020-03-06-2/+2
| |
* | README: space separate AUR packagesDaniel Eklöf2020-03-06-2/+4
| |