Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Change from scroll_forward to cursor_down.



details:   https://anonhg.NetBSD.org/src/rev/bd91cfbece04
branches:  trunk
changeset: 752056:bd91cfbece04
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Feb 12 10:06:15 2010 +0000

description:
Change from scroll_forward to cursor_down.
cursor_down is more similar to our old termcap use of nl.
Fixes PR lib/42770.

diffstat:

 lib/libcurses/cr_put.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (62 lines):

diff -r 12b11f3c708c -r bd91cfbece04 lib/libcurses/cr_put.c
--- a/lib/libcurses/cr_put.c    Fri Feb 12 06:40:52 2010 +0000
+++ b/lib/libcurses/cr_put.c    Fri Feb 12 10:06:15 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cr_put.c,v 1.29 2010/02/03 15:34:40 roy Exp $  */
+/*     $NetBSD: cr_put.c,v 1.30 2010/02/12 10:06:15 roy Exp $  */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)cr_put.c   8.3 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: cr_put.c,v 1.29 2010/02/03 15:34:40 roy Exp $");
+__RCSID("$NetBSD: cr_put.c,v 1.30 2010/02/12 10:06:15 roy Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -112,8 +112,8 @@
                                        else
                                                __cputchar('\r');
                                }
-                               if (scroll_forward)
-                                       tputs(scroll_forward, 0, __cputchar);
+                               if (cursor_down)
+                                       tputs(cursor_down, 0, __cputchar);
                                else
                                        __cputchar('\n');
                                l--;
@@ -152,8 +152,8 @@
                         * linefeed to scroll since down arrow won't go past
                         * memory end. I turned this off after recieving Paul
                         * Eggert's Superbee description which wins better. */
-                       if (scroll_forward /* && !__tc_xb */ && __pfast)
-                               tputs(scroll_forward, 0, __cputchar);
+                       if (cursor_down /* && !__tc_xb */ && __pfast)
+                               tputs(cursor_down, 0, __cputchar);
                        else
                                __cputchar('\n');
                        l--;
@@ -327,8 +327,8 @@
                else
                        plodput('\r');
                if (!carriage_return) {
-                       if (scroll_forward)
-                               tputs(scroll_forward, 0, plodput);
+                       if (cursor_down)
+                               tputs(cursor_down, 0, plodput);
                        else
                                plodput('\n');
                        outline++;
@@ -337,8 +337,8 @@
        }
 dontcr:while (outline < destline) {
                outline++;
-               if (scroll_forward)
-                       tputs(scroll_forward, 0, plodput);
+               if (cursor_down)
+                       tputs(cursor_down, 0, plodput);
                else
                        plodput('\n');
                if (plodcnt < 0)



Home | Main Index | Thread Index | Old Index