Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | try to micro-optimize getting cell contents a bit | Jesse Luehrs | 2019-12-07 | 1 | -1/+5 |
| | |||||
* | avoid calculating contents multiple times | Jesse Luehrs | 2019-12-07 | 1 | -3/+3 |
| | |||||
* | fix positioning cursor past end of line when there are wide characters | Jesse Luehrs | 2019-12-07 | 1 | -12/+16 |
| | |||||
* | clear wide characters if they get half-scrolled off the right | Jesse Luehrs | 2019-12-07 | 1 | -0/+4 |
| | |||||
* | one more try for leaving a cursor at the end of a row | Jesse Luehrs | 2019-12-07 | 2 | -23/+37 |
| | |||||
* | actually, remove normalization entirely | Jesse Luehrs | 2019-12-07 | 1 | -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 wrapping | Jesse Luehrs | 2019-12-06 | 1 | -0/+1 |
| | |||||
* | more line wrapping fixes | Jesse Luehrs | 2019-12-06 | 2 | -1/+32 |
| | |||||
* | fix contents when a wrapped row is followed by an empty row | Jesse Luehrs | 2019-12-06 | 3 | -2/+8 |
| | |||||
* | also move the wide char check inside the loop for ECH | Jesse Luehrs | 2019-12-06 | 1 | -1/+1 |
| | |||||
* | handle line wrapping with wide characters + combining characters | Jesse Luehrs | 2019-12-06 | 1 | -2/+48 |
| | |||||
* | zero-width characters shouldn't clear wide characters | Jesse Luehrs | 2019-12-06 | 1 | -32/+33 |
| | |||||
* | preserve wrapping state when possible | Jesse Luehrs | 2019-12-06 | 2 | -0/+44 |
| | |||||
* | simplify the behavior around end of line wrapping here | Jesse Luehrs | 2019-12-05 | 1 | -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 width | Jesse Luehrs | 2019-12-05 | 1 | -0/+4 |
| | | | | it gets ambiguous where the zero-width characters should go otherwise | ||||
* | handle wide char wrapping correctly | Jesse Luehrs | 2019-12-05 | 1 | -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 characters | Jesse Luehrs | 2019-12-05 | 1 | -3/+20 |
| | |||||
* | track fullwidth continuation cells explicitly | Jesse Luehrs | 2019-12-05 | 4 | -52/+142 |
| | | | | this makes the logic a bit easier to follow | ||||
* | fix a couple more issues with end of line behavior | Jesse Luehrs | 2019-12-05 | 3 | -16/+144 |
| | |||||
* | make unicode normalization optional | Jesse Luehrs | 2019-11-23 | 1 | -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 wrap | Jesse Luehrs | 2019-11-20 | 1 | -1/+10 |
| | | | | | this seems pretty weird, but it is what all other terminals i can find do, so | ||||
* | handle wrapped cursors properly on output | Jesse Luehrs | 2019-11-20 | 1 | -2/+46 |
| | |||||
* | fix zero width characters at the end of a row | Jesse Luehrs | 2019-11-13 | 1 | -1/+1 |
| | |||||
* | add more debug logging | Jesse Luehrs | 2019-11-13 | 1 | -9/+31 |
| | |||||
* | bump down the logging priority here | Jesse Luehrs | 2019-11-13 | 1 | -14/+14 |
| | | | | so that apps can more easily compile these out | ||||
* | docs | Jesse Luehrs | 2019-11-13 | 1 | -2/+21 |
| | |||||
* | split formatted calculations into multiple methods | Jesse Luehrs | 2019-11-12 | 2 | -29/+344 |
| | | | | | different applications want to be able to apply different things, so this gives more control | ||||
* | actually resize the underlying grid when requested | Jesse Luehrs | 2019-11-12 | 1 | -0/+8 |
| | |||||
* | make contents_diff include bell state | Jesse Luehrs | 2019-11-12 | 2 | -2/+36 |
| | | | | i don't think it makes sense for contents_formatted to include this | ||||
* | remove parser.screen_mut | Jesse Luehrs | 2019-11-12 | 2 | -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_buf | Jesse Luehrs | 2019-11-11 | 1 | -0/+10 |
| | |||||
* | optimize erases a bit more | Jesse Luehrs | 2019-11-11 | 2 | -34/+107 |
| | |||||
* | a few more movement tweaks | Jesse Luehrs | 2019-11-11 | 2 | -7/+3 |
| | |||||
* | actually, this method isn't necessary at all | Jesse Luehrs | 2019-11-11 | 1 | -22/+13 |
| | |||||
* | actually remove the last bgcolor special case | Jesse Luehrs | 2019-11-11 | 1 | -2/+2 |
| | |||||
* | factor out cursor movement logic | Jesse Luehrs | 2019-11-11 | 2 | -27/+37 |
| | |||||
* | remove comment | Jesse Luehrs | 2019-11-11 | 1 | -1/+0 |
| | |||||
* | comment | Jesse Luehrs | 2019-11-11 | 1 | -0/+3 |
| | |||||
* | stop special-casing bgcolor in one more place | Jesse Luehrs | 2019-11-11 | 1 | -3/+2 |
| | |||||
* | preserve all text attributes on cleared cells | Jesse Luehrs | 2019-11-11 | 5 | -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 method | Jesse Luehrs | 2019-11-11 | 1 | -6/+2 |
| | | | | | it's not super necessary, since every time we use it we call set_wide directly afterwards | ||||
* | allow cognitive_complexity everywhere | Jesse Luehrs | 2019-11-11 | 2 | -1/+2 |
| | |||||
* | stop using formats at all | Jesse Luehrs | 2019-11-11 | 5 | -126/+79 |
| | | | | they are too slow | ||||
* | cache wide character state | Jesse Luehrs | 2019-11-10 | 1 | -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 | ||||
* | simplify | Jesse Luehrs | 2019-11-10 | 1 | -57/+41 |
| | |||||
* | update crate docs a bit | Jesse Luehrs | 2019-11-10 | 1 | -4/+17 |
| | |||||
* | docs | Jesse Luehrs | 2019-11-10 | 1 | -0/+1 |
| | |||||
* | add Default impl for Parser | Jesse Luehrs | 2019-11-10 | 1 | -0/+6 |
| | |||||
* | docs | Jesse Luehrs | 2019-11-10 | 2 | -9/+25 |
| | |||||
* | remove the scroll_to and scroll_pos methods | Jesse Luehrs | 2019-11-10 | 1 | -8/+0 |
| | | | | | they are unnecessary, you can just call the methods on the screen object directly |