diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2020-02-21 10:26:25 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-02-21 10:31:19 +0100 |
commit | db33f3499cb1c74d56a521ea2d18084073b14840 (patch) | |
tree | dbb447ab0631e39755737cd969153231578b54d5 /winsup/cygwin/fhandler_console.cc | |
parent | 4ec2e5e1c2d9bfdb742386a43a9d27aec4d74523 (diff) | |
download | newlib-db33f3499cb1c74d56a521ea2d18084073b14840.zip newlib-db33f3499cb1c74d56a521ea2d18084073b14840.tar.gz newlib-db33f3499cb1c74d56a521ea2d18084073b14840.tar.bz2 |
Cygwin: don't move cursor on NUL char at all
Add a comment instead to explain that this behaviour contradicts
the terminfo entry.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index f7044c8..42040a9 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -2733,8 +2733,9 @@ do_print: cursor_rel (-1, 0); break; case IGN: - if (!wincap.has_con_24bit_colors () || con_is_legacy) - cursor_rel (1, 0); + /* Up to release 3.1.3 we called cursor_rel (1, 0); to move the cursor + one step to the right. However, that neither matches the terminfo + for the cygwin terminal, nor the one for the xterm terminal. */ break; case CR: cursor_get (&x, &y); |