summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-05-26 11:31:11 -0400
committerJune McEnroe <june@causal.agency>2019-05-26 11:31:11 -0400
commitf0c3d8ea2570db062bf6c76ecde080b9957d3dfd (patch)
treeb592a05534eff965e0f4b20e69982df64355e2f3
parentAdd weekly scoreboard (diff)
downloadplay-f0c3d8ea2570db062bf6c76ecde080b9957d3dfd.tar.gz
play-f0c3d8ea2570db062bf6c76ecde080b9957d3dfd.zip
Clear the screen between weekly and top boards
-rw-r--r--play.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/play.c b/play.c
index 268530e..8f282ef 100644
--- a/play.c
+++ b/play.c
@@ -111,9 +111,8 @@ static char board[BoardWidth + 1];
 static char *boardTitle(const char *title) {
 	snprintf(
 		board, sizeof(board),
-		"%*s%*s",
-		(int)(BoardWidth + strlen(title)) / 2, title,
-		BoardWidth, ""
+		"%*s",
+		(int)(BoardWidth + strlen(title)) / 2, title
 	);
 	return board;
 }
@@ -248,6 +247,7 @@ int main(int argc, char *argv[]) {
 	noecho();
 	curs_set(0);
 	getch();
+	erase();
 
 	scoresRead(top);
 	index = scoresInsert(new);