aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* csi: ignore invalid scrolling regions0.9.0Daniel Eklöf2019-09-29-7/+10
| | | | | | | | | | There must be at least one scrolling row. I.e. the bottom margin must be larger than the top margin. Note that trying to set an invalid region really will be *ignored*. I.e. we *don't* reset the scrolling region. This conforms to xterm's behavior.
* font: calculate underline/strikeout metrics in font, not mainDaniel Eklöf2019-09-29-43/+41
|
* vt: don't log ignored execute commandsDaniel Eklöf2019-09-28-1/+0
| | | | cat:ing a binary file would otherwise result in us spamming syslog.
* render: handle compositors that does buffer swappingDaniel Eklöf2019-09-27-45/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all compositors support buffer re-use. I.e. they will call the frame callback *before* the previous buffer has been released. Effectively causing us to swap between two buffers. Previously, this made us enter an infinite re-render loop, since we considered the window 'dirty' (and in need of re-draw) when the buffer is different from last redraw. Now, we detect the buffer swapping case; size must match, and we must not have any other condition that require a full repaint. In this case, we can memcpy() the old buffer to the new one, without dirtying the entire grid. We then update only the dirty cells (and scroll damage). Note that there was a bug here, where we erased the old cursor *before* checking for a new buffer. This worked when the buffer had *not* changed. Now that we need to handle the case where it *has* changed, we must do the memcpy() *before* we erase the cursor, or the re-painted cell is lost. This makes foot work on Plasma, without burning CPU. The memcpy() does incur a performance penalty, but we're still (much) faster than e.g. konsole. In fact, we're still mostly on par with Alacritty.
* render: attach buffer *before* generating damageDaniel Eklöf2019-09-27-2/+1
| | | | Fixes 'invisible window' on Plasma
* main: unset DESKTOP_STARTUP_IDDaniel Eklöf2019-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.
* input: scale coordinates in wl_pointer_enter()Daniel Eklöf2019-09-26-2/+2
|
* main: initialize scale to '1'Daniel Eklöf2019-09-26-22/+7
| | | | | | | | | | 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).
* PKGBUILD: explicitly set --term=xtermDaniel Eklöf2019-09-26-1/+1
| | | | | The 'foot' terminfo may not be installed/available when we run the intermediate foot binary, so explicitly use 'xterm' instead.
* selection: primary: don't require compositor to implement itDaniel Eklöf2019-09-25-8/+20
|
* main: we prefer xdg-output-manager version 2, but get by with 1Daniel Eklöf2019-09-24-1/+1
|
* main: log (at debug level) global interfaces and their versionsDaniel Eklöf2019-09-24-1/+1
|
* README: that -> theDaniel Eklöf2019-09-21-2/+2
|
* README: remove badges (added directly to gitlab project instead)Daniel Eklöf2019-09-21-1/+0
|
* README: add CI pipeline badgeDaniel Eklöf2019-09-21-0/+1
|
* doc: user Courier New instead of Arial in font examplesDaniel Eklöf2019-09-21-2/+2
| | | | Since Courier New is monospaced, while Arial is not.
* It's Hz, not HZDaniel Eklöf2019-09-21-2/+2
|
* main: -f,--font now accepts a list of fontsDaniel Eklöf2019-09-21-4/+34
| | | | | | | 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.
* doc: describe font fallback handlingDaniel Eklöf2019-09-21-2/+13
|
* PKGBUILD: need python to run generate-alt-random-writes.pyDaniel Eklöf2019-09-21-1/+1
|
* README: don't emphasize entries in "known issues" listDaniel Eklöf2019-09-21-2/+2
|
* README: add text reflow to list of known issuesDaniel Eklöf2019-09-21-0/+2
|
* config: change default bright5 and bright 6 colorsDaniel Eklöf2019-09-21-6/+6
| | | | | | | They where previously identical to the corresponding 'regular' colors. Now, we've done a saturated add with 0x202020 (which seems to be roughly the difference between the other regular and bright colors).
* config: change default 'regular0' colorDaniel Eklöf2019-09-21-2/+2
| | | | | 0x222222 appears to be more visible against the default background (0x111111) than 0x000000.
* main: round strikeout and underline position fallback handlingDaniel Eklöf2019-09-20-2/+2
|
* main: round strikeout position, and ceil strikeout thicknessDaniel Eklöf2019-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.
* render: remove assertion that isn't always trueDaniel Eklöf2019-09-20-1/+0
| | | | It's not true for e.g. Cascadia code.
* PKGBUILD: foot-terminfo depends on ncursesDaniel Eklöf2019-09-20-1/+2
|
* PKGBUILD: 'foot' optionally depends on 'foot-terminfo'Daniel Eklöf2019-09-20-0/+1
|
* PKGBUILD: break out terminfo files to a separate packageDaniel Eklöf2019-09-20-8/+17
|
* generate-alt-random-writes: reduce output sizeDaniel Eklöf2019-09-20-1/+1
|
* main: names for poll FD indicesDaniel Eklöf2019-09-20-10/+20
|
* main: better names of timers for delayed rendering timeoutsDaniel Eklöf2019-09-20-12/+18
|
* main: track output refresh rateDaniel Eklöf2019-09-20-2/+8
|
* README: formattingDaniel Eklöf2019-09-20-2/+4
|
* README: formattingDaniel Eklöf2019-09-20-2/+2
|
* README: add section with known issuesDaniel Eklöf2019-09-20-0/+9
|
* main: improve delayed renderingDaniel Eklöf2019-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).
* footrc: zsh isn't the default shellDaniel Eklöf2019-09-20-1/+1
|
* footrc: add missing newline at end-of-fileDaniel Eklöf2019-09-20-1/+1
|
* meson: install footrc example file to $datadir/foot/footrcDaniel Eklöf2019-09-20-0/+1
|
* README: combine description for escape and ctrl+gDaniel Eklöf2019-09-10-5/+1
|
* csi: don't ignore the color space identifier in SGRsDaniel Eklöf2019-09-04-10/+73
| | | | | | | | | Only a color space ID of '2' means the sequence is an RGB sequence. Update existing code to verify this, and ignore sequences with other color space IDs. Except color space ID '5', which is the same as a regular 38;5;<idx> sequence, but using sub-parameters instead (38:2:5:<idx>).
* vt: implement 'insert mode'Daniel Eklöf2019-08-30-18/+27
|
* csi: CSI h isn't a valid sequence - it needs a parameterDaniel Eklöf2019-08-30-5/+29
| | | | | And, 'insert mode' isn't activated with \e[h, but with \e[4h.
* vt: remove unneeded includeDaniel Eklöf2019-08-30-1/+0
|
* generate-alt-random-writes: generate streaks of charactersDaniel Eklöf2019-08-30-1/+4
|
* input: take scale into account when converting mouse coords to row/colDaniel Eklöf2019-08-30-2/+3
|
* input: bug: account for margins when converting mouse coords to row/colDaniel Eklöf2019-08-30-2/+2
|
* render: search box: use colors from the color tableDaniel Eklöf2019-08-30-2/+3
| | | | | | | | | Use the 'yellow' color from the 'regular' range of colors (SGR 33) for background when we have a match, or 'red' from the 'regular' range of colors (SGR 31) when we don't have a match. Foreground uses the 'black' color from the regular range of colors (SGR 30).
* search: map ctrl+b/f to move cursor single character backward/forwardDaniel Eklöf2019-08-30-2/+6
|
* man: document keyboard + mouse shortcutsDaniel Eklöf2019-08-30-0/+53
|
* README: put -> copyDaniel Eklöf2019-08-30-1/+2
|
* README: document ctrl+s while doing a scrollback searchDaniel Eklöf2019-08-30-1/+5
|
* Merge branch 'scrollback-search'Daniel Eklöf2019-08-30-88/+940
|\
| * search: ctrl+s searches forwardDaniel Eklöf2019-08-30-0/+18
| |
| * search: make search-direction configurableDaniel Eklöf2019-08-30-7/+24
| |
| * search: fix distance to prev word calculation when final cursor was 0Daniel Eklöf2019-08-30-1/+1
| |
| * render: draw (cursor) bar using the same thickness as underlinesDaniel Eklöf2019-08-30-5/+7
| |
| * search: implement move cursor word backward/forwardDaniel Eklöf2019-08-30-0/+18
| |
| * search: implement delete word backward/forwardDaniel Eklöf2019-08-30-2/+18
| |
| * search: utility functions distance_{next,prev}_word()Daniel Eklöf2019-08-30-0/+56
| | | | | | | | | | These functions calculate the distance from the current cursor to the next/previous word.
| * render: search box: fix glyph spacingDaniel Eklöf2019-08-30-1/+1
| | | | | | | | | | We're using the same font as in the terminal, so use the same glyph spacing.
| * main: use a timer FD to delay render refresh after client dataDaniel Eklöf2019-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 heightDaniel Eklöf2019-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 decorationsDaniel Eklöf2019-08-30-0/+45
| |
| * README: mention that the PKGBUILD requires a running wayland sessionDaniel Eklöf2019-08-29-0/+4
| |
| * README: clarify _how_ and _where_ makepkg is supposed to be runDaniel Eklöf2019-08-29-1/+2
| |
| * README: re-arrange: put requirements+installation lastDaniel Eklöf2019-08-29-44/+44
| |
| * README: add an 'installation' sectionDaniel Eklöf2019-08-29-0/+21
| |
| * README: hopefully fix nested listsDaniel Eklöf2019-08-29-4/+4
| |
| * README: add indexDaniel Eklöf2019-08-29-0/+12
| |
| * README: more emphasisDaniel Eklöf2019-08-29-3/+3
| |
| * README: re-write font sectionDaniel Eklöf2019-08-29-9/+10
| |
| * README: add a feature listDaniel Eklöf2019-08-29-0/+20
| |
| * README: use <kbd> for remaining keyboard key combosDaniel Eklöf2019-08-29-4/+4
| |
| * README: upper case initial lettersDaniel Eklöf2019-08-29-12/+12
| |
| * README: use poor man's markdown version of definition listsDaniel Eklöf2019-08-29-18/+47
| |
| * README: test indented paragraph in listDaniel Eklöf2019-08-29-1/+3
| |
| * README: use <kbd/> for keyboard key combosDaniel Eklöf2019-08-29-12/+12
| |
| * README: try <kbd> markupDaniel Eklöf2019-08-29-1/+1
| |
| * Revert "search: for now, reset search match state whenever the buffer changes"Daniel Eklöf2019-08-29-9/+0
| | | | | | | | This reverts commit 9c6ece747ed328b0e922597ec52646c00bb68c8c.
| * search: for now, reset search match state whenever the buffer changesDaniel Eklöf2019-08-29-0/+9
| |
| * search: call render_search_box() from search_inptu()Daniel Eklöf2019-08-29-3/+1
| |
| * search: add basic cursor navigation supportDaniel Eklöf2019-08-29-2/+45
| |
| * search: insert new characters at cursor, not at the end of the bufferDaniel Eklöf2019-08-29-2/+7
| |
| * search: search_cancel: reset cursor positionDaniel Eklöf2019-08-29-0/+1
| |
| * render: render_search_box: draw cursor as a barDaniel Eklöf2019-08-29-0/+6
| |
| * term: add a 'cursor' (position) to the search stateDaniel Eklöf2019-08-29-0/+1
| |
| * render: draw_strikeout: use font_baseline() for baseline calculationDaniel Eklöf2019-08-29-1/+1
| |
| * render: draw_underline: use font_baseline() for baseline calculationDaniel Eklöf2019-08-29-1/+1
| |
| * render: draw_bar: don't assume height == ascent+descentDaniel Eklöf2019-08-29-2/+4
| | | | | | | | | | Instead, draw a bar that is ascent+descent tall, positioned around the baseline such that it starts at the ascent and ends at the descent.
| * render: add font_baseline() - calculates the y-coordinate for the baselineDaniel Eklöf2019-08-29-0/+19
| | | | | | | | | | | | | | | | | | | | The old baseline calculation was copy-pasted to a couple of places, and also assumed that the font's height was equal to ascent+descent. While this is typically true, it isn't necessarily so. Now, we assume that height >= ascent+descent, and then position the baseline in "center" (but adjusted for the descent).
| * search: turn info log to a debug logDaniel Eklöf2019-08-29-1/+1
| |
| * search: remove INFO log (that really was a debug log)Daniel Eklöf2019-08-29-1/+0
| |
| * render: remove INFO log (that really was a debug log)Daniel Eklöf2019-08-29-2/+0
| |
| * search: don't destroy/recreate search (sub)surfaceDaniel Eklöf2019-08-29-27/+9
| | | | | | | | | | | | 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).
| * search: move render() function to the 'render' moduleDaniel Eklöf2019-08-29-80/+59
| |
| * main: destroy sub-compositor at exitDaniel Eklöf2019-08-29-0/+2
| |
| * search: move wayland surface variables into the term structDaniel Eklöf2019-08-29-34/+49
| |