aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
Commit message (Collapse)AuthorAge
* Plug some memory leaks.Nicholas Marriott2009-07-30
|
* Draw UTF-8 characters under the selection correctly.Nicholas Marriott2009-07-27
|
* More tty code tidying: move the saved cursor/region position (from before theNicholas Marriott2009-07-22
| | | | screen was updated) out of struct screen and into struct tty_ctx.
* enum tty_cmd is only used as an index into the array of command functionNicholas Marriott2009-07-22
| | | | | pointers, so remove it and use the function pointers directly to represent themselves.
* There are relatively few arguments to tty_cmd_* functions now, so tidy them upNicholas Marriott2009-07-22
| | | | by using a struct rather than hiding everything with varargs.
* tty_cmd_raw is only used once, for raw UTF-8 output, so rename it toNicholas Marriott2009-07-22
| | | | tty_cmd_utf8character and eliminate the size argument.
* The scroll region cannot be one line only, ignore attempts to make it so.Nicholas Marriott2009-07-14
|
* Cursor up and down should be limited by the scroll region (cuu should stop atNicholas Marriott2009-07-09
| | | | | the scroll region top if starting from below it and cud stop at the bottom if starting from above). Fixes another vttest test.
* Change inserting and deleting lines inside the scroll region to properly clearNicholas Marriott2009-07-09
| | | | | lines that should be inserted/deleted but not moved. Fixes problems with mutt reported by Brian Lewis, thanks.
* Tidy by removing unused argument from grid_view_{insert,delete}_line_regionNicholas Marriott2009-07-09
| | | | functions (currently don't fully work, this is to make fix easier).
* Fix two errors with character/line insertion and deletion: the maximum numberNicholas Marriott2009-06-29
| | | | | | | | | | 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.
* Status line fixes: don't truncate status-right now the length calculation isNicholas Marriott2009-06-26
| | | | | 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.
* Remove trailing newlines, spaces, and tabs.Ray Lai2009-06-05
| | | | No binary change.
* Support insert mode by using insert character to shift the cells before writingNicholas Marriott2009-06-03
| | | | as normal.
* Implement the DEC alignment test. With the last change this is enough for theNicholas Marriott2009-06-03
| | | | | first cursor test in vttest (in ports) to pass; it still shops a few more problems though.
* Fix some miscalculations when clearing to start of screen: the number of linesNicholas Marriott2009-06-03
| | | | to the cursor is cy not cy - 1, and the current cursor cell should be included.
* New session option, status-utf8, to control the interpretation of top-bit-setNicholas Marriott2009-06-03
| | | | | characters in status-left and status-right (if on, they are treated as UTF-8; otherwise passed through).
* Add a UTF-8 aware string length function and make UTF-8 inNicholas Marriott2009-06-03
| | | | | | 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.
* Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott2009-06-01
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