9390fbccaca7c81be4d0676c5e2640c85737a5ec
[my-code/ivac.git] / src / display.c
1 /* display.c -- display management stuff
2  *
3  * hackbard@hackdaworld.dyndns.org
4  *
5  */
6
7 #include "display.h"
8
9 int display_init(t_display *display) {
10
11   puts("[display] initializing display ...");
12
13   initscr();
14   raw();
15   noecho();
16   keypad(stdscr,TRUE);
17   getmaxyx(stdscr,display->max_y,display->max_x);
18
19   return D_SUCCESS;
20 }
21
22 int display_refresh(t_display *display) {
23
24   getmaxyx(stdscr,display->max_y,display->max_x);
25
26   return D_SUCCESS;
27 }
28
29 int display_shutdown(t_display *display) {
30
31   noraw();
32   echo();
33
34   puts("[display] shutdown");
35
36   return D_SUCCESS;
37 }