Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst Line up 'Command' and 'Status' strings,



details:   https://anonhg.NetBSD.org/src/rev/18f27fb45973
branches:  trunk
changeset: 555210:18f27fb45973
user:      dsl <dsl%NetBSD.org@localhost>
date:      Tue Nov 11 17:27:13 2003 +0000

description:
Line up 'Command' and 'Status' strings,
ensure command text doesn't overflow line.

diffstat:

 distrib/utils/sysinst/run.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 631a647855fa -r 18f27fb45973 distrib/utils/sysinst/run.c
--- a/distrib/utils/sysinst/run.c       Tue Nov 11 17:26:32 2003 +0000
+++ b/distrib/utils/sysinst/run.c       Tue Nov 11 17:27:13 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: run.c,v 1.53 2003/10/19 20:17:32 dsl Exp $     */
+/*     $NetBSD: run.c,v 1.54 2003/11/11 17:27:13 dsl Exp $     */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -336,13 +336,13 @@
                wattrset(actionwin, getattrs(stdscr));
        }
 
-       mvaddstr(0, 3, msg_string(MSG_Status));
+       mvaddstr(0, 4, msg_string(MSG_Status));
        standout();
        addstr(msg_string(MSG_Running));
        standend();
        mvaddstr(1, 4, msg_string(MSG_Command));
        standout();
-       addstr(scmd);
+       printw("%.*s", win->ws_col - getcurx(stdscr) - 1, scmd);
        standend();
 
        move(3, 0);



Home | Main Index | Thread Index | Old Index