aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text.rs
Commit message (Collapse)AuthorAgeFilesLines
* actually, remove normalization entirelyJesse Luehrs2019-12-071-1/+0
| | | | | | | normalization has some weird edge cases that cause incorrect behavior, since we aren't implementing full grapheme segmentation (for instance, a single codepoint can be normalized into three different codepoints, and there are codepoints that are combining characters but have width != 0)
* convert tests to fixturesJesse Luehrs2019-12-061-249/+8
|
* simplify the behavior around end of line wrapping hereJesse Luehrs2019-12-051-2/+2
| | | | | | the behavior i was aiming for had way too many special cases, so just stop trying to do it and do the simple thing instead (this is all stuff that is essentially never going to come up in reality).
* ensure cells with contents always have widthJesse Luehrs2019-12-051-0/+6
| | | | it gets ambiguous where the zero-width characters should go otherwise
* handle wide char wrapping correctlyJesse Luehrs2019-12-051-0/+4
| | | | | wrapping a wide char should set the wrapping state of the line even if it wrapped before the last column
* fix applying combining characters to wide charactersJesse Luehrs2019-12-051-0/+4
|
* track fullwidth continuation cells explicitlyJesse Luehrs2019-12-051-0/+14
| | | | this makes the logic a bit easier to follow
* fix a couple more issues with end of line behaviorJesse Luehrs2019-12-051-0/+11
|
* make unicode normalization optionalJesse Luehrs2019-11-231-0/+1
| | | | | | it's not always necessary or desired, and adds quite a lot to the binary size (for instance, the problem it solves is pretty much non-existent in web browsers, and wasm builds are also very sensitive to code size)
* combining characters should also trigger a cursor wrapJesse Luehrs2019-11-201-1/+1
| | | | | this seems pretty weird, but it is what all other terminals i can find do, so
* handle wrapped cursors properly on outputJesse Luehrs2019-11-201-0/+15
|
* fix zero width characters at the end of a rowJesse Luehrs2019-11-131-0/+8
|
* optimize erases a bit moreJesse Luehrs2019-11-111-2/+2
|
* actually, i do need to disable this in each testJesse Luehrs2019-11-111-0/+2
|
* allow cognitive_complexity everywhereJesse Luehrs2019-11-111-2/+0
|
* add Default impl for ParserJesse Luehrs2019-11-101-6/+6
|
* optimize attribute setting a bitJesse Luehrs2019-11-101-10/+7
|
* optimize cursor movement a bitJesse Luehrs2019-11-101-5/+5
|
* optionally save scrollback rowsJesse Luehrs2019-11-091-6/+6
|
* use a fixed size buffer for cell dataJesse Luehrs2019-11-091-0/+8
| | | | this dramatically speeds things up
* refactor terminal writingJesse Luehrs2019-11-091-6/+6
|
* fix tests for the attribute reset changeJesse Luehrs2019-11-081-6/+6
|
* stop treating soft hyphen speciallyJesse Luehrs2019-11-081-99/+0
|
* don't leave old character data in the second cell of a wide characterJesse Luehrs2019-11-081-4/+56
| | | | | | otherwise it might confuse the diffing algorithm if a non-wide character is written there and then it goes back to being the second cell of a wide character
* fix wide character handling in contents_formatted and contents_diffJesse Luehrs2019-11-081-0/+23
|
* remove some unnecessary testsJesse Luehrs2019-11-081-4/+0
|
* adjust the way window contents are reportedJesse Luehrs2019-11-051-25/+25
| | | | | | | | | | | | | | | | 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.
* expose the screen separately from the parserJesse Luehrs2019-11-051-206/+206
|
* more useful contents/contents_formatted behaviorJesse Luehrs2019-11-041-47/+23
|
* move some tests aroundJesse Luehrs2019-11-031-0/+99
|
* rename some methodsJesse Luehrs2019-11-031-22/+22
|
* add normalization for unicode cell valuesJesse Luehrs2019-10-311-2/+2
|
* basic structure of vte parserJesse Luehrs2019-10-291-29/+26
|
* start the rewriteJesse Luehrs2019-10-291-1/+1
|
* rustfmtJesse Luehrs2019-10-291-8/+32
|
* add some more tests for a bug i fixed in libvt100Jesse Luehrs2016-05-071-0/+48
|
* add a bunch of testsJesse Luehrs2016-04-281-0/+94