aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* 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
|
* search: use a sub-surface to render the search bufferDaniel Eklöf2019-08-29-14/+141
|
* render: reduce amount of dim while searching scrollback historyDaniel Eklöf2019-08-29-4/+10
|
* search: cancel existing selection when starting a new searchDaniel Eklöf2019-08-28-0/+1
|
* render: double-dim fg+bg when searching the scrollback bufferDaniel Eklöf2019-08-28-0/+2
| | | | | By toning down the screen content more, the selection (i.e. the search match) pops out much more.
* search: log search buffer at INFO levelDaniel Eklöf2019-08-28-1/+1
| | | | ... until we actually render the search buffer somehow
* main: log cell width/height at info level, not debugDaniel Eklöf2019-08-28-1/+1
| | | | | This complements the INFO logs from the renderer when the terminal is resized.
* Merge branch 'master' into scrollback-searchDaniel Eklöf2019-08-28-2/+46
|\
| * osc: xparsecolor: parse 'legacy' colorsDaniel Eklöf2019-08-28-2/+46
| |
* | input: call term_reset_view() instead of duplicating codeDaniel Eklöf2019-08-28-10/+3
| |
* | search: fix start/end row in selectionDaniel Eklöf2019-08-28-2/+16
| |
* | search: start search in current view, rather than from end-of-outputDaniel Eklöf2019-08-28-2/+4
| |
* | term: add term_reset_view() - make view follow end-of-output againDaniel Eklöf2019-08-28-0/+12
| |
* | README: document keyboard shortcuts related to scrollback searchingDaniel Eklöf2019-08-27-0/+9
| |
* | search: match case insensitiveDaniel Eklöf2019-08-27-2/+2
| |
* | search: sort includesDaniel Eklöf2019-08-27-1/+1
| |
* | search: disable log outputDaniel Eklöf2019-08-27-1/+1
| |
* | search: loop through the *entire* scrollback bufferDaniel Eklöf2019-08-27-2/+7
| |
* | selection: allow selections while searching scrollbackDaniel Eklöf2019-08-27-1/+4
| |
* | search: cancel selection and clear match stats when we don't matchDaniel Eklöf2019-08-27-0/+5
| |
* | search: 'len' is unused in release builds (it's only used in an assert)Daniel Eklöf2019-08-27-1/+1
| |
* | search: return early after committing a searchDaniel Eklöf2019-08-27-0/+1
| | | | | | | | | | This fixes an issue where the selection was finalized, but then cleared.
* | search: search_update() is always called at end of search_input()Daniel Eklöf2019-08-27-1/+0
| |
* | search: don't create a new selection when match start coords haven't changedDaniel Eklöf2019-08-27-2/+8
| |
* | input: cancel search on mouse button eventsDaniel Eklöf2019-08-27-0/+2
| |
* | main: free search bufferDaniel Eklöf2019-08-27-0/+2
| |
* | render: don't dim selection while searchingDaniel Eklöf2019-08-27-1/+1
| |
* | search: wip: initial search matchingDaniel Eklöf2019-08-27-3/+187
| | | | | | | | | | | | | | | | * match search buffer against scrollback content * adjust view to ensure matched content is visible * create selection on a successful match * finalize selection when user presses enter (to "commit" the search) * ctrl+r searches for the next match. Needs more work though.
* | search: wip: re-direct input while searching, and build a search bufferDaniel Eklöf2019-08-27-10/+160
|/ | | | | | | | | | | This adds a new state, 'is_searching'. While active, input is re-directed, and stored in a search buffer. In the future, we'll use this buffer and search for its content in the scrollback buffer, and move the view and create a selection on matches. When rendering in 'is_searching', everything is dimmed. In the future, we'll render the current search buffer on-top of the dimmed "regular" terminal output.
* render: center grid in windowDaniel Eklöf2019-08-27-31/+44
| | | | | Instead of placing the upper left corner of the grid at 0,0 in the window, center it.
* vt: tidy lazy initialization of escape parametersDaniel Eklöf2019-08-27-6/+6
|
* vt: no need to reset OSC string in CLEAR actionDaniel Eklöf2019-08-27-1/+0
| | | | ... as this is done when a new OSC string is started
* vt: store alt charset characters as wcharsDaniel Eklöf2019-08-27-9/+6
|
* vt: bug: fix lazy initialization of sub parameter value (off-by-one)Daniel Eklöf2019-08-24-2/+1
|
* vt: clear CSI parameters lazilyDaniel Eklöf2019-08-24-3/+11
| | | | | | | | | The CLEAR action is so common, that explicitly clearing the entire params array, which is kind of big, is too slow. Clear it lazily instead. Meaning, we only set 'idx' (count) to 0 in CLEAR. Then whenever we parse a parameter, clear the value and sub parameters.
* render: log frame rendering time with microseconds instead of millisecondsDaniel Eklöf2019-08-24-2/+2
|
* generate-alt-random-writes: reset SGR and scroll region at the endDaniel Eklöf2019-08-23-2/+2
|
* config: turn info log message into a debug log messageDaniel Eklöf2019-08-23-1/+1
|
* grid: remove commented out codeDaniel Eklöf2019-08-23-6/+1
|
* term: remove commented out codeDaniel Eklöf2019-08-23-27/+0
|
* colors: change default 'bright0' from 000000 -> 666666Daniel Eklöf2019-08-23-3/+3
|
* add config + command line option for setting initial window width/heightDaniel Eklöf2019-08-23-13/+56
|
* main: use slave's exit value as our exit valueDaniel Eklöf2019-08-23-0/+21
|
* render: change resize debug log message to an info log messageDaniel Eklöf2019-08-23-1/+1
|
* scrolling: optimize row access by assuming number of rows is a power of 2Daniel Eklöf2019-08-22-50/+101
| | | | | | | | | | | | | | | | | | | With this assumption, we can replace 'a % b' with 'a & (b - 1)'. In terms of instructions, this means a fast 'and' instead of a slow 'div'. Further optimize scrolling by: * not double-initializing empty rows. Previously, grid_row_alloc() called calloc(), which was then followed by a memset() when scrolling. This is of course unnecessary. * Don't loop the entire set of visible rows (this was done to ensure all visible rows had been allocated, and to prefetch the cell contents). This isn't necessary; only newly pulled in rows can be NULL. For now, don't prefetch at all.
* generate-alt-random-writes: generate color, scroll and scroll region sequencesDaniel Eklöf2019-08-22-13/+75
|
* PKGBUILD: profiling payload: random writes to the alt screenDaniel Eklöf2019-08-21-3/+6
|
* generate-alt-random-writes: script to generate payload for profilingDaniel Eklöf2019-08-21-0/+35
|
* PKGBUILD: prepare for profile guided compilationDaniel Eklöf2019-08-21-1/+6
|
* PKGBUILD: performance: build without stack protectorDaniel Eklöf2019-08-21-1/+1
|
* osc: add debug logs when colors are changed and resetDaniel Eklöf2019-08-21-1/+10
|
* term: rename colors256 -> tableDaniel Eklöf2019-08-21-25/+19
|
* term: use colors256 array for *all* colorsDaniel Eklöf2019-08-21-74/+22
| | | | | | 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.
* osc: fix indexing into 'bright' color arrayDaniel Eklöf2019-08-21-3/+3
|
* osc: implement "change color" commandsDaniel Eklöf2019-08-21-39/+205
| | | | | | | | | | | This implements OSC 4, 10, 11 - change <color>/foreground/background, and their corresponding 'query' variant (which was already implemented for OSC 10/11). It also implements OSC 104, 110, 111 - reset <color>/foreground/background. Set corresponding terminfo entries to signal this support to clients.
* render: multiply width/height with *new* scale factor, not oldDaniel Eklöf2019-08-21-2/+2
|
* csi: move 256-color table into the terminal structDaniel Eklöf2019-08-21-27/+30
|