summaryrefslogtreecommitdiff
path: root/libterm/examples/restore_screen.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-01-07 21:00:59 +0900
committerFreeArtMan <dos21h@gmail.com>2015-01-07 21:00:59 +0900
commit03e459e7dff84c44644b1eccc0e00b73d846fe2a (patch)
tree00269e56bdf53906396199e22dcabe8bbee9592f /libterm/examples/restore_screen.c
parent0ab31d63699467d72f09327171b735ed2152bf2c (diff)
downloadmicrobbs-03e459e7dff84c44644b1eccc0e00b73d846fe2a.tar.gz
microbbs-03e459e7dff84c44644b1eccc0e00b73d846fe2a.zip
Small fixes about loging and libterm
Diffstat (limited to 'libterm/examples/restore_screen.c')
-rw-r--r--libterm/examples/restore_screen.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/libterm/examples/restore_screen.c b/libterm/examples/restore_screen.c
new file mode 100644
index 0000000..5323d78
--- /dev/null
+++ b/libterm/examples/restore_screen.c
@@ -0,0 +1,24 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <term.h>
+#include <debug.h>
+
+int main()
+{
+ struct term_screen ts; memset( &ts, 0, sizeof(ts) );
+
+
+ PRINT("asd\n");
+ if ( term_init( &ts ) == -1 )
+ printf("Some err when init\n");
+ PRINT("asd\n");
+
+ printf("set mode\n");
+
+ sleep(1);
+
+ term_set_orig_mode( &ts );
+
+ return 0;
+} \ No newline at end of file