summaryrefslogtreecommitdiff
path: root/libterm/examples/restore_screen.c
blob: 5323d7806ae028c99233d82bd6b5800cb019e2da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}