From 03e459e7dff84c44644b1eccc0e00b73d846fe2a Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Wed, 7 Jan 2015 21:00:59 +0900 Subject: Small fixes about loging and libterm --- libterm/examples/restore_screen.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libterm/examples/restore_screen.c (limited to 'libterm/examples/restore_screen.c') 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 +#include + +#include +#include + +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 -- cgit v1.2.3