commit 81ca127bd94a90dd5e93aa9816ec9bc44fba63ce
parent 624506cfdd12411d3533bc900a4a9c2c60c8eb8d
Author: Antoni Sawicki <tenox@google.com>
Date: Sun, 28 Apr 2019 23:56:29 -0700
added message before first data input is processed
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/ttyplot.c b/ttyplot.c
@@ -204,6 +204,11 @@ int main(int argc, char *argv[]) {
curs_set(FALSE);
signal(SIGWINCH, (void*)resize);
signal(SIGINT, (void*)finish);
+
+ erase();
+ getmaxyx(stdscr, height, width);
+ mvprintw(height/2, (width/2)-14, "waiting for data from stdin");
+ refresh();
while(1) {
if(two)