aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
| * README: describe ctrl+w while scrollback searchingDaniel Eklöf2019-12-03-0/+6
| |
| * search: map ctrl+w to 'extend current selection to end of word'Daniel Eklöf2019-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 sequencesDaniel Eklöf2019-12-03-0/+2
| |
| * Revert "search: discard canceled compose sequences"Daniel Eklöf2019-12-03-4/+0
| | | | | | | | This reverts commit f67733c0e3a4e4ba19e1c70bc36ee78af762868f.
| * search: discard canceled compose sequencesDaniel Eklöf2019-12-03-0/+4
| |
| * search: remove debug logDaniel Eklöf2019-12-03-1/+0
| |
| * search: don't line-wrap unless we actually have a match on the next rowDaniel Eklöf2019-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 functionDaniel Eklöf2019-12-03-12/+21
| |
| * selection: break out isword() to a new fileDaniel Eklöf2019-12-03-21/+32
|/
* input: discard canceled compose sequencesDaniel Eklöf2019-12-02-0/+2
|
* Merge branch 'fcft-0.2.0'Daniel Eklöf2019-12-01-29/+26
|\
| * PKGBUILD: tllist is only a make dependency, bump fcft to 0.2.0Daniel Eklöf2019-12-01-2/+2
| |
| * meson: require fcft 0.2.0Daniel Eklöf2019-12-01-1/+1
| |
| * fcft: fixupDaniel Eklöf2019-12-01-0/+0
| |
| * Add missing includesDaniel Eklöf2019-12-01-0/+3
| |
| * fcft: font_from_name() no longer accepts a tllistDaniel Eklöf2019-12-01-26/+20
| |
| * fcft: bump to 0.2.0Daniel Eklöf2019-12-01-0/+0
|/
* meson: fcft: version must be 0.1.xDaniel Eklöf2019-12-01-1/+1
|
* fcft: bumpDaniel Eklöf2019-12-01-0/+0
|
* PKGBUILD/meson: add version requirements to tllist+fcftDaniel Eklöf2019-12-01-4/+4
|
* fcft: bumpDaniel Eklöf2019-12-01-0/+0
|
* fcft: bumpDaniel Eklöf2019-12-01-0/+0
|
* PKGBUILD: don't allow subproject fallbackDaniel Eklöf2019-12-01-1/+1
|
* meson: tllist/fcft: use system dependency first, fallback to subprojectsDaniel Eklöf2019-12-01-14/+3
|
* meson/PKGBUILD: we no longer depend directly on fontconfig/freetypeDaniel Eklöf2019-12-01-8/+2
|
* PKGBUILD: strip extra git revision data from checked in PKGBUILDDaniel Eklöf2019-12-01-1/+1
|
* fcft: include <fcft/fcft.h>, and use fcft/stride.h instead of local copyDaniel Eklöf2019-12-01-13/+4
|
* README: add tllist and fcft to list of required librariesDaniel Eklöf2019-12-01-0/+2
|
* PKGBUILD: add tllist and fcft dependenciesDaniel Eklöf2019-12-01-1/+2
|
* meson: tllist/fcft: oops, forgot to set 'required: false'Daniel Eklöf2019-12-01-2/+2
|
* Merge branch 'use-fcft'Daniel Eklöf2019-12-01-1510/+31
|\
| * PKGBUILD: don't error out on missing profile data count filesDaniel Eklöf2019-12-01-5/+1
| |
| * fcft: use fcft instead of local copy of font.c/font.hDaniel Eklöf2019-12-01-8/+22
| |
| * meson: tllist: try subproject first, then fallback to system dependencyDaniel Eklöf2019-12-01-1/+6
| |
| * tllist: add git submodule directly under subprojectsDaniel Eklöf2019-12-01-0/+3
| |
| * tllist: remove git submodule and local copy under subprojectsDaniel Eklöf2019-12-01-1497/+0
|/
* font: log fontconfig/freetype version when debug logging has been enabledDaniel Eklöf2019-12-01-0/+20
|
* Revert "font: ceil:ing the top value seems to look better when scaled"Daniel Eklöf2019-12-01-1/+1
| | | | This reverts commit 95d97b39734026e05f47b2064fe686da1ae40d20.
* font: ceil:ing the top value seems to look better when scaledDaniel Eklöf2019-11-30-1/+1
|
* font: fix estimated underline thickness; descent is typically negativeDaniel Eklöf2019-11-30-1/+1
|
* term: mouse reporting functions no longer take modifier stateDaniel Eklöf2019-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öf2019-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 enabledDaniel Eklöf2019-11-30-0/+3
|
* input: doh! mouse_scroll: first argument to keyboard_key() is a struct waylandDaniel Eklöf2019-11-30-2/+2
| | | | This is the problem with void* user data pointers in callbacks...
* commands: scrollback: don't scrollback if mouse tracking is enabledDaniel Eklöf2019-11-30-0/+3
|
* input: mouse_scroll: cache XKB_KEY_Up and XKB_KEY_DownDaniel Eklöf2019-11-30-2/+9
|
* term: "raw" mouse mode requires shift only to be pressedDaniel Eklöf2019-11-30-3/+12
|
* render: fix underline/strikeout positioningDaniel Eklöf2019-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 ascentDaniel Eklöf2019-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 floatDaniel Eklöf2019-11-30-1/+1
|
* term: define xcursor strings as global variablesDaniel Eklöf2019-11-30-3/+7
|
* font: cache_size -> glyph_cache_sizeDaniel Eklöf2019-11-30-4/+4
| | | | This makes it more clear it has nothing to do with the font cache.
* font: destructor: pop elements as we goDaniel Eklöf2019-11-30-1/+1
| | | | Otherwise we'll end up free:ing the same font over and over again.
* font: original -> requestedDaniel Eklöf2019-11-30-8/+8
|
* font: log freetype errorsDaniel Eklöf2019-11-30-3/+19
|
* wayland: track current xcursor, and don't update if sameDaniel Eklöf2019-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 changeDaniel Eklöf2019-11-30-4/+2
|
* term: xcursor: use selection_enabled()Daniel Eklöf2019-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 focusDaniel Eklöf2019-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 terminalDaniel Eklöf2019-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_ABSOLUTEDaniel Eklöf2019-11-29-0/+1
|
* font: never set glyph->cols to something that is less than 0Daniel Eklöf2019-11-29-1/+4
|
* vt: fix memory corruption: wcwidth() may return -1Daniel Eklöf2019-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 errorsDaniel Eklöf2019-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 enabledDaniel Eklöf2019-11-29-0/+2
|
* vt: disable logging BELLDaniel Eklöf2019-11-29-2/+2
|
* csi/ocs/vt: log unhandled/unrecognized sequences as debug messagesDaniel Eklöf2019-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-opsDaniel Eklöf2019-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 directlyDaniel Eklöf2019-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 trackingDaniel Eklöf2019-11-29-15/+7
| | | | | Mouse tracking always reports clicks, so using a cursor that suggests you can click makes sense I think.
* term: xcursor cleanupDaniel Eklöf2019-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 elseDaniel Eklöf2019-11-29-3/+8
| | | | And update xcursor. This is currently not necessary, but doesn't hurt.
* input: pointer-enter: add debug logDaniel Eklöf2019-11-29-0/+2
|
* input: keyboard_leave: reset focused *before* doing anything elseDaniel Eklöf2019-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 searchDaniel Eklöf2019-11-29-0/+2
|
* wayland: terminal_from_surface: recognize scrollback search surfacesDaniel Eklöf2019-11-29-1/+5
| | | | | This fixes an assertion when hovering over the input field for scrollback searches.
* wayland: always flush after dispatching messagesDaniel Eklöf2019-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 searchDaniel Eklöf2019-11-29-1/+2
|
* font: add missing ';'Daniel Eklöf2019-11-28-1/+1
|
* font: use pixelsizefixupfactor on regular bitmap fonts too, if setDaniel Eklöf2019-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 specifiedDaniel Eklöf2019-11-28-12/+26
|
* input: keyboard/pointer_leave: warn if we didn't see corresponding enter eventDaniel Eklöf2019-11-28-0/+10
|
* input: keyboard/pointer_enter: assert surface != NULLDaniel Eklöf2019-11-28-0/+5
|
* terminal: use the 'text' xcursor pointer whenever selection is possibleDaniel Eklöf2019-11-28-33/+69
|
* input: pointer_button: apply same workaround as in pointer_motionDaniel Eklöf2019-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 == NULLDaniel Eklöf2019-11-28-2/+4
|
* render: fix rendering of cursor when cell is reversedDaniel Eklöf2019-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 partiallyDaniel Eklöf2019-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 glyphDaniel Eklöf2019-11-27-14/+5
|
* generate-version: redirect *both* stdout and stderr to /dev/nullDaniel Eklöf2019-11-27-1/+1
|
* font: estimate pixel size fixup when not provided by fontconfigDaniel Eklöf2019-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 fontconfigDaniel Eklöf2019-11-26-1/+1
| | | | This is the fontconfig default as well
* font: underline/strikeout: use y-scale, not x-scaleDaniel Eklöf2019-11-26-9/+9
|
* font: pass dpi=96 to fontconfigDaniel Eklöf2019-11-26-8/+8
| | | | TODO: use actual output PPI. Question is *which* output...
* wayland: calculate output PPI (pixels-per-inch)Daniel Eklöf2019-11-26-3/+12
|
* font: move metrics from terminal struct to font structDaniel Eklöf2019-11-26-34/+35
|
* font: cleanup and return error when failing to load font fileDaniel Eklöf2019-11-25-1/+4
|
* font: use FT_Set_Pixel_Sizes() instead of FT_Set_Char_Size()Daniel Eklöf2019-11-25-2/+8
| | | | Since we're working with pixel sizes anyway...
* gitignore: makepkg generated directories (pkg + src)Daniel Eklöf2019-11-24-1/+3
|
* Merge branch 'dont-use-git-submodules-in-subprojects'Daniel Eklöf2019-11-24-2/+606
|\