diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-07-26 08:31:57 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-07-26 08:31:57 -0700 |
commit | c8e861357533943469f18e078308c77dede773b3 (patch) | |
tree | 1455282c16ce2a3169e492bdcfe25a69467d268b /djunpack.bat | |
parent | 72bd3ebcd67a4e8d32057f5d6cc431be78b98f6a (diff) | |
download | cygnal-c8e861357533943469f18e078308c77dede773b3.tar.gz cygnal-c8e861357533943469f18e078308c77dede773b3.tar.bz2 cygnal-c8e861357533943469f18e078308c77dede773b3.zip |
Console: integrate end-of-line hack with cursor positioning.
The previous work for simulating the beyond-right-edge of
screen cursor position is incomplete without integrating this
into the cursor positioning routines. By making the cursor
routines aware of the eat_newline flag, we allow cursor
movements to work correctly with regard to this simulated
position.
* winsup/cygwin/fhandler_console.cc
(fhandler_console::cursor_set): If the X position is beyond
the right edge of the screen, then set the cursor to the
start of the following line, rather than clipping to the
right edge, set the eat_newline flag, indicating that the
the true position is actually one character beyond the
previous line. In all other cases, clear the eat_newline
flag.
(fhandler_console::cursor_rel): Do not apply the delta vector
to the raw Win32 cursor position; call cursor_get and apply
it to the virtual cursor position which takes into account
the eat_newline flag.
(fhandler_console::cursor_get): Take into account the
eat_newline flag. If it is set, then report an adjusted
position that is one column beyond the end of the previous
line.
Diffstat (limited to 'djunpack.bat')
0 files changed, 0 insertions, 0 deletions