aboutsummaryrefslogtreecommitdiffstats
path: root/src/row.rs
Commit message (Collapse)AuthorAgeFilesLines
* preserve wrapping state when possibleJesse Luehrs2019-12-061-0/+34
|
* handle wide char wrapping correctlyJesse Luehrs2019-12-051-2/+6
| | | | | wrapping a wide char should set the wrapping state of the line even if it wrapped before the last column
* track fullwidth continuation cells explicitlyJesse Luehrs2019-12-051-6/+18
| | | | this makes the logic a bit easier to follow
* optimize erases a bit moreJesse Luehrs2019-11-111-34/+92
|
* actually, this method isn't necessary at allJesse Luehrs2019-11-111-22/+13
|
* actually remove the last bgcolor special caseJesse Luehrs2019-11-111-2/+2
|
* factor out cursor movement logicJesse Luehrs2019-11-111-27/+11
|
* commentJesse Luehrs2019-11-111-0/+3
|
* stop special-casing bgcolor in one more placeJesse Luehrs2019-11-111-3/+2
|
* preserve all text attributes on cleared cellsJesse Luehrs2019-11-111-22/+10
| | | | | | | some terminals require it (alacritty wants to render underline and inverse state of cleared cells, for instance, so we have to be sure that the diff algorithm will properly reset the cursor attributes before clearing cells)
* stop using formats at allJesse Luehrs2019-11-111-55/+15
| | | | they are too slow
* simplifyJesse Luehrs2019-11-101-57/+41
|
* optimize attribute setting a bitJesse Luehrs2019-11-101-8/+20
|
* optimize cursor movement a bitJesse Luehrs2019-11-101-49/+122
|
* missed oneJesse Luehrs2019-11-091-1/+4
|
* use a fixed size buffer for cell dataJesse Luehrs2019-11-091-1/+1
| | | | this dramatically speeds things up
* refactor terminal writingJesse Luehrs2019-11-091-38/+69
|
* fix wide character handling in contents_formatted and contents_diffJesse Luehrs2019-11-081-8/+22
|
* clearing cells sets the background colorJesse Luehrs2019-11-081-4/+8
|
* also add a rows_diff methodJesse Luehrs2019-11-061-2/+9
|
* make row.contents_diff not require the row indexJesse Luehrs2019-11-061-9/+5
|
* contents_formatted and contents_diff should also restore the cursorJesse Luehrs2019-11-061-9/+8
| | | | since the cursor is a visible part of the terminal
* fix erasing cells in diffJesse Luehrs2019-11-051-1/+1
| | | | also add more comprehensive tests
* add functionality for diffing two terminal screensJesse Luehrs2019-11-051-0/+40
|
* adjust the way window contents are reportedJesse Luehrs2019-11-051-59/+57
| | | | | | | | | | | | | | | | contents and contents_formatted now only allow getting the entire terminal contents, and for any other uses we now provide rows and rows_formatted. the reasoning here is that it wasn't particularly useful to return newline (or crlf) separated lines when not drawing the full terminal, since it's not like you can send those to the terminal in any meaningful way anyway (like, if you wanted to draw a subset of the terminal state, you'll almost certainly need to be doing explicit positioning on your own, since crlf is only actually correct if you're drawing the screen subset in the upper left hand corner of the screen). with this, you can draw each (subset of a) line individually, and reposition the cursor in whatever way makes sense in between drawing the lines.
* preserve the state of empty cells in contents_formattedJesse Luehrs2019-11-051-1/+1
|
* contents_formatted should return a Vec<u8>Jesse Luehrs2019-11-051-5/+5
| | | | | the overall terminal escape sequence byte stream is not necessarily utf8-safe, even if individual cell contents are
* add Clone and Debug to ScreenJesse Luehrs2019-11-051-1/+1
|
* stop reallocating vecs so muchJesse Luehrs2019-11-041-1/+4
|
* more useful contents/contents_formatted behaviorJesse Luehrs2019-11-041-1/+1
|
* simplifyJesse Luehrs2019-11-031-0/+4
|
* use iterators in more places instead of raw indexingJesse Luehrs2019-11-021-0/+6
|
* simplifyJesse Luehrs2019-11-021-2/+2
|
* fix one more warningJesse Luehrs2019-11-021-1/+3
|
* implement window_contents_formattedJesse Luehrs2019-10-311-8/+52
|
* implement zero-width and wide character handlingJesse Luehrs2019-10-311-2/+16
|
* implement ascii text wrappingJesse Luehrs2019-10-311-0/+4
|
* more passing testsJesse Luehrs2019-10-301-0/+16
|
* more passing testsJesse Luehrs2019-10-301-4/+13
|
* more passing testsJesse Luehrs2019-10-291-0/+40