Subversion Repositories HelenOS-historic

Rev

Rev 1653 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1653 Rev 1721
Line 59... Line 59...
59
#include "../console/console.h"
59
#include "../console/console.h"
60
 
60
 
61
static cell curscreen[B_SIZE];  /* 1 => standout (or otherwise marked) */
61
static cell curscreen[B_SIZE];  /* 1 => standout (or otherwise marked) */
62
static int curscore;
62
static int curscore;
63
static int isset;       /* true => terminal is in game mode */
63
static int isset;       /* true => terminal is in game mode */
64
static void (*tstp)(int);
-
 
65
 
-
 
66
static void scr_stop(int);
-
 
67
static void stopset(int);
-
 
68
 
-
 
69
static char
-
 
70
        *CEstr;         /* clear to end of line */
-
 
71
 
64
 
72
 
65
 
73
/*
66
/*
74
 * putstr() is for unpadded strings (either as in termcap(5) or
67
 * putstr() is for unpadded strings (either as in termcap(5) or
75
 * simply literal strings);
68
 * simply literal strings);
Line 146... Line 139...
146
static int get_display_size(winsize_t *ws)
139
static int get_display_size(winsize_t *ws)
147
{
140
{
148
    return async_req_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col);
141
    return async_req_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col);
149
}
142
}
150
 
143
 
151
static void
-
 
152
scr_stop(int sig)
-
 
153
{
-
 
154
 
-
 
155
    scr_end();
-
 
156
    scr_set();
-
 
157
    scr_msg(key_msg, 1);
-
 
158
}
-
 
159
 
-
 
160
/*
144
/*
161
 * Set up screen mode.
145
 * Set up screen mode.
162
 */
146
 */
163
void
147
void
164
scr_set(void)
148
scr_set(void)