Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | allow the cursor to go off the end of the line | Jesse Luehrs | 2016-05-07 | 1 | -17/+17 |
| | | | | | | | | | | vt100_screen_move_to clamps the cursor to being within the screen, but when drawing text to the screen, the cursor is allowed to move to one past the last column, and not wrap until the next character is written (in this case, the cursor is still drawn in the last column, but the internal terminal state is different). updating the row and column manually allows us to position the column outside of the normal bounds (which we otherwise don't want to allow vt100_screen_move_to to do). | ||||
* | bail out quickly here | Jesse Luehrs | 2016-05-06 | 1 | -0/+4 |
| | | | | | this way, BMP characters (which will be the vast, vast majority) spend very little time checking, rather than having to do a full binary search | ||||
* | stop using gunichar here | Jesse Luehrs | 2016-05-04 | 2 | -7/+8 |
| | | | | | it makes compilation more complicated, since it makes vt100.h require knowing about the glib headers | ||||
* | handle moving and scrolling separately | Jesse Luehrs | 2016-05-04 | 4 | -62/+80 |
| | | | | | | | only lf/ri should be scrolling, and only if they start on the border of the scroll region and try to move off of it. also, all absolute movement should be absolute in the context of the full terminal, but relative vertical movement should be clamped to the scroll regions. | ||||
* | apparently setting the scroll region shouldn't actually move the cursor | Jesse Luehrs | 2016-05-04 | 3 | -2/+2 |
| | |||||
* | add some debugging output | Jesse Luehrs | 2016-05-04 | 3 | -57/+215 |
| | |||||
* | recognize most emoji as wide | Jesse Luehrs | 2016-05-03 | 4 | -1/+105 |
| | |||||
* | don't leave the outparam uninit if we bail out early | Jesse Luehrs | 2016-05-03 | 1 | -0/+1 |
| | |||||
* | Revert "keep track of scrollback when scrolling" | Jesse Luehrs | 2015-08-20 | 1 | -28/+5 |
| | | | | This reverts commit 7a8324949027d7ece88af525f8ae7fe67b379e72. | ||||
* | keep track of scrollback when scrolling | Jesse Luehrs | 2015-08-20 | 1 | -5/+28 |
| | |||||
* | make this public | Jesse Luehrs | 2015-08-20 | 2 | -15/+15 |
| | |||||
* | selection shouldn't be a property of the screen | Jesse Luehrs | 2015-08-19 | 1 | -5/+0 |
| | |||||
* | these should all be resetting | Jesse Luehrs | 2014-10-21 | 2 | -10/+10 |
| | |||||
* | SU and SD were reversed from my scroll_up and scroll_down meanings | Jesse Luehrs | 2014-10-21 | 1 | -35/+35 |
| | |||||
* | remove outdated comment | Jesse Luehrs | 2014-10-21 | 1 | -2/+0 |
| | |||||
* | IL and DL shouldn't move the cursor | Jesse Luehrs | 2014-10-21 | 2 | -4/+0 |
| | |||||
* | implement scroll up and scroll down escape sequences | Jesse Luehrs | 2014-10-21 | 5 | -418/+488 |
| | |||||
* | parse CSI params from DECSED and DECSEL properly | Jesse Luehrs | 2014-10-21 | 2 | -4/+36 |
| | |||||
* | in fact, only line feed/reverse line feed should cause scrolling | Jesse Luehrs | 2014-10-20 | 4 | -47/+41 |
| | | | | aside from displaying text, of course | ||||
* | move_to already handles the horizontal case properly | Jesse Luehrs | 2014-10-20 | 2 | -6/+0 |
| | |||||
* | comment typo fix | Jesse Luehrs | 2014-10-20 | 2 | -2/+2 |
| | |||||
* | fix off by one error | Jesse Luehrs | 2014-10-20 | 1 | -2/+2 |
| | |||||
* | also update parser.c | Jesse Luehrs | 2014-10-20 | 1 | -0/+8 |
| | |||||
* | don't segfault on CUP with large parameters | Jesse Luehrs | 2014-10-20 | 1 | -0/+8 |
| | |||||
* | explicitly note some more ignored sequences | Jesse Luehrs | 2014-10-20 | 2 | -4/+4 |
| | |||||
* | normalization may change the length of the utf8 sequence | Jesse Luehrs | 2014-10-20 | 1 | -0/+1 |
| | |||||
* | missed a couple of things to reset with ris | Jesse Luehrs | 2014-10-20 | 2 | -0/+6 |
| | |||||
* | don't add an extra space after wide characters | Jesse Luehrs | 2014-10-18 | 1 | -5/+9 |
| | |||||
* | implement ECH | Jesse Luehrs | 2014-10-17 | 5 | -308/+344 |
| | |||||
* | format warnings about control characters as "\033", not "\33" | Jesse Luehrs | 2014-10-17 | 1 | -4/+4 |
| | |||||
* | don't need a trailing [0-9;] for a CSI sequence to be incomplete | Jesse Luehrs | 2014-10-17 | 1 | -7/+6 |
| | | | | | this should fix "unhandled CSI sequence: \033[?", and hopefully the issue i was seeing where escape sequences were being split | ||||
* | explicitly ignore some escapes | Jesse Luehrs | 2014-09-17 | 3 | -18/+96 |
| | | | | | just to prevent warning about them, since we don't intend to support them | ||||
* | hide the parser state | Jesse Luehrs | 2014-09-17 | 6 | -81/+85 |
| | | | | | | this shouldn't be public (none of the parser stuff should be), but the way i was doing before with redefining certain types from parser.h was causing warnings on clang. | ||||
* | these mouse reporting modes are probably also worthwhile to support | Jesse Luehrs | 2014-09-17 | 4 | -0/+50 |
| | | | | | this doesn't really affect anything, but it'll be useful for runes eventually | ||||
* | handle a couple more escape sequences | Jesse Luehrs | 2014-09-17 | 3 | -304/+386 |
| | |||||
* | split get_string into get_string_plaintext and get_string_formatted | Jesse Luehrs | 2014-09-16 | 2 | -73/+167 |
| | |||||
* | writing over the second half of a wide character should clear it | Jesse Luehrs | 2014-09-16 | 1 | -4/+28 |
| | |||||
* | there's not really a purpose to maintain the selection here | Jesse Luehrs | 2014-09-16 | 1 | -62/+0 |
| | | | | the terminal can't do anything with it, it's only useful at the x layer | ||||
* | %*s can't be used to truncate, so stop trying | Jesse Luehrs | 2014-09-15 | 3 | -29/+23 |
| | |||||
* | eat the entire OSC sequence instead of just the \e] | Jesse Luehrs | 2014-09-15 | 3 | -141/+129 |
| | |||||
* | stop hardcoding the default scrollback length | Jesse Luehrs | 2014-09-14 | 2 | -2/+13 |
| | |||||
* | allow specifying a size to resize to | Jesse Luehrs | 2014-09-14 | 2 | -11/+11 |
| | | | | | this used to just calculate it manually from the size of the x window, but we don't have that now | ||||
* | whoops, already had this function | Jesse Luehrs | 2014-09-13 | 2 | -8/+2 |
| | |||||
* | heh, oops | Jesse Luehrs | 2014-09-13 | 3 | -6/+6 |
| | |||||
* | add a function to get a cell at a given row and column | Jesse Luehrs | 2014-09-13 | 2 | -0/+6 |
| | |||||
* | add functions to allocate memory for the screen too | Jesse Luehrs | 2014-09-13 | 2 | -0/+18 |
| | |||||
* | initial commit, splitting this out from runes | Jesse Luehrs | 2014-09-13 | 6 | -0/+5197 |