summaryrefslogtreecommitdiffstats
path: root/screen.c
AgeCommit message (Collapse)Author
2020-04-15Merge branch 'obsd-master'Thomas Adam
2020-04-15Use grid_empty_line rather than memset when adding new lines on resize.nicm
Also remove some old test code.
2020-04-07Merge branch 'obsd-master'Thomas Adam
2020-04-07Do not restore history flag if it was never set.nicm
2020-03-31Merge branch 'obsd-master'Thomas Adam
2020-03-31Move alternate screen into the screen rather than the pane.nicm
2020-02-05Merge branch 'obsd-master'Thomas Adam
2020-02-05Make list-keys description clearer in tmux.1 and remove an unused variable.nicm
2020-02-03Merge branch 'obsd-master'Thomas Adam
2020-02-03Instead of passing titles through vis() which doubles backslashes, justnicm
ignore any containing control characters or invalid UTF-8. GitHub issue 2070.
2019-11-15Merge branch 'obsd-master'Thomas Adam
2019-11-15Handle OSC 7 (a VTE extension) and put the result in a new format (pane_path).nicm
2019-04-02Merge branch 'obsd-master'Thomas Adam
2019-04-02Store and restore cursor across reflow by working out a position basednicm
on unwrapped lines, rather than a grid offset. Fixes problems reported by Thomas Sattler and Paul de Weerd.
2019-03-20Merge branch 'obsd-master'Thomas Adam
2019-03-20Improve cursor positioning after reflow by storing the position as annicm
offset into the entire history before reflow and restoring it aftewards.
2019-01-15Merge branch 'obsd-master'Thomas Adam
2019-01-15Do not highlight characters which will not be copied, reported bynicm
Jaroslaw Rzeszotko.
2018-07-31Merge branch 'obsd-master'Thomas Adam
2018-07-31Move struct screen_sel into screen.c and tidy up members that are onlynicm
used by copy mode.
2018-07-04Merge branch 'obsd-master'Thomas Adam
2018-07-04Add accessors for grid linedata member, for some future work. From Dannicm
Aloni.
2017-11-15Merge branch 'obsd-master'Thomas Adam
2017-11-15Completely rewrite the reflow code to correctly handle double widthnicm
characters (previously they were not accounted for).
2017-11-02Merge branch 'obsd-master'Thomas Adam
2017-11-02There is no point in reflowing panes which have not changed width.nicm
2017-10-06Merge branch 'obsd-master'Thomas Adam
2017-10-05Add support for the xterm(1) title stack, from Brad Town, GitHub issuenicm
1075.
2017-06-05Linux build fixesThomas Adam
Linux doesn't have vis.h
2017-06-04Be more strict about escape sequences that rename windows or set titles:nicm
ignore any that not valid UTF-8 outright, and for good measure pass the result through our UTF-8-aware vis(3).
2017-02-08Collect sequences of printable ASCII characters and process themnicm
together instead of handling them one by one. This is significantly faster. Sequences are terminated when we reach the end of the line, fill the internal buffer, or a different character is seen by the input parser (an escape sequence, or UTF-8). Rather than writing collected sequences out immediately, hold them until it is necessary (another screen modification, or we consume all available data). This means we can discard changes that would have no effect (for example, lines that would just be scrolled off the screen or cleared). This reduces the total amount of data we write out to the terminal - not important for fast terminals, but a big help with slow (like xterm).
2016-11-24Make the selection able to exist independent of the cursor position, sonicm
that it is not affected by scrolling. If MouseDragEnd1Pane is bound to the new "stop-selection" command: bind -Tcopy-mode MouseDragEnd1Pane stop-selection A selection made with the mouse will stay as it is after button 1 is released. (It also works bound to a key.) From Artem Fokin.
2016-10-13Add support for BCE (background colour erase). This makes various escapenicm
sequences (notable EL and ED but also IL, DL, ICH, DCH) create blank cells using the current background colour rather than the default colour. On modern systems BCE doesn't really have many benefits, but most other terminals now support it, some (lazy) applications rely on it, and it is not hard to include now that we have pane background colours anyway. Mostly written by Sean Haugh.
2016-10-12Redraw selection in tty_draw_line, so it appears when redrawing wholenicm
pane. Reported by Theo Buehler.
2016-10-11Add static in window-*.c and move some internal functions out of tmux.h.nicm
2016-10-10Loads more static, except for cmd-*.c and window-*.c.nicm
2016-09-02Remember the number of lines scrolled into the history (versus clearednicm
into the history) and when resizing only use scrolled lines and not cleared lines (which are probably not intended to reappear). From Chaoren Lin.
2016-07-15Don't update cells in each block of data read from a pane immediately,nicm
instead track them as change (dirty) and update them once at the end, saves much time if repeatedly writing the same cell. Also fix comparison of cells being equal in a few places (memcmp is not enough).
2016-06-10Spelling error (incrased -> increased), from Josh Soref.nicm
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-12-28Couple of trivial style nits.nicm
2015-10-27Count brackets in #{?...} so that nested conditional formats work, fromnicm
Daniel De Graaf.
2015-08-28Only set default title to hostname on screens that are being used for anicm
window pane, no point in calling gethostname() for temporary screens.
2015-01-11correctly use HOST_NAME_MAX.deraadt
Some notes: POSIX HOST_NAME_MAX doesn't include the NUL. POSIX LOGIN_NAME_MAX and TTY_NAME_MAX do include the NUL. BSD MAXHOSTNAMELEN includes the NUL. Actually, most of the historical BSD MAX* defines did include the NUL, except for the historical mistake of utmp fields without NULs in the string, which directly led to strncpy.. just showing how error prone this kind of accounting is. CSRG did right. Somehow POSIX missed the memo on the concepts of carefulness and consistancy, and we are still paying the price when people trip over this. Of course, glibc is even more amazing (that is a hint to blackhats) ok guenther
2014-11-06Add V for select line with vi(1) keys. From Juho Pohjala.nicm
2014-10-20Tidy up some includes.nicm
2014-10-08Add xreallocarray and remove nmemb argument from xrealloc.nicm
2014-09-01Various minor style and spacing nits.nicm
2014-08-11Fix two copy mode problems:nicm
1. In vi mode the selection doesn't include the last character if you moved the cursor up or left. 2. In emacs mode the selection includes the last character if you moved the cursor to the left. From Balazs Kezes.
2014-01-09Three small changes from Tiago Cunha:nicm
- Check for truncation when copying path. - Don't need to use a temporary buffer in screen_set_title. - Include strerror in output when connecting to server fails.