Module Name:    src
Committed By:   rillig
Date:           Sat May 14 14:20:10 UTC 2022

Modified Files:
        src/games/cgram: cgram.c

Log Message:
cgram: clear bottom line of the screen at the end

Previously, the prompt line of the shell overwrote only part of the
prompt of cgram, the rest was still visible.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/games/cgram/cgram.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/cgram/cgram.c
diff -u src/games/cgram/cgram.c:1.27 src/games/cgram/cgram.c:1.28
--- src/games/cgram/cgram.c:1.27	Mon Mar 28 20:00:29 2022
+++ src/games/cgram/cgram.c	Sat May 14 14:20:10 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: cgram.c,v 1.27 2022/03/28 20:00:29 rillig Exp $ */
+/* $NetBSD: cgram.c,v 1.28 2022/05/14 14:20:10 rillig Exp $ */
 
 /*-
  * Copyright (c) 2013, 2021 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.c,v 1.27 2022/03/28 20:00:29 rillig Exp $");
+__RCSID("$NetBSD: cgram.c,v 1.28 2022/05/14 14:20:10 rillig Exp $");
 #endif
 
 #include <assert.h>
@@ -579,6 +579,10 @@ loop(void)
 static void
 done(void)
 {
+	move(LINES - 1, 0);
+	clrtoeol();
+	refresh();
+
 	endwin();
 
 	stringarray_done(&sollines);

Reply via email to