[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 18/26: Make CUD more usual
From: |
Samuel Thibault |
Subject: |
[hurd] 18/26: Make CUD more usual |
Date: |
Sat, 02 Nov 2013 14:44:46 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit e1dff04f50833437c47cf1b737e69d3a73de9d63
Author: Samuel Thibault <address@hidden>
Date: Tue Oct 22 14:38:28 2013 +0200
Make CUD more usual
Whether CUD scrolls the screen or not is implementation-dependant.
Applications are not supposed to assume one way or the other, but they
sometimes do, and most implementations do scroll, so let's stick to common
practice.
* console/display.c (handle_esc_bracket): On CUD/VPR, scroll the screen
instead of capping the cursor position.
---
console/display.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/console/display.c b/console/display.c
index 97e1626..8d9e478 100644
--- a/console/display.c
+++ b/console/display.c
@@ -1186,8 +1186,9 @@ handle_esc_bracket (display_t display, char op)
case 'B': /* ECMA-48 <CUD>. */
case 'e': /* ECMA-48 <VPR>. */
/* Cursor down: <cud1>, <cud>. */
- user->cursor.row += (parse->params[0] ?: 1);
- limit_cursor (display);
+ /* Most implementations scroll the screen. */
+ for (i = 0; i < (parse->params[0] ?: 1); i++)
+ linefeed (display);
break;
case 'C': /* ECMA-48 <CUF>. */
/* Cursor right: <cuf1>, <cuf>. */
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 07/26: console-client: remove the pid file on clean exits, (continued)
- [hurd] 07/26: console-client: remove the pid file on clean exits, Samuel Thibault, 2013/11/02
- [hurd] 08/26: console-client: entitle console_exit with the noreturn attribute, Samuel Thibault, 2013/11/02
- [hurd] 06/26: libfshelp: properly free active translator entries, Samuel Thibault, 2013/11/02
- [hurd] 21/26: configure.ac: properly escape the test for X11/keysymdef.h, Samuel Thibault, 2013/11/02
- [hurd] 25/26: libports: fix error handling in _ports_create_port_internal, Samuel Thibault, 2013/11/02
- [hurd] 14/26: libdiskfs: fix removal of socket nodes, Samuel Thibault, 2013/11/02
- [hurd] 22/26: exec: Remove the remaining BFD related bits, Samuel Thibault, 2013/11/02
- [hurd] 13/26: pflocal: fix destruction of explicitely bound sockets, Samuel Thibault, 2013/11/02
- [hurd] 20/26: Make boot script accept more fsck values, Samuel Thibault, 2013/11/02
- [hurd] 19/26: Add xenl to hurd.ti, Samuel Thibault, 2013/11/02
- [hurd] 18/26: Make CUD more usual,
Samuel Thibault <=
- [hurd] 17/26: Make boot script reboot when fsck told so, Samuel Thibault, 2013/11/02
- [hurd] 15/26: pflocal: fix port leak when receiving port rights, Samuel Thibault, 2013/11/02
- [hurd] 16/26: pflocal: fix message flags on receive, Samuel Thibault, 2013/11/02