| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | README: describe ctrl+w while scrollback searching | Daniel Eklöf | 2019-12-03 | -0/+6 | |
| | | | |||||
| | * | search: map ctrl+w to 'extend current selection to end of word' | Daniel Eklöf | 2019-12-03 | -0/+75 | |
| | | | | | | | | | | | | | | | If the user has started a scrollback search and have some matching text, he can now press ctrl+w to extend that selection (and thus the search criteria too) to the end of the current word, or to the end of the next word if currently at a word separating character. | ||||
| | * | search: discard canceled compose sequences | Daniel Eklöf | 2019-12-03 | -0/+2 | |
| | | | |||||
| | * | Revert "search: discard canceled compose sequences" | Daniel Eklöf | 2019-12-03 | -4/+0 | |
| | | | | | | | | | This reverts commit f67733c0e3a4e4ba19e1c70bc36ee78af762868f. | ||||
| | * | search: discard canceled compose sequences | Daniel Eklöf | 2019-12-03 | -0/+4 | |
| | | | |||||
| | * | search: remove debug log | Daniel Eklöf | 2019-12-03 | -1/+0 | |
| | | | |||||
| | * | search: don't line-wrap unless we actually have a match on the next row | Daniel Eklöf | 2019-12-03 | -4/+6 | |
| | | | | | | | | | | | | | | | | | When matching characters, we moved on to next row directly after matching the last character in a row. This was wrong since if that last character was the last matching character, we tried to create a selection that was on the wrong row. | ||||
| | * | search: break out search buffer resize code to a new function | Daniel Eklöf | 2019-12-03 | -12/+21 | |
| | | | |||||
| | * | selection: break out isword() to a new file | Daniel Eklöf | 2019-12-03 | -21/+32 | |
| |/ | |||||
| * | input: discard canceled compose sequences | Daniel Eklöf | 2019-12-02 | -0/+2 | |
| | | |||||
| * | Merge branch 'fcft-0.2.0' | Daniel Eklöf | 2019-12-01 | -29/+26 | |
| |\ | |||||
| | * | PKGBUILD: tllist is only a make dependency, bump fcft to 0.2.0 | Daniel Eklöf | 2019-12-01 | -2/+2 | |
| | | | |||||
| | * | meson: require fcft 0.2.0 | Daniel Eklöf | 2019-12-01 | -1/+1 | |
| | | | |||||
| | * | fcft: fixup | Daniel Eklöf | 2019-12-01 | -0/+0 | |
| | | | |||||
| | * | Add missing includes | Daniel Eklöf | 2019-12-01 | -0/+3 | |
| | | | |||||
| | * | fcft: font_from_name() no longer accepts a tllist | Daniel Eklöf | 2019-12-01 | -26/+20 | |
| | | | |||||
| | * | fcft: bump to 0.2.0 | Daniel Eklöf | 2019-12-01 | -0/+0 | |
| |/ | |||||
| * | meson: fcft: version must be 0.1.x | Daniel Eklöf | 2019-12-01 | -1/+1 | |
| | | |||||
| * | fcft: bump | Daniel Eklöf | 2019-12-01 | -0/+0 | |
| | | |||||
| * | PKGBUILD/meson: add version requirements to tllist+fcft | Daniel Eklöf | 2019-12-01 | -4/+4 | |
| | | |||||
| * | fcft: bump | Daniel Eklöf | 2019-12-01 | -0/+0 | |
| | | |||||
| * | fcft: bump | Daniel Eklöf | 2019-12-01 | -0/+0 | |
| | | |||||
| * | PKGBUILD: don't allow subproject fallback | Daniel Eklöf | 2019-12-01 | -1/+1 | |
| | | |||||
| * | meson: tllist/fcft: use system dependency first, fallback to subprojects | Daniel Eklöf | 2019-12-01 | -14/+3 | |
| | | |||||
| * | meson/PKGBUILD: we no longer depend directly on fontconfig/freetype | Daniel Eklöf | 2019-12-01 | -8/+2 | |
| | | |||||
| * | PKGBUILD: strip extra git revision data from checked in PKGBUILD | Daniel Eklöf | 2019-12-01 | -1/+1 | |
| | | |||||
| * | fcft: include <fcft/fcft.h>, and use fcft/stride.h instead of local copy | Daniel Eklöf | 2019-12-01 | -13/+4 | |
| | | |||||
| * | README: add tllist and fcft to list of required libraries | Daniel Eklöf | 2019-12-01 | -0/+2 | |
| | | |||||
| * | PKGBUILD: add tllist and fcft dependencies | Daniel Eklöf | 2019-12-01 | -1/+2 | |
| | | |||||
| * | meson: tllist/fcft: oops, forgot to set 'required: false' | Daniel Eklöf | 2019-12-01 | -2/+2 | |
| | | |||||
| * | Merge branch 'use-fcft' | Daniel Eklöf | 2019-12-01 | -1510/+31 | |
| |\ | |||||
| | * | PKGBUILD: don't error out on missing profile data count files | Daniel Eklöf | 2019-12-01 | -5/+1 | |
| | | | |||||
| | * | fcft: use fcft instead of local copy of font.c/font.h | Daniel Eklöf | 2019-12-01 | -8/+22 | |
| | | | |||||
| | * | meson: tllist: try subproject first, then fallback to system dependency | Daniel Eklöf | 2019-12-01 | -1/+6 | |
| | | | |||||
| | * | tllist: add git submodule directly under subprojects | Daniel Eklöf | 2019-12-01 | -0/+3 | |
| | | | |||||
| | * | tllist: remove git submodule and local copy under subprojects | Daniel Eklöf | 2019-12-01 | -1497/+0 | |
| |/ | |||||
| * | font: log fontconfig/freetype version when debug logging has been enabled | Daniel Eklöf | 2019-12-01 | -0/+20 | |
| | | |||||
| * | Revert "font: ceil:ing the top value seems to look better when scaled" | Daniel Eklöf | 2019-12-01 | -1/+1 | |
| | | | | | This reverts commit 95d97b39734026e05f47b2064fe686da1ae40d20. | ||||
| * | font: ceil:ing the top value seems to look better when scaled | Daniel Eklöf | 2019-11-30 | -1/+1 | |
| | | |||||
| * | font: fix estimated underline thickness; descent is typically negative | Daniel Eklöf | 2019-11-30 | -1/+1 | |
| | | |||||
| * | term: mouse reporting functions no longer take modifier state | Daniel Eklöf | 2019-11-30 | -20/+26 | |
| | | | | | | | | | | | | | | | | | The mouse reporting functions are called from input when we receive Wayland mouse events. We used to pass the current keyboard modifier (shift, alt, ctrl, etc) to the terminal functions. This however is wrong, since we may receive Wayland mouse events without having keyboard focus. When we don't have keyboard focus, the modifier state doesn't apply to us. Remove the modifier arguments from the terminal mouse reporting functions. These functions now read this state directly instead, but only when the terminal instance in question has keyboard focus. | ||||
| * | term: add term_mouse_grabbed() | Daniel Eklöf | 2019-11-30 | -30/+17 | |
| | | | | | | | When this returns true, it means we have keyboard focus and are grabbing the mouse (for e.g. selections), regardless of whether the client has enabled mouse tracking or not. | ||||
| * | commands: scrollback: don't scrollback if mouse tracking is enabled | Daniel Eklöf | 2019-11-30 | -0/+3 | |
| | | |||||
| * | input: doh! mouse_scroll: first argument to keyboard_key() is a struct wayland | Daniel Eklöf | 2019-11-30 | -2/+2 | |
| | | | | | This is the problem with void* user data pointers in callbacks... | ||||
| * | commands: scrollback: don't scrollback if mouse tracking is enabled | Daniel Eklöf | 2019-11-30 | -0/+3 | |
| | | |||||
| * | input: mouse_scroll: cache XKB_KEY_Up and XKB_KEY_Down | Daniel Eklöf | 2019-11-30 | -2/+9 | |
| | | |||||
| * | term: "raw" mouse mode requires shift only to be pressed | Daniel Eklöf | 2019-11-30 | -3/+12 | |
| | | |||||
| * | render: fix underline/strikeout positioning | Daniel Eklöf | 2019-11-30 | -19/+21 | |
| | | | | | | | | | | | | | There were two errors: * We subtracted half the line width instead of adding it to the baseline * We rounded the line positioning and thickness before the positioning calculation. In particular, rounding the thickness before using it to adjust the position was wrong. Now we round just before the pixman call. | ||||
| * | render: font_baseline(): simply use the primary font's ascent | Daniel Eklöf | 2019-11-30 | -16/+4 | |
| | | | | | | | This is what we used as baseline for regular glyphs anyway. Thus, we can update that code to call font_baseline() now. This makes it easier to change how we define the baseline in the future. | ||||
| * | font: bug: bad multiplier when converting from 16.16 fixed float | Daniel Eklöf | 2019-11-30 | -1/+1 | |
| | | |||||
| * | term: define xcursor strings as global variables | Daniel Eklöf | 2019-11-30 | -3/+7 | |
| | | |||||
| * | font: cache_size -> glyph_cache_size | Daniel Eklöf | 2019-11-30 | -4/+4 | |
| | | | | | This makes it more clear it has nothing to do with the font cache. | ||||
| * | font: destructor: pop elements as we go | Daniel Eklöf | 2019-11-30 | -1/+1 | |
| | | | | | Otherwise we'll end up free:ing the same font over and over again. | ||||
| * | font: original -> requested | Daniel Eklöf | 2019-11-30 | -8/+8 | |
| | | |||||
| * | font: log freetype errors | Daniel Eklöf | 2019-11-30 | -3/+19 | |
| | | |||||
| * | wayland: track current xcursor, and don't update if same | Daniel Eklöf | 2019-11-30 | -0/+11 | |
| | | | | | | | | | | | | | | | | We may have many windows open, which tries to update/change the xcursor at various points. Track which cursor is currently loaded, regardless of which window it was set by. If someone tries to load that very same xcursor again, simply skip it. One example is when we've moused over a window that does *not* have keyboard focus, and then the user clicks, or by some other mean gives that window keyboard focus. In many cases it will then try to set the same cursor again (most of the times, the cursor is the same regardless of keyboard focus, but not always). | ||||
| * | input: update xcursor on terminal with *keyboard* focus when modifiers change | Daniel Eklöf | 2019-11-30 | -4/+2 | |
| | | |||||
| * | term: xcursor: use selection_enabled() | Daniel Eklöf | 2019-11-30 | -2/+1 | |
| | | | | | | | | | Instead of duplicating the code from selection_enabled() that deals with forced selection, just call selection_enabled(). This was previously not possible since selection_enabled() didn't require keyboard_focus. Now it does. | ||||
| * | selection: forced selection requires keyboard focus | Daniel Eklöf | 2019-11-30 | -1/+12 | |
| | | | | | | | | | | | Up the requirements for enabling "forced" selection (that is, allowing selections even though mouse tracking has been disabled). * Require keyboard focus (if we don't have it, then the shift-key isn't is for us) * Don't just require shift being pressed, but that all other modifiers are *not* pressed. | ||||
| * | vt: don't try to move cursor outside the terminal | Daniel Eklöf | 2019-11-29 | -7/+11 | |
| | | | | | | | | | | When we insert an auto-newline, we must make sure we don't try to move outside the terminal window. This can for example happen when a scrolling region have been configured, and the cursor is **outside** the scrolling region (i.e. it's in the bottom margin). | ||||
| * | term: reset: set 'origin' to ORIGIN_ABSOLUTE | Daniel Eklöf | 2019-11-29 | -0/+1 | |
| | | |||||
| * | font: never set glyph->cols to something that is less than 0 | Daniel Eklöf | 2019-11-29 | -1/+4 | |
| | | |||||
| * | vt: fix memory corruption: wcwidth() may return -1 | Daniel Eklöf | 2019-11-29 | -12/+14 | |
| | | | | | | When it did, we called print_insert() with that, which in turn resulted in a too large size value passed to memmove. | ||||
| * | csi/vt: don't bad client data as errors | Daniel Eklöf | 2019-11-29 | -2/+2 | |
| | | | | | This gets rid of spam when cat:ing binary data. | ||||
| * | vt: only define esc_as_string() when debug logging has been enabled | Daniel Eklöf | 2019-11-29 | -0/+2 | |
| | | |||||
| * | vt: disable logging BELL | Daniel Eklöf | 2019-11-29 | -2/+2 | |
| | | |||||
| * | csi/ocs/vt: log unhandled/unrecognized sequences as debug messages | Daniel Eklöf | 2019-11-29 | -4/+4 | |
| | | | | | | | | | Having them as error messages was nice when we where still missing lots of sequences. Now we don't anymore, and these just spam stdout as well as syslog when e.g. cat:ing binary data. | ||||
| * | vt: there are actually many state transitions that are no-ops | Daniel Eklöf | 2019-11-29 | -1/+0 | |
| | | | | | | | In most states, most 8-bit values are no-ops. This is already handled; action() recognizes ACTION_NONE as a no-op. Thus, all we need to do is remove the assertion. | ||||
| * | term: reset: don't access rows directly | Daniel Eklöf | 2019-11-29 | -2/+2 | |
| | | | | | | | | We've just re-set the grid offsets, meaning rows 0..term->rows may not all have been initialized. Call grid_row_and_alloc() to ensure they are. | ||||
| * | term: xcursor: use 'hand2' instead of 'left_ptr' when mouse tracking | Daniel Eklöf | 2019-11-29 | -15/+7 | |
| | | | | | | Mouse tracking always reports clicks, so using a cursor that suggests you can click makes sense I think. | ||||
| * | term: xcursor cleanup | Daniel Eklöf | 2019-11-29 | -4/+11 | |
| | | | | | | | | | | | Show 'text' cursor when: * we have no mouse tracking enabled * forced selection has been enabled (shift being held down) * We're *not* scrollback searching In all other cases, show the 'left_ptr' cursor. | ||||
| * | input: pointer-leave: reset moused *before* doing anything else | Daniel Eklöf | 2019-11-29 | -3/+8 | |
| | | | | | And update xcursor. This is currently not necessary, but doesn't hurt. | ||||
| * | input: pointer-enter: add debug log | Daniel Eklöf | 2019-11-29 | -0/+2 | |
| | | |||||
| * | input: keyboard_leave: reset focused *before* doing anything else | Daniel Eklöf | 2019-11-29 | -4/+6 | |
| | | | | | | | And update xcursor. This is necessary since we may still have mouse focus. But without keyboard focus, we don't display the 'text' xcursor. | ||||
| * | search: update xcursor when starting and ending a search | Daniel Eklöf | 2019-11-29 | -0/+2 | |
| | | |||||
| * | wayland: terminal_from_surface: recognize scrollback search surfaces | Daniel Eklöf | 2019-11-29 | -1/+5 | |
| | | | | | | This fixes an assertion when hovering over the input field for scrollback searches. | ||||
| * | wayland: always flush after dispatching messages | Daniel Eklöf | 2019-11-29 | -1/+1 | |
| | | | | | This means we don't have to e.g. roundtrip when setting the cursor. | ||||
| * | doc: foot.1: mention that selection is kept after ending a scrollback search | Daniel Eklöf | 2019-11-29 | -1/+2 | |
| | | |||||
| * | font: add missing ';' | Daniel Eklöf | 2019-11-28 | -1/+1 | |
| | | |||||
| * | font: use pixelsizefixupfactor on regular bitmap fonts too, if set | Daniel Eklöf | 2019-11-28 | -12/+9 | |
| | | | | | | But if it isn't set, only estimate it if the font is a *scalable* non-outline (bitmap) font. | ||||
| * | osc 52: default to 'clipboard' if no source/target has been specified | Daniel Eklöf | 2019-11-28 | -12/+26 | |
| | | |||||
| * | input: keyboard/pointer_leave: warn if we didn't see corresponding enter event | Daniel Eklöf | 2019-11-28 | -0/+10 | |
| | | |||||
| * | input: keyboard/pointer_enter: assert surface != NULL | Daniel Eklöf | 2019-11-28 | -0/+5 | |
| | | |||||
| * | terminal: use the 'text' xcursor pointer whenever selection is possible | Daniel Eklöf | 2019-11-28 | -33/+69 | |
| | | |||||
| * | input: pointer_button: apply same workaround as in pointer_motion | Daniel Eklöf | 2019-11-28 | -1/+18 | |
| | | | | | | Sway 1.2 has been seen to send pointer_button events without first having sent pointer_enter. | ||||
| * | input: sway 1.2 bug: keyboard_leave() called with surface == NULL | Daniel Eklöf | 2019-11-28 | -2/+4 | |
| | | |||||
| * | render: fix rendering of cursor when cell is reversed | Daniel Eklöf | 2019-11-28 | -13/+19 | |
| | | | | | | | When the user had configured the cursor color, we failed to invert (reverse) the foreground and background color when the cursor was on a cell with the 'reverse' attribute set. | ||||
| * | async: first synchronous write may succeed partially | Daniel Eklöf | 2019-11-28 | -6/+9 | |
| | | | | | | | | | | When trying to write (to e.g. the slave, or to a clipboard receiver), we first try to send the data synchronously, and only if that fails do we switch to asynchronous mode. However, the first synchronous may (in fact, is likely to) succeed partially. | ||||
| * | font: set pixman filter when re-scaling glyph | Daniel Eklöf | 2019-11-27 | -14/+5 | |
| | | |||||
| * | generate-version: redirect *both* stdout and stderr to /dev/null | Daniel Eklöf | 2019-11-27 | -1/+1 | |
| | | |||||
| * | font: estimate pixel size fixup when not provided by fontconfig | Daniel Eklöf | 2019-11-26 | -25/+73 | |
| | | | | | | | But only do this when the font is scalable but not an outline. This is only true for color bitmap fonts (emoji fonts), and not e.g. regular bitmap fonts. | ||||
| * | font: use DPI=75 if there's no DPI attribute from fontconfig | Daniel Eklöf | 2019-11-26 | -1/+1 | |
| | | | | | This is the fontconfig default as well | ||||
| * | font: underline/strikeout: use y-scale, not x-scale | Daniel Eklöf | 2019-11-26 | -9/+9 | |
| | | |||||
| * | font: pass dpi=96 to fontconfig | Daniel Eklöf | 2019-11-26 | -8/+8 | |
| | | | | | TODO: use actual output PPI. Question is *which* output... | ||||
| * | wayland: calculate output PPI (pixels-per-inch) | Daniel Eklöf | 2019-11-26 | -3/+12 | |
| | | |||||
| * | font: move metrics from terminal struct to font struct | Daniel Eklöf | 2019-11-26 | -34/+35 | |
| | | |||||
| * | font: cleanup and return error when failing to load font file | Daniel Eklöf | 2019-11-25 | -1/+4 | |
| | | |||||
| * | font: use FT_Set_Pixel_Sizes() instead of FT_Set_Char_Size() | Daniel Eklöf | 2019-11-25 | -2/+8 | |
| | | | | | Since we're working with pixel sizes anyway... | ||||
| * | gitignore: makepkg generated directories (pkg + src) | Daniel Eklöf | 2019-11-24 | -1/+3 | |
| | | |||||
| * | Merge branch 'dont-use-git-submodules-in-subprojects' | Daniel Eklöf | 2019-11-24 | -2/+606 | |
| |\ | |||||
