| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | render: multiply width/height with *new* scale factor, not old | Daniel Eklöf | 2019-08-21 | -2/+2 |
| | | ||||
| * | csi: move 256-color table into the terminal struct | Daniel Eklöf | 2019-08-21 | -27/+30 |
| | | ||||
| * | 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 | -16/+57 |
| | | ||||
| * | erase-cells: don't memset when keeping background color | Daniel Eklöf | 2019-08-20 | -4/+6 |
| | | ||||
| * | input: back out accidental commit of debug code | Daniel Eklöf | 2019-08-19 | -1/+1 |
| | | ||||
| * | csi: implement CSI ? 1007 h/l - alternateScroll | Daniel Eklöf | 2019-08-19 | -6/+31 |
| | | | | | | When enabled, mouse scrolls in the alternate screen are converted to up/down key presses. | |||
| * | font: tentative support for BGR, V-RGB and V-BGR | Daniel Eklöf | 2019-08-19 | -7/+23 |
| | | ||||
| * | render: don't 're-calculate fg unnecessarily | Daniel Eklöf | 2019-08-18 | -6/+4 |
| | | ||||
| * | refactor: break out stride calculation to new function | Daniel Eklöf | 2019-08-18 | -6/+13 |
| | | ||||
| * | README: subpixel antialiasing has been implemented | Daniel Eklöf | 2019-08-18 | -3/+0 |
| | | ||||
| * | font: implement subpixel antialiasing | Daniel Eklöf | 2019-08-18 | -48/+76 |
| | | ||||
| * | render: minor optimization | Daniel Eklöf | 2019-08-17 | -1/+1 |
| | | | | | | Don't instantiate a pixman color unnecessarily when drawing a block cursor. | |||
| * | render: use 32-bit pixman calls, where applicable | Daniel Eklöf | 2019-08-17 | -2/+2 |
| | | ||||
| * | README; emphasize bitmap and color emoji font support | Daniel Eklöf | 2019-08-17 | -1/+1 |
| | | ||||
| * | ci: need ncurses (for 'tic' - to generate terminfo) | Daniel Eklöf | 2019-08-17 | -1/+2 |
| | | ||||
| * | ci: initial CI | Daniel Eklöf | 2019-08-17 | -0/+30 |
| | | ||||
| * | README: split up requirements into "running" and "building" | Daniel Eklöf | 2019-08-17 | -2/+13 |
| | | ||||
| * | meson: remove unused wayland protocols | Daniel Eklöf | 2019-08-17 | -2/+0 |
| | | ||||
| * | Merge branch 'pixman' | Daniel Eklöf | 2019-08-17 | -208/+204 |
| |\ | ||||
| | * | shm/render: there's no need to have one pixman image per thread | Daniel Eklöf | 2019-08-16 | -29/+10 |
| | | | ||||
| | * | Remove all references to cairo; we now use pixman only | Daniel Eklöf | 2019-08-16 | -66/+14 |
| | | | ||||
| | * | render: replace all usage of cairo with pixman | Daniel Eklöf | 2019-08-16 | -80/+89 |
| | | | ||||
| | * | wip: render background and glyphs using pixman | Daniel Eklöf | 2019-08-16 | -78/+134 |
| | | | ||||
| | * | meson: add pixman dependency | Daniel Eklöf | 2019-08-16 | -1/+3 |
| |/ | ||||
| * | vt: remove support for urxvt 'extended' line drawing character set | Daniel Eklöf | 2019-08-16 | -12/+7 |
| | | ||||
| * | vt: there is no default charset for \e0 and \eB | Daniel Eklöf | 2019-08-16 | -2/+4 |
| | | ||||
| * | font: fix broken debug log | Daniel Eklöf | 2019-08-16 | -1/+1 |
| | | ||||
| * | input: remove debug output | Daniel Eklöf | 2019-08-15 | -1/+0 |
| | | ||||
| * | Merge branch 'meta-modifier' | Daniel Eklöf | 2019-08-15 | -348/+146 |
| |\ | ||||
| | * | keymap: add meta modifier mappings for keypad keys | Daniel Eklöf | 2019-08-15 | -191/+64 |
| | | | ||||
| | * | keymap: add meta modifier mappings for non-keypad keys | Daniel Eklöf | 2019-08-15 | -154/+60 |
| | | | ||||
| | * | input: handle meta modifier when modifying "other" keys | Daniel Eklöf | 2019-08-15 | -1/+12 |
| | | | | | | | | | | | | | When handling keys without a specific map defined (i.e. keys corresponding roughly to xterm's "otherKeys"), recognize the meta modifier and report the correct modifier code. | |||
| | * | input: track meta modifier | Daniel Eklöf | 2019-08-15 | -2/+10 |
| |/ | ||||
| * | keymap: don't ESC prefix return when 'shift' is held down | Daniel Eklöf | 2019-08-15 | -1/+0 |
| | | ||||
| * | doc: document how to specify command to execute instead of shell | Daniel Eklöf | 2019-08-15 | -1/+5 |
| | | ||||
| * | Add background alpha support | Daniel Eklöf | 2019-08-15 | -2/+35 |
| | | ||||
| * | font: don't bother creating a cairo surface for zero-width glyphs | Daniel Eklöf | 2019-08-13 | -1/+4 |
| | | ||||
| * | font: handle invalid glyphs correctly | Daniel Eklöf | 2019-08-13 | -1/+5 |
| | | | | | | | | | | | | | | | | | | *All* glyphs are cached. But we never set the 'wc' member of failed glyphs, causing a later cache lookup of the same glyph miss in the cache, and thus re-generate yet another glyph (that is inserted into the cache). I.e. if the same (invalid) glyph is rendered over and over again, we'll end up growing the cache indefinitely. Fix by setting the 'wc' member of invalid glyphs. This causes a cache lookup to hit. But, we must also check the glyphs validity, and return NULL if the glyph isn't valid. Finally, when destroying a font, skip invalid glyphs, since they have no resources that needs to be freed. | |||
| * | output: track output we're mapped on, and use maximum scale | Daniel Eklöf | 2019-08-12 | -8/+67 |
| | | | | | | | Our surface may be on multiple outputs at the same time. In this case, we use the largest scale factor, and let the compositor down scale on the "other" output(s). | |||
| * | input: free previous XKB state when we get a new one | Daniel Eklöf | 2019-08-12 | -0/+20 |
| | | ||||
| * | output: resize on scale changes | Daniel Eklöf | 2019-08-12 | -6/+16 |
| | | ||||
| * | output: initial support for output scaling | Daniel Eklöf | 2019-08-12 | -6/+156 |
| | | | | | | | * Not updated run-time; only scale at start up used * Multiple monitors (outputs) not supported, as we can't track which output we're on (yet). | |||
| * | render: fix foreground color for non-block cursor | Daniel Eklöf | 2019-08-12 | -1/+4 |
| | | | | | | | | When rendering either the 'bar' or 'underline' cursor styles, only use the configured "cursor color" if it has actually been configured. If it hasn't, use the current foreground color. | |||
| * | doc: add foot.5 (configuration) | Daniel Eklöf | 2019-08-12 | -1/+91 |
| | | ||||
| * | config: set to NULL before calling getline() | Daniel Eklöf | 2019-08-12 | -0/+1 |
| | | | | | This fixes a crash on musl-based distros | |||
| * | config: don't log a NULL path | Daniel Eklöf | 2019-08-12 | -2/+2 |
| | | ||||
| * | doc: add foot.1 man page | Daniel Eklöf | 2019-08-11 | -0/+49 |
| | | ||||
| * | main: add -h,--help and -v,--version command line options | Daniel Eklöf | 2019-08-11 | -7/+49 |
| | | ||||
| * | README: add description of mouse middle click | Daniel Eklöf | 2019-08-11 | -0/+1 |
| | | ||||
| * | READNE: fontconfig's fallback _can_ be used, but isn't preferred | Daniel Eklöf | 2019-08-11 | -0/+3 |
| | | ||||
| * | font: cleanup | Daniel Eklöf | 2019-08-10 | -30/+7 |
| | | ||||
| * | font: initial support for fontconfig font fallback | Daniel Eklöf | 2019-08-10 | -42/+120 |
| | | | | | | | | | When we've exhausted our own fallback list, try the font list provided by fontconfig. This means, the user's fallback fonts have priority, but in case all of them fail, we hopefully get lucky with fontconfig... | |||
| * | selection: regression: last cell wasn't included in copied text | Daniel Eklöf | 2019-08-10 | -1/+1 |
| | | ||||
| * | osc: implement copy/paste to/from primary | Daniel Eklöf | 2019-08-09 | -70/+113 |
| | | ||||
| * | input: don't paste from primary if client is mouse tracking | Daniel Eklöf | 2019-08-09 | -2/+3 |
| | | ||||
| * | README: remove empty lines in between list items | Daniel Eklöf | 2019-08-08 | -2/+0 |
| | | ||||
| * | README: initial readme | Daniel Eklöf | 2019-08-08 | -0/+59 |
| | | ||||
| * | config: remove old, commented out code | Daniel Eklöf | 2019-08-08 | -1/+0 |
| | | ||||
| * | term: don't send mouse events if shift is being pressed | Daniel Eklöf | 2019-08-08 | -0/+15 |
| | | ||||
| * | selection: allow selection when mouse tracking is enabled *if* shift is pressed | Daniel Eklöf | 2019-08-08 | -2/+1 |
| | | ||||
| * | render: selection may not be "ordered", since it may not have been finalized | Daniel Eklöf | 2019-08-08 | -0/+6 |
| | | ||||
| * | font: improve logging | Daniel Eklöf | 2019-08-08 | -6/+6 |
| | | ||||
| * | csi: cancel selection *before* switching grid | Daniel Eklöf | 2019-08-08 | -3/+4 |
| | | | | | This fixes an occasional SIGSEGV | |||
| * | selection/input: triple click selects an entire row | Daniel Eklöf | 2019-08-06 | -12/+32 |
| | | ||||
| * | main: make all polled FDs non-blocking | Daniel Eklöf | 2019-08-05 | -56/+73 |
| | | | | | | | | | | | And handle read() returning EAGAIN. This fixes an issue with the keyboard repeat timer, which sometimes would return EAGAIN. Most likely because POLLIN was set on it, but then before we get to handle it, the timer was canceled (by a key up event). | |||
| * | term: cancel selection when scrolling wraps | Daniel Eklöf | 2019-08-05 | -2/+23 |
| | | | | | | | | | | | If we scroll enough, we'll eventually end up wrapping around the entire scrollback buffer. At this point, a selection is no longer valid, so cancel it. Note: this was very obvious when scrolling in the alt screen, since its scrollback buffer is what you see on the screen (i.e. it has no scrollback). | |||
| * | selection: ensure start < end in finalize | Daniel Eklöf | 2019-08-05 | -30/+27 |
| | | | | | | When the selection is finalized, swap start/end if necessary, to make sure start <= end. | |||
| * | input: use a timer fd to handle keyboard key repeat | Daniel Eklöf | 2019-08-05 | -151/+60 |
| | | | | | | | | | | | | Instead of running a repeater thread that writes the key to repeat over a pipe, use a simple timer fd. No more locking or condition signalling. No need to track start/stop/exist states. We simply set up the initial timeout value to be the 'delay', and the interval to be the repeat 'rate'. | |||
| * | selection: mark-word using spaces only as word separator | Daniel Eklöf | 2019-08-05 | -8/+15 |
| | | | | | | When the user double-clicks with ctrl pressed, we now select the word under the cursor using spaces only as word separator. | |||
| * | term: re-order switch-cases to be in X button order | Daniel Eklöf | 2019-08-05 | -3/+3 |
| | | ||||
| * | term: fix mouse button mapping to X button numbers | Daniel Eklöf | 2019-08-05 | -2/+2 |
| | | | | | BACK should be 4, FORWARD 5. | |||
| * | selection: only disable selection when mouse drag/motion is on | Daniel Eklöf | 2019-08-04 | -1/+2 |
| | | | | | | This allows us to select text in e.g. man/less while still being able to use LESS=--MOUSE (i.e. enable scrolling with mouse). | |||
| * | scrollback: use scroll damage to speed up scrolling | Daniel Eklöf | 2019-08-04 | -2/+24 |
| | | | | | | | When scrolling through the scrollback lines, use scroll damage instead of re-rendering the entire screen whenever it makes sense. I.e. when the number of lines isn't a whole page or more. | |||
| * | render: make sure the current view is allocated and visible | Daniel Eklöf | 2019-08-04 | -8/+8 |
| | | ||||
| * | csi: add 'unimplemented' warnings for things we handle but ignore | Daniel Eklöf | 2019-08-04 | -6/+19 |
| | | ||||
| * | selection: insert newlines only when last column is empty | Daniel Eklöf | 2019-08-04 | -7/+14 |
| | | ||||
| * | osc: bug: uneven clipboard bytes where not buffered correctly | Daniel Eklöf | 2019-08-03 | -2/+4 |
| | | | | | | | | | | | | | When responding to a OSC 52 clipboard request, we need to base64 encode the clipboard data. This is done in, potentially, several calls. Since we need at least 3 bytes to be able to produce any base64 output, we may have to buffer up to 2 bytes between the callback calls with clipboard data. This was being done incorrectly, where both bytes were written to index 0 in the buffer. | |||
| * | term: cell erase: reset *all* attributes *except* background | Daniel Eklöf | 2019-08-03 | -4/+1 |
| | | ||||
| * | osc: remove TODO | Daniel Eklöf | 2019-08-03 | -2/+0 |
| | | ||||
| * | cell: pack more efficiently and store glyph as a wchar | Daniel Eklöf | 2019-08-02 | -129/+146 |
| | | | | | | | | | | | | The 'attributes' struct is now 8 bytes and naturally packed (used to be 9 bytes, artificially packed). 'cell' struct is now 12 bytes, naturally packed (used to be 13 bytes, artificially packed). Furthermore, the glyph is stored as a wchar instead of a char*. This makes it easier (faster) to do glyph lookup when rendering. | |||
| * | term: implement reset | Daniel Eklöf | 2019-08-01 | -2/+86 |
| | | ||||
| * | render: special case worker-count == 0 | Daniel Eklöf | 2019-08-01 | -31/+60 |
| | | | | | | Allow render worker count to be 0, in which case the main thread renders the entire screen. | |||
| * | threads: set thread titles | Daniel Eklöf | 2019-08-01 | -0/+15 |
| | | ||||
| * | conf: make number of scrollback lines configurable | Daniel Eklöf | 2019-08-01 | -2/+17 |
| | | ||||
| * | render: always damage two cells when rendering the cursor | Daniel Eklöf | 2019-07-31 | -1/+1 |
| | | | | | | Hack to render cursor-at-double-width-characters correctly. Should be replaced with something better. | |||
| * | render: draw cell decorations (cursor, underline etc) correctly for double-width characters | Daniel Eklöf | 2019-07-31 | -37/+38 |
| | | ||||
| * | font: initial support for double-width *and* color emoji glyphs | Daniel Eklöf | 2019-07-31 | -56/+106 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fonts are now loaded with FT_LOAD_COLOR and we recognize and support the FT_PIXEL_MODE_BGRA pixel mode. This is mapped to a CAIRO_FORMAT_ARGB32 surface, that is blitted as-is (instead of used as a mask like we do for gray and mono glyphs). Furthermore, since many emojis are double-width, we add initial support for double-width glyphs. These are assumed to always be utf8. When PRINT:ing an utf8 character, we check its width, and add empty "spacer" cells after the cell with the multi-column glyph. When rendering, we render the columns in each row backwards. This ensures the spacer cells get cleared *before* we render the glyph (so that we don't end up erasing part of the glyph). Finally, emoji fonts are usually bitmap fonts with *large* glyphs. These aren't automatically scaled down. I.e. even if we request a glyph of 13 pixels, we might end up getting a 100px glyph. To handle this, fontconfig must be configured to scale bitmap fonts. When it is, we can look at the 'scalable' and 'pixelsizefixup' properties, and use these to scale the rendered glyph. | |||
| * | vt: disable flash on bell, it's too annoying in e.g. zsh | Daniel Eklöf | 2019-07-30 | -1/+1 |
| | | ||||
| * | vt: BELL is now logged at info level, and flashes the screen | Daniel Eklöf | 2019-07-30 | -1/+2 |
| | | ||||
| * | osc: reduce flash interval to 50ms | Daniel Eklöf | 2019-07-30 | -2/+1 |
| | | ||||
| * | term: break out 'flash' to a separate 'term' function | Daniel Eklöf | 2019-07-30 | -13/+19 |
| | | ||||
| * | footrc: add 'workers' | Daniel Eklöf | 2019-07-30 | -0/+1 |
| | | ||||
| * | config: remove commented out code | Daniel Eklöf | 2019-07-30 | -2/+0 |
| | | ||||
| * | render: make resize log messages debug messages | Daniel Eklöf | 2019-07-30 | -1/+1 |
| | | ||||
| * | main: don't shadow final return value inside poll loop | Daniel Eklöf | 2019-07-30 | -3/+3 |
| | | ||||
| * | selection: add a couple of word-breaking characters | Daniel Eklöf | 2019-07-30 | -4/+22 |
| | | | | | | | When "auto-selecting" a word, we used to only break on space characters. Now we break on a number of other characters as well. | |||
| * | log: syslog: tag unused function arguments as unused | Daniel Eklöf | 2019-07-30 | -2/+4 |
| | | ||||
