| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| * | main: initialize scale to '1' | Daniel Eklöf | 2019-09-26 | -3/+2 | |
| | | | | | | | | | | | 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). | ||||
| * | input: take scale into account when converting mouse coords to row/col | Daniel Eklöf | 2019-08-30 | -2/+3 | |
| | | |||||
| * | input: bug: account for margins when converting mouse coords to row/col | Daniel Eklöf | 2019-08-30 | -2/+2 | |
| | | |||||
| * | input: call term_reset_view() instead of duplicating code | Daniel Eklöf | 2019-08-28 | -10/+3 | |
| | | |||||
| * | input: cancel search on mouse button events | Daniel Eklöf | 2019-08-27 | -0/+2 | |
| | | |||||
| * | search: wip: re-direct input while searching, and build a search buffer | Daniel Eklöf | 2019-08-27 | -3/+15 | |
| | | | | | | | | | | | | 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. | ||||
| * | 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/+22 | |
| | | | | | | When enabled, mouse scrolls in the alternate screen are converted to up/down key presses. | ||||
| * | input: remove debug output | Daniel Eklöf | 2019-08-15 | -1/+0 | |
| | | |||||
| * | 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/+7 | |
| | | |||||
| * | input: free previous XKB state when we get a new one | Daniel Eklöf | 2019-08-12 | -0/+20 | |
| | | |||||
| * | input: don't paste from primary if client is mouse tracking | Daniel Eklöf | 2019-08-09 | -1/+1 | |
| | | |||||
| * | selection/input: triple click selects an entire row | Daniel Eklöf | 2019-08-06 | -12/+22 | |
| | | |||||
| * | input: use a timer fd to handle keyboard key repeat | Daniel Eklöf | 2019-08-05 | -29/+39 | |
| | | | | | | | | | | | | 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 | -1/+2 | |
| | | | | | | When the user double-clicks with ctrl pressed, we now select the word under the cursor using spaces only as word separator. | ||||
| * | cell: pack more efficiently and store glyph as a wchar | Daniel Eklöf | 2019-08-02 | -24/+31 | |
| | | | | | | | | | | | | 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. | ||||
| * | input: fix 'comparison ... is always true' warning (clang) | Daniel Eklöf | 2019-07-30 | -3/+3 | |
| | | |||||
| * | input: use keyboard enter serial only for selection serial | Daniel Eklöf | 2019-07-30 | -7/+0 | |
| | | |||||
| * | input: generate escape sequences for "other" keys | Daniel Eklöf | 2019-07-26 | -6/+34 | |
| | | | | | | This corresponds to xterm's modifyOtherKeys option, though the code needs more testing and cleanup. | ||||
| * | mouse: use discrete axis event if available | Daniel Eklöf | 2019-07-26 | -22/+33 | |
| | | | | | This improves the scroll experience with certain devices | ||||
| * | input: store last seen wayland input serial | Daniel Eklöf | 2019-07-19 | -1/+10 | |
| | | | | | We need this for clipboard data | ||||
| * | selection: implement double-click-to-select-word | Daniel Eklöf | 2019-07-17 | -4/+24 | |
| | | |||||
| * | csi: implement FocusIn/Out events | Daniel Eklöf | 2019-07-16 | -0/+2 | |
| | | |||||
| * | Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhere | Daniel Eklöf | 2019-07-15 | -3/+4 | |
| | | |||||
| * | input: cancel selection on any mouse *except* BTN_LEFT | Daniel Eklöf | 2019-07-11 | -1/+1 | |
| | | |||||
| * | selection: implement copy *to* primary | Daniel Eklöf | 2019-07-11 | -1/+1 | |
| | | |||||
| * | selection: add selection_from_primary() API (stub for now) | Daniel Eklöf | 2019-07-11 | -1/+4 | |
| | | |||||
| * | selection: add support for pasting from clipboard | Daniel Eklöf | 2019-07-11 | -0/+5 | |
| | | |||||
| * | selection: initial copy-to-clipboard functionality | Daniel Eklöf | 2019-07-11 | -0/+7 | |
| | | |||||
| * | input: call selection_finalize() when BTN_LEFT is released | Daniel Eklöf | 2019-07-11 | -0/+2 | |
| | | |||||
| * | input: ignore mouse motion outside our window | Daniel Eklöf | 2019-07-11 | -0/+3 | |
| | | |||||
| * | selection: add a selection API | Daniel Eklöf | 2019-07-11 | -28/+17 | |
| | | |||||
| * | selection: only left button can be used for selection | Daniel Eklöf | 2019-07-11 | -6/+14 | |
| | | |||||
| * | selection: selections can be made, and are rendered | Daniel Eklöf | 2019-07-11 | -0/+21 | |
| | | | | | | | | * Start selection on mouse button down * Update selection on motion * Button release cancels selection if there were no motion after start * Renderer detects cells inside the selection and inverts their colors | ||||
| * | input: generate BTN_BACK/BTN_FORWARD mouse down events when scrolling | Daniel Eklöf | 2019-07-10 | -2/+14 | |
| | | |||||
| * | scrollback: initial support for mouse scrolling | Daniel Eklöf | 2019-07-10 | -2/+14 | |
| | | |||||
| * | wip: initial scroll back support | Daniel Eklöf | 2019-07-09 | -0/+27 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Can scroll up and down, and stops when the beginning/end of history is reached. However, it probably breaks when the entire scrollback buffer has been filled - we need to detect when the view has wrapped around to the current terminal offset. The detection of when we've reached the bottom of the history is also flawed, and only works when we overshoot the bottom with at least a page. Resizing the windows while in a view most likely doesn't work. The view will not detect a wrapped around scrollback buffer. I.e. if the user has scrolled back, and is stationary at a view, but there is still output being produced. Then eventually the scrollback buffer will wrap around. In this case, the correct thing to do is make the view start following the beginning of the history. Right now it doesn't, meaning once the scrollback buffer wraps around, you'll start seeing command output... | ||||
| * | input: split up keymap | Daniel Eklöf | 2019-07-09 | -12/+15 | |
| | | | | | | | This makes the top level table smaller, and faster to search through. Eventually, we could do something fancy, like b-search the top level table. | ||||
| * | input: implement keypad application mode | Daniel Eklöf | 2019-07-09 | -108/+33 | |
| | | | | | | This commit also replaces the previous (temporary) key map with a much more complete one. | ||||
| * | terminal: rename and redefine cursor keys mode and keypad keys mode | Daniel Eklöf | 2019-07-09 | -2/+2 | |
| | | |||||
| * | input: add support for dead keys (composing) | Daniel Eklöf | 2019-07-09 | -3/+25 | |
| | | |||||
| * | input: bug: row is calculated from the cell *height*, not width | Daniel Eklöf | 2019-07-05 | -3/+3 | |
| | | |||||
| * | vt: add support for mouse motion reports | Daniel Eklöf | 2019-07-05 | -39/+43 | |
| | | |||||
| * | vt: add support for \E[?1000h - report mouse button events | Daniel Eklöf | 2019-07-05 | -4/+34 | |
| | | |||||
| * | input: mouse events | Daniel Eklöf | 2019-07-05 | -0/+80 | |
| | | |||||
| * | logging: disable debug logging by default | Daniel Eklöf | 2019-07-03 | -1/+1 | |
| | | |||||
| * | vt: implement DECCKM (cursor key sends either SS3 or CSI escapes) | Daniel Eklöf | 2019-06-23 | -25/+24 | |
| | | |||||
| * | input: reduce utf8 buffer size | Daniel Eklöf | 2019-06-22 | -1/+3 | |
| | | |||||
| * | input: add a key mapping table, mapping key syms to escape sequences | Daniel Eklöf | 2019-06-22 | -12/+123 | |
| | | | | | At the same time, also add support for the shift modifier. | ||||
| * | input: stop key repeater when input focus is lost | Daniel Eklöf | 2019-06-21 | -3/+7 | |
| | | |||||
| * | wip: initial input handling | Daniel Eklöf | 2019-06-19 | -0/+173 | |
