| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | main: check return value of getcwd() | Daniel Eklöf | 2020-02-20 | -1/+5 |
| | | ||||
| * | slave: prefix argv[0] with a '-' when spawning a login-shell | Daniel Eklöf | 2020-02-20 | -1/+2 |
| | | ||||
| * | config: add 'login-shell' option | Daniel Eklöf | 2020-02-20 | -0/+2 |
| | | ||||
| * | main: add --login-shell command line option | Daniel Eklöf | 2020-02-20 | -1/+8 |
| | | ||||
| * | main: bug: -t requires an argument | Daniel Eklöf | 2020-02-15 | -1/+1 |
| | | ||||
| * | main: add --print-pid=FILE|FD | Daniel Eklöf | 2020-02-05 | -2/+26 |
| | | | | | | When specified, our PID is written to the specified file (or FD), after we've successfully started up. | |||
| * | main: add --print-pid=FILE|FD | Daniel Eklöf | 2020-02-05 | -10/+65 |
| | | | | | | | | When specified, our PID is written to the specified file (or FD), after we've successfully started up. Only applicable in server mode. | |||
| * | Implement --hold | Daniel Eklöf | 2020-02-03 | -0/+8 |
| | | | | | When specified, we don't exit when the slave/client process exits. | |||
| * | render: trigger terminal refreshes in an FDM hook | Daniel Eklöf | 2020-01-04 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | In some cases, we end up calling render_refresh() multiple times in the same FDM iteration. This means will render the first update immediately, and then set the 'pending' flag, causing the updated content to be rendered in the next frame. This can cause flicker, or flashes, since we're presenting one or more intermediate frames until the final content is shown. Not to mention that it is inefficient to render multiple frames like this. Fix by: * render_refresh() only sets a flag in the terminal * install an FDM hook; this hook loops all terminals and executes what render_refresh() _used_ to do (that is, render immediately if we're not waiting for a frame callback, otherwise set 'pending' flag). for all terminals that have the 'refresh_needed' flag set. | |||
| * | wayland: only bind to 'presentation' interface if -p,--presentation-timings | Daniel Eklöf | 2019-12-31 | -1/+1 |
| | | ||||
| * | wayland: optionally use the presentation time protocol to measure input lag | Daniel Eklöf | 2019-12-31 | -9/+16 |
| | | | | | | | | | | | | | | | | | | | | This adds a flag, -p,--presentation-timings, that enables input lag measuring using the presentation time Wayland protocol. When enabled, we store a timestamp when we *send* a key to the slave. Then, when we commit a frame for rendering to the compositor, we request presentation feedback. We also store a timestamp for when the frame was committed. The 'presented' callback then looks at the input and commit timestamps, and compares it with the presented timestamp. The delay is logged at INFO when the delay was less than one frame interval, at WARN when it was one frame interval, and at ERR when it was two or more frame intervals. We also update statistic counters that we log when foot is shut down. | |||
| * | main: let getopt_long() print error message | Daniel Eklöf | 2019-12-29 | -6/+1 |
| | | ||||
| * | main: third member in "struct option" is a pointer | Daniel Eklöf | 2019-12-29 | -8/+8 |
| | | ||||
| * | main: use a single printf() when printing usage | Daniel Eklöf | 2019-12-29 | -11/+13 |
| | | ||||
| * | term: term_init: add 'cwd' argument | Daniel Eklöf | 2019-12-21 | -2/+16 |
| | | | | | | | | | | | 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. | |||
| * | term: term_spawn_new: always spawn foot/footclient from PATH | Daniel Eklöf | 2019-12-21 | -1/+1 |
| | | ||||
| * | term: term_spawn_new(): new function, spawns a new foot/footclient process | Daniel Eklöf | 2019-12-21 | -2/+3 |
| | | | | | Bind ctrl+shift+return to it | |||
| * | main: verify locale is UTF-8 | Daniel Eklöf | 2019-12-19 | -2/+23 |
| | | ||||
| * | config: enable user to specify path to configuration file | Daniel Eklöf | 2019-12-17 | -21/+44 |
| | | ||||
| * | main: remove unused macros | Daniel Eklöf | 2019-12-17 | -3/+0 |
| | | ||||
| * | log: caller can control syslog level | Daniel Eklöf | 2019-12-17 | -2/+2 |
| | | ||||
| * | main: allow server socket path to be set on the command line | Daniel Eklöf | 2019-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). | |||
| * | main: stop initializing a default set of fonts | Daniel Eklöf | 2019-12-04 | -25/+0 |
| | | ||||
| * | fcft: font_from_name() no longer accepts a tllist | Daniel Eklöf | 2019-12-01 | -13/+10 |
| | | ||||
| * | fcft: include <fcft/fcft.h>, and use fcft/stride.h instead of local copy | Daniel Eklöf | 2019-12-01 | -1/+1 |
| | | ||||
| * | fcft: use fcft instead of local copy of font.c/font.h | Daniel Eklöf | 2019-12-01 | -1/+2 |
| | | ||||
| * | font: pass dpi=96 to fontconfig | Daniel Eklöf | 2019-11-26 | -4/+4 |
| | | | | | TODO: use actual output PPI. Question is *which* output... | |||
| * | log: set syslog facility to LOG_DAEMON when run in server mode | Daniel Eklöf | 2019-11-20 | -0/+3 |
| | | ||||
| * | main: mention why we initialize a font set | Daniel Eklöf | 2019-11-20 | -0/+1 |
| | | | | | | | | | | | | | Since fonts are destroyed and removed from the font cache when the last instance is destroyed, closing the "last" terminal window in server mode would destroy the fonts, and their glyph caches. By instantiating the set in main, we ensure the fonts, and the glyph caches, remain. This makes launching new terminals (much) faster. Note that in "normal" (non-server) mode, this isn't really necessary, but also doesn't have any penalty. | |||
| * | fonts: use 'weight' and 'slant', not 'style' when loading fonts | Daniel Eklöf | 2019-11-19 | -3/+3 |
| | | ||||
| * | scan-build: fix a couple of minor warnings from a scan-build run | Daniel Eklöf | 2019-11-05 | -0/+1 |
| | | ||||
| * | main: destroy cached SHM buffers *after* terminals have been destroyed | Daniel Eklöf | 2019-11-05 | -2/+2 |
| | | ||||
| * | main: usage for --server now hints about 'footclient' | Daniel Eklöf | 2019-11-03 | -1/+1 |
| | | ||||
| * | slave: restore signals before calling exec() | Daniel Eklöf | 2019-11-03 | -0/+1 |
| | | ||||
| * | main: ignore SIGHUP in master process | Daniel Eklöf | 2019-11-03 | -0/+5 |
| | | ||||
| * | main: pre-allocate fonts | Daniel Eklöf | 2019-11-02 | -1/+28 |
| | | | | | | | | | Since fonts are cached, this adds no additional memory. However, it makes the first terminal window in --server mode start much faster, since the (primary) fonts have already been loaded. Fallback fonts are still loaded on-demand. | |||
| * | term_init(): initialize slave TERM from term_init() argument | Daniel Eklöf | 2019-11-01 | -1/+1 |
| | | ||||
| * | slave: set TERM environment variable in slave process | Daniel Eklöf | 2019-11-01 | -1/+0 |
| | | ||||
| * | server: implement a --server mode | Daniel Eklöf | 2019-11-01 | -2/+14 |
| | | | | | | | | | | | | In this mode, foot listens on a UNIX socket and creates terminal windows when clients connect. A connecting client sends argc/argv to the server, and the server instantiates a new terminal window. When the terminal window is closed, the exit code is sent back to the client. | |||
| * | main: register signal handlers for SIGINT and SIGTERM | Daniel Eklöf | 2019-11-01 | -0/+15 |
| | | ||||
| * | terminal: call user-defined callback when destroying terminal | Daniel Eklöf | 2019-11-01 | -10/+23 |
| | | | | | main uses this to get the exit code of the terminal. | |||
| * | render: call wl_display_flush() after rendering | Daniel Eklöf | 2019-11-01 | -1/+0 |
| | | | | | This allows us to remove that call from the main event loop. | |||
| * | main: get exit value from wayland struct | Daniel Eklöf | 2019-10-30 | -2/+3 |
| | | ||||
| * | wayland: track multiple terminals | Daniel Eklöf | 2019-10-30 | -5/+7 |
| | | | | | | The wayland 'term' member is gone and replaced by a list, 'terms'. This list contains all currently running terminal (windows). | |||
| * | main: free 'config' on command line parse error | Daniel Eklöf | 2019-10-30 | -0/+4 |
| | | ||||
| * | term: integrate directly with FDM | Daniel Eklöf | 2019-10-28 | -217/+1 |
| | | ||||
| * | terminal: implement term_init() and term_destroy() | Daniel Eklöf | 2019-10-28 | -328/+17 |
| | | ||||
| * | main: remove a couple of includes | Daniel Eklöf | 2019-10-27 | -3/+1 |
| | | ||||
| * | main: kbd repeat FD is handled by the wayland backend | Daniel Eklöf | 2019-10-27 | -1/+1 |
| | | ||||
| * | wayland: backend now configures FD as non-blocking, not main | Daniel Eklöf | 2019-10-27 | -15/+2 |
| | | ||||
| * | main: cleanup | Daniel Eklöf | 2019-10-27 | -7/+0 |
| | | ||||
| * | wayland: move keyboard repeat handling into wayland | Daniel Eklöf | 2019-10-27 | -31/+0 |
| | | ||||
| * | wayland: integrate directly with the FDM | Daniel Eklöf | 2019-10-27 | -16/+0 |
| | | ||||
| * | wayland: implement wayl_init() | Daniel Eklöf | 2019-10-27 | -489/+20 |
| | | | | | Wayland instantiation is now done by the wayland backend, not in main. | |||
| * | term: wayland struct is now not a part of the terminal struct | Daniel Eklöf | 2019-10-27 | -54/+56 |
| | | | | | | | We do however need access to it, so provide a pointer. The difference is that now we can have a *single* wayland instance, but multiple terminal instances. | |||
| * | input: input_repeat() takes a 'struct wayland' pointer | Daniel Eklöf | 2019-10-27 | -6/+6 |
| | | ||||
| * | wayland: change all wayland callbacks to take a wayland pointer | Daniel Eklöf | 2019-10-27 | -65/+73 |
| | | | | | | Instead of passing the terminal to the wayland callbacks, pass a 'struct wayland' pointer. | |||
| * | wayland: add back-pointer to terminal | Daniel Eklöf | 2019-10-27 | -0/+1 |
| | | | | | | This can, in the future, be extended to e.g. a list, to support multiple windows. | |||
| * | kbd: move into wayland | Daniel Eklöf | 2019-10-27 | -15/+16 |
| | | ||||
| * | kbd: break out XKB kbd struct to a separate file | Daniel Eklöf | 2019-10-27 | -12/+1 |
| | | ||||
| * | wayland: move clipboard/primary structs into the wayland struct | Daniel Eklöf | 2019-10-27 | -10/+0 |
| | | | | | These are application global and very wayland specific | |||
| * | wayland: implement wayl_win_destroy() | Daniel Eklöf | 2019-10-27 | -20/+3 |
| | | ||||
| * | wayland: implement wayl_destroy() | Daniel Eklöf | 2019-10-27 | -51/+11 |
| | | ||||
| * | term: move per-window wayland objects from wayland struct to terminal struct | Daniel Eklöf | 2019-10-27 | -41/+41 |
| | | | | | | | | | Short term, we want to break out the wayland backend from the terminal struct. Long term, we might want to support multiple windows. One step towards both the above is separating global wayland objects from per-window objects. | |||
| * | fdm: use the FDM's poll loop | Daniel Eklöf | 2019-10-27 | -201/+261 |
| | | ||||
| * | meson: fix version generation from git | Daniel Eklöf | 2019-10-19 | -0/+1 |
| | | | | | | | | | | | run_command() was only run at configure time, meaning the generated version (that was passed on to the sources via -DFUZZEL_VERSION) became stale. Fix by implementing a shell script that generates a header file, and wrap this in a custom target that is run every time (but the generated file is only updated when the version changes) | |||
| * | font: font_from_name() returns an allocated font struct | Daniel Eklöf | 2019-10-16 | -10/+10 |
| | | ||||
| * | font: calculate underline/strikeout metrics in font, not main | Daniel Eklöf | 2019-09-29 | -43/+0 |
| | | ||||
| * | main: unset DESKTOP_STARTUP_ID | Daniel Eklöf | 2019-09-26 | -0/+4 |
| | | | | | | | This is used in the desktop startup notification protocol. We don't support it (is it even used on Wayland?), but need to ensure programs launced from within foot doesn't inherit it. | |||
| * | main: initialize scale to '1' | Daniel Eklöf | 2019-09-26 | -6/+4 |
| | | | | | | | | | | | This ensures we always have a valid (but possibly incorrect) scaling value. This allows us to simplify code that uses the scale - it doesn't have to verify the scale if valid. Furthermore, since render_resize() is the function that actually updates term->scale, make sure to call it *before* updating the cursor (otherwise, the cursor will use the old scaling value). | |||
| * | selection: primary: don't require compositor to implement it | Daniel Eklöf | 2019-09-25 | -8/+8 |
| | | ||||
| * | main: we prefer xdg-output-manager version 2, but get by with 1 | Daniel Eklöf | 2019-09-24 | -1/+1 |
| | | ||||
| * | main: log (at debug level) global interfaces and their versions | Daniel Eklöf | 2019-09-24 | -1/+1 |
| | | ||||
| * | It's Hz, not HZ | Daniel Eklöf | 2019-09-21 | -2/+2 |
| | | ||||
| * | main: -f,--font now accepts a list of fonts | Daniel Eklöf | 2019-09-21 | -2/+21 |
| | | | | | | | | This makes -f,--font behave just like the configuration file option 'font'; the first font in the list is the primary font, and the remaining fonts are fallback fonts used when a glyph cannot be found in the primary font. | |||
| * | main: round strikeout and underline position fallback handling | Daniel Eklöf | 2019-09-20 | -2/+2 |
| | | ||||
| * | main: round strikeout position, and ceil strikeout thickness | Daniel Eklöf | 2019-09-20 | -2/+2 |
| | | | | | | | | This fixes an issue where sometimes the strikeout thickness where truncated to 0 (e.g. Cascadia Code). Note that we already do this for the underline calculations. | |||
| * | main: names for poll FD indices | Daniel Eklöf | 2019-09-20 | -10/+20 |
| | | ||||
| * | main: better names of timers for delayed rendering timeouts | Daniel Eklöf | 2019-09-20 | -12/+18 |
| | | ||||
| * | main: track output refresh rate | Daniel Eklöf | 2019-09-20 | -2/+7 |
| | | ||||
| * | main: improve delayed rendering | Daniel Eklöf | 2019-09-20 | -12/+38 |
| | | | | | | | | | | | | | | | | | We now use two timers for delayed rendering; one _lower_ limit timeout that is reset each time we receive input from the slave. We never render *before* this timeout. Since it's reset, this means rendering may be pushed further into the future. To prevent this from happening indefinitely, the second timer defines the _upper_ limit. This timer is only reset after rendering. Thus, slave input may now increase the rendering delay, but only up to a certain limit. The lower limit is as before, 1ms. The upper limit is set to 16ms (the time between frame updates on a 60HZ output). | |||
| * | main: use a timer FD to delay render refresh after client data | Daniel Eklöf | 2019-08-30 | -10/+23 |
| | | | | | | | This ensures we never wait *longer* than 1ms (previously, we could end up doing multiple polls, each with a timeout value of 1ms - thereby potentially delaying the refresh indefinitely). | |||
| * | main: render_resize() scales the width and height | Daniel Eklöf | 2019-08-30 | -3/+7 |
| | | | | | | | | | Thus, when we call render_resize() with *old* with/height values, we must scale them back to their original values. This fixes an issue where, for example, moving a window between outputs with different scales caused the window to keep growing. | |||
| * | main: request server-side decorations | Daniel Eklöf | 2019-08-30 | -0/+41 |
| | | ||||
| * | search: don't destroy/recreate search (sub)surface | Daniel Eklöf | 2019-08-29 | -0/+7 |
| | | | | | | | Create the sub-surface once, at startup. Then, instead of destroying it when committing/cancelling a search, unmap it (by attaching a NULL buffer to it). | |||
| * | main: destroy sub-compositor at exit | Daniel Eklöf | 2019-08-29 | -0/+2 |
| | | ||||
| * | search: move wayland surface variables into the term struct | Daniel Eklöf | 2019-08-29 | -8/+12 |
| | | ||||
| * | search: use a sub-surface to render the search buffer | Daniel Eklöf | 2019-08-29 | -0/+5 |
| | | ||||
| * | main: log cell width/height at info level, not debug | Daniel Eklöf | 2019-08-28 | -1/+1 |
| | | | | | | This complements the INFO logs from the renderer when the terminal is resized. | |||
| * | main: free search buffer | Daniel Eklöf | 2019-08-27 | -0/+2 |
| | | ||||
| * | add config + command line option for setting initial window width/height | Daniel Eklöf | 2019-08-23 | -13/+31 |
| | | ||||
| * | main: use slave's exit value as our exit value | Daniel Eklöf | 2019-08-23 | -0/+21 |
| | | ||||
| * | term: rename colors256 -> table | Daniel Eklöf | 2019-08-21 | -11/+5 |
| | | ||||
| * | term: use colors256 array for *all* colors | Daniel Eklöf | 2019-08-21 | -15/+10 |
| | | | | | | | That is, remove the 'regular' and 'bright' color arrays. This is possible since the 256-color array is defined such that the first 16 colors map to the regular and bright colors. | |||
| * | csi: move 256-color table into the terminal struct | Daniel Eklöf | 2019-08-21 | -0/+24 |
| | | ||||
| * | main: fix debug logs | Daniel Eklöf | 2019-08-21 | -2/+3 |
| | | ||||
| * | main: don't set scale before we know what it actually should be | Daniel Eklöf | 2019-08-21 | -4/+0 |
| | | ||||
| * | main: we *do* track outputs | Daniel Eklöf | 2019-08-21 | -2/+0 |
| | | ||||
| * | render: reload cursor theme when scale (may) have changed | Daniel Eklöf | 2019-08-21 | -15/+10 |
| | | ||||
| * | Remove all references to cairo; we now use pixman only | Daniel Eklöf | 2019-08-16 | -2/+0 |
| | | ||||
