Age | Commit message (Collapse) | Author |
|
|
|
characters (previously they were not accounted for).
|
|
|
|
its own to avoid copying twice.
|
|
all the checks and selection and marking stuff needed for copy mode.
|
|
padding or later UTF-8 characters could be displayed incorrectly. GitHub
issue 1090.
|
|
format of each line, as well as adding a couple of formats needed for
the default display.
|
|
|
|
|
|
|
|
|
|
some modern features.
Now the common code is in mode-tree.c, which provides an API used by the
three modes now separated into window-{buffer,client,tree}.c. Buffer
mode shows buffers, client mode clients and tree mode a tree of
sessions, windows and panes.
Each mode has a common set of key bindings plus a few that are specific
to the mode. Other changes are:
- each mode has a preview pane: for buffers this is the buffer content
(very useful), for others it is a preview of the pane;
- items may be sorted in different ways ('O' key);
- multiple items may be tagged and an operation applied to all of them
(for example, to delete multiple buffers at once);
- in tree mode a command may be run on the selected item (session,
window, pane) or on tagged items (key ':');
- displayed items may be filtered in tree mode by using a format (this
is used to implement find-window) (key 'f');
- the custom format (-F) for the display is no longer available;
- shortcut keys change from 0-9, a-z, A-Z which was always a bit weird
with keys used for other uses to 0-9, M-a to M-z.
Now that the code is simpler, other improvements will come later.
Primary key bindings for each mode are documented under the commands in
the man page (choose-buffer, choose-client, choose-tree).
Parts written by Thomas Adam.
|
|
|
|
|
|
|
|
|
|
|
|
Winstein.
|
|
paste by avoiding explicit line wraps if we think the terminal will wrap
anyway.
|
|
|
|
some extra logging.
|
|
need to save and restore the cursor so that the next character goes into
the right place.
|
|
(but it is simpler to flush everything, so do that instead).
|
|
full flush before insert.
|
|
|
|
delayed scrolling before drawing it.
|
|
possible instead of sending individual line feeds.
|
|
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).
|
|
|
|
is not actually helping us much and just adds complexity, so don't
bother.
|
|
|
|
the whole line.
|
|
|
|
|
|
|
|
|
|
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.
|
|
modify the screen, not after; and use grid_view_insert_cells to make
space not grid_move_cells.
|
|
pane. Reported by Theo Buehler.
|
|
the end of the source, but it was wrong and causes problems that are
only showing up now we are more aggressive about skipping redundant
screen updates. Remove the optimization entirely as more trouble than it
is worth to fix (and it'll have to go when BCE is done anyway).
|
|
|
|
overlap after the first character (for example with cells xy and ab, y
is replacing a).
|
|
into the history) and when resizing only use scrolled lines and not
cleared lines (which are probably not intended to reappear). From
Chaoren Lin.
|
|
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).
|
|
skipped, reported by Omar Sandoval.
|
|
last character if it won't be used. This (and last few commits) prompted
by a report from Hubert depesz Lubaczewski.
|
|
|
|
called conditionally later).
|
|
|
|
|