| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
| |
Support DECSCUSR sequence to set the cursor style with two new
terminfo(5) extensions, Cs and Csr. Written by Ailin Nemui.
|
|
|
|
|
|
|
| |
Support xterm(1) cursor colour change sequences through terminfo(5) Cc
(set) and Cr (reset) extensions. Originally by Sean Estabrooks, tweaked
by me and Ailin Nemui.
|
|
|
|
|
|
|
| |
Don't use strnvis for the title as it breaks UTF-8. set-titles is now
off by default and we have to trust the terminal can understand what we
send it anyway so there isn't any harm.
|
|
|
|
|
| |
selection on the right edge but on the left it is.
|
| |
|
|
|
|
|
|
|
|
|
| |
rather than using an empty "" as the default window title, put the hostname
of the machine we are running on in there.
makes my many green lines easier to deal with without using fiddly options to
set it.
|
| |
|
|
|
|
|
| |
Rectangle copy support, from Robin Lee Powell.
|
|
|
|
|
|
| |
Fix selection behaviour when the cursor is moved backwards (ie so the selection
start is after the end).
|
|
|
|
|
|
|
| |
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the way the grid is stored, previously it was:
- a two-dimensional array of cells;
- a two-dimensional array of utf8 data;
- an array of line lengths.
Now it is a single array of a new struct grid_line each of which represents a
line and contains the length and an array of cells and an array of utf8 data.
This will make it easier to add additional per-line members, such as flags.
|
|
|
|
|
| |
Plug some memory leaks.
|
|
|
|
|
|
|
| |
could be consumed by deleting from the bottom, leaving none to be removed from
the top. In this case, don't call grid_view_delete_lines with ny of 0 as this
is incorrect and causes a bounds check to fatal error if built with -DDEBUG.
|
|
|
|
|
|
|
| |
could be consumed by deleting from the bottom, leaving none to be removed from
the top. In this case, don't call grid_view_delete_lines with ny of 0 as this
is incorrect and causes a bounds check to fatal error if built with -DDEBUG.
|
|
|
|
|
|
|
|
| |
screen interactive programs to preserve the screen contents. When activated, it
saves a copy of the visible grid and disables scrolling into and resizing out
of the history; when deactivated the visible data is restored and the history
reenabled.
|
|
|
|
|
|
| |
width, so that if the same lines are later increased in size the content
reappears.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
history from the top when reducing vertical size and pulling them again when
increasing size.
|
|
|
|
|
| |
vttest test happy.
|
|
|
|
|
|
| |
machine but top-bit-set nonprintables could cause trouble, and they are neater
like this anyway.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
as UTF-8 in a separate array, the code does a lookup into this every time it
gets to a UTF-8 cell. Zero width characters are just appended onto the UTF-8
data for the previous cell. This also means that almost no bytes extra are
wasted non-Unicode data (yay).
Still some oddities, such as copy mode skips over wide characters in a strange
way, and the code could do with some tidying.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Split grid into two arrays, one containing grid attributes/flags/colours (keeps
the name grid_cell for now) and a separate with the character data (called
text). The text is stored as a u_short but is treated as a uint64_t elsewhere;
eventually the grid will have two arrays.
I'm not happy with the naming so that might change.
Still need to decide where to go from here. I'm not sure whether to combine
the peek/set functions together, and also whether to continue to treat the
text as a uint64_t (and convert to/from Unicode) or make it a char array
(of size one when UTF-8 disabled, eight when enabled) and keep everything
as UTF-8.
Also since UTF-8 will eventually become an attribute of the grid itself it
might be nice to move all the padding crap into grid.c.
|
| |
|
| |
|
|
|
|
| |
mode-fg/mode-bg options, force -g for global on set/show/setw/showw/
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(ick) onto the attributes and using two of them to mark the fg and bg as 256 colours when necessary. If only it was 255 colours we would have one value for default and wouln't need this :-/.
|
| |
|
|
|
|
| |
separately but forgot :-/.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|