aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* try to micro-optimize getting cell contents a bitJesse Luehrs2019-12-071-1/+5
|
* avoid calculating contents multiple timesJesse Luehrs2019-12-071-3/+3
|
* fix positioning cursor past end of line when there are wide charactersJesse Luehrs2019-12-071-12/+16
|
* clear wide characters if they get half-scrolled off the rightJesse Luehrs2019-12-071-0/+4
|
* one more try for leaving a cursor at the end of a rowJesse Luehrs2019-12-072-23/+37
|
* actually, remove normalization entirelyJesse Luehrs2019-12-071-39/+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)
* need to update pos after potentially wrappingJesse Luehrs2019-12-061-0/+1
|
* more line wrapping fixesJesse Luehrs2019-12-062-1/+32
|
* fix contents when a wrapped row is followed by an empty rowJesse Luehrs2019-12-063-2/+8
|
* also move the wide char check inside the loop for ECHJesse Luehrs2019-12-061-1/+1
|
* handle line wrapping with wide characters + combining charactersJesse Luehrs2019-12-061-2/+48
|
* zero-width characters shouldn't clear wide charactersJesse Luehrs2019-12-061-32/+33
|
* preserve wrapping state when possibleJesse Luehrs2019-12-062-0/+44
|
* simplify the behavior around end of line wrapping hereJesse Luehrs2019-12-051-16/+7
| | | | | | 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/+4
| | | | it gets ambiguous where the zero-width characters should go otherwise
* 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
* fix applying combining characters to wide charactersJesse Luehrs2019-12-051-3/+20
|
* track fullwidth continuation cells explicitlyJesse Luehrs2019-12-054-52/+142
| | | | this makes the logic a bit easier to follow
* fix a couple more issues with end of line behaviorJesse Luehrs2019-12-053-16/+144
|
* make unicode normalization optionalJesse Luehrs2019-11-231-1/+12
| | | | | | 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/+10
| | | | | 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-2/+46
|
* fix zero width characters at the end of a rowJesse Luehrs2019-11-131-1/+1
|
* add more debug loggingJesse Luehrs2019-11-131-9/+31
|
* bump down the logging priority hereJesse Luehrs2019-11-131-14/+14
| | | | so that apps can more easily compile these out
* docsJesse Luehrs2019-11-131-2/+21
|
* split formatted calculations into multiple methodsJesse Luehrs2019-11-122-29/+344
| | | | | different applications want to be able to apply different things, so this gives more control
* actually resize the underlying grid when requestedJesse Luehrs2019-11-121-0/+8
|
* make contents_diff include bell stateJesse Luehrs2019-11-122-2/+36
| | | | i don't think it makes sense for contents_formatted to include this
* remove parser.screen_mutJesse Luehrs2019-11-122-54/+46
| | | | | | it's easier to reason about if you are only able to get an immutable reference to the internal screen. this also required changing the api for bells.
* make sure i don't accidentally forget to write_bufJesse Luehrs2019-11-111-0/+10
|
* optimize erases a bit moreJesse Luehrs2019-11-112-34/+107
|
* a few more movement tweaksJesse Luehrs2019-11-112-7/+3
|
* 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-112-27/+37
|
* remove commentJesse Luehrs2019-11-111-1/+0
|
* 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-115-71/+46
| | | | | | | 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)
* remove set_len methodJesse Luehrs2019-11-111-6/+2
| | | | | it's not super necessary, since every time we use it we call set_wide directly afterwards
* allow cognitive_complexity everywhereJesse Luehrs2019-11-112-1/+2
|
* stop using formats at allJesse Luehrs2019-11-115-126/+79
| | | | they are too slow
* cache wide character stateJesse Luehrs2019-11-101-16/+28
| | | | | | we always check the character width at least once during initial processing, and we often check it later at least once, so cache it here since we have spare bits
* simplifyJesse Luehrs2019-11-101-57/+41
|
* update crate docs a bitJesse Luehrs2019-11-101-4/+17
|
* docsJesse Luehrs2019-11-101-0/+1
|
* add Default impl for ParserJesse Luehrs2019-11-101-0/+6
|
* docsJesse Luehrs2019-11-102-9/+25
|
* remove the scroll_to and scroll_pos methodsJesse Luehrs2019-11-101-8/+0
| | | | | they are unnecessary, you can just call the methods on the screen object directly