date and time created 83/11/10 11:52:38 by ralph
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 11 Nov 1983 03:52:38 +0000 (19:52 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 11 Nov 1983 03:52:38 +0000 (19:52 -0800)
SCCS-vsn: lib/libplot/dumb/close.c 4.1

usr/src/lib/libplot/dumb/close.c [new file with mode: 0644]

diff --git a/usr/src/lib/libplot/dumb/close.c b/usr/src/lib/libplot/dumb/close.c
new file mode 100644 (file)
index 0000000..33039b0
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef lint
+static char sccsid[] = "@(#)close.c    4.1 (Berkeley) %G%";
+#endif
+
+#include <signal.h>
+#include "dumb.h"
+
+closepl()
+{
+       int i, j;
+
+       for(j=0; j<LINES; j++){
+               for(i=0; i<COLS; i++){
+                       printf("%c", screenmat[i][j]);
+               }
+               printf("\n");
+       }
+       signal(SIGINT, SIG_IGN);
+       exit(0);
+}