summaryrefslogtreecommitdiffstats
path: root/screen-write.c
AgeCommit message (Collapse)Author
2009-07-30Plug some memory leaks.Nicholas Marriott
2009-07-27Draw UTF-8 characters under the selection correctly.Nicholas Marriott
2009-07-22More tty code tidying: move the saved cursor/region position (from before theNicholas Marriott
screen was updated) out of struct screen and into struct tty_ctx.
2009-07-22enum tty_cmd is only used as an index into the array of command functionNicholas Marriott
pointers, so remove it and use the function pointers directly to represent themselves.
2009-07-22There are relatively few arguments to tty_cmd_* functions now, so tidy them upNicholas Marriott
by using a struct rather than hiding everything with varargs.
2009-07-22tty_cmd_raw is only used once, for raw UTF-8 output, so rename it toNicholas Marriott
tty_cmd_utf8character and eliminate the size argument.
2009-07-14The scroll region cannot be one line only, ignore attempts to make it so.Nicholas Marriott
2009-07-09Cursor up and down should be limited by the scroll region (cuu should stop atNicholas Marriott
the scroll region top if starting from below it and cud stop at the bottom if starting from above). Fixes another vttest test.
2009-07-09Change inserting and deleting lines inside the scroll region to properly clearNicholas Marriott
lines that should be inserted/deleted but not moved. Fixes problems with mutt reported by Brian Lewis, thanks.
2009-07-09Tidy by removing unused argument from grid_view_{insert,delete}_line_regionNicholas Marriott
functions (currently don't fully work, this is to make fix easier).
2009-06-29Fix two errors with character/line insertion and deletion: the maximum numberNicholas Marriott
of characters which may be inserted or deleted is the screen width, not one less (and similarly for lines and height); and if characters or lines are deleted by moving the ones that follow, the space at the end needs to be cleared. This appears to solve long-standing redraw issues most visible when using the force-width option then scrolling in view(1) or unwrapping lines in emacs.
2009-06-26Status line fixes: don't truncate status-right now the length calculation isNicholas Marriott
done for UTF-8, limit to the maximum length correctly when printing, and always print a space even if the left string is longer than the width available.
2009-06-05Remove trailing newlines, spaces, and tabs.Ray Lai
No binary change.
2009-06-03Support insert mode by using insert character to shift the cells before writingNicholas Marriott
as normal.
2009-06-03Implement the DEC alignment test. With the last change this is enough for theNicholas Marriott
first cursor test in vttest (in ports) to pass; it still shops a few more problems though.
2009-06-03Fix some miscalculations when clearing to start of screen: the number of linesNicholas Marriott
to the cursor is cy not cy - 1, and the current cursor cell should be included.
2009-06-03New session option, status-utf8, to control the interpretation of top-bit-setNicholas Marriott
characters in status-left and status-right (if on, they are treated as UTF-8; otherwise passed through).
2009-06-03Add a UTF-8 aware string length function and make UTF-8 inNicholas Marriott
status-left/status-right work properly. At the moment any top-bit-set characters are assumed to be UTF-8: a status-utf8 option to configure this will come shortly.
2009-06-01Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott
terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti