Subversion Repositories HelenOS

Rev

Rev 3747 | Rev 3768 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3747 Rev 3767
Line 49... Line 49...
49
#include <stdio.h>
49
#include <stdio.h>
50
#include <stdlib.h>
50
#include <stdlib.h>
51
#include <string.h>
51
#include <string.h>
52
#include <unistd.h>
52
#include <unistd.h>
53
#include <io/stream.h>
53
#include <io/stream.h>
54
 
-
 
-
 
54
#include <console.h>
55
 
55
 
56
#include <async.h>
56
#include <async.h>
57
#include "screen.h"
57
#include "screen.h"
58
#include "tetris.h"
58
#include "tetris.h"
59
#include <ipc/console.h>
59
#include <ipc/console.h>
Line 74... Line 74...
74
}
74
}
75
 
75
 
76
static int con_phone;
76
static int con_phone;
77
 
77
 
78
 
78
 
79
 
-
 
80
static void set_style(int fgcolor, int bgcolor)
-
 
81
{
-
 
82
    async_msg_2(con_phone, CONSOLE_SET_STYLE, fgcolor, bgcolor);
-
 
83
}
-
 
84
 
-
 
85
static void start_standout(void)
79
static void start_standout(void)
86
{
80
{
87
    set_style(0xf0f0f0, 0);
81
    console_set_rgb_color(0xf0f0f0, 0);
88
}
82
}
89
 
83
 
90
static void resume_normal(void)
84
static void resume_normal(void)
91
{
85
{
92
    set_style(0, 0xf0f0f0);
86
    console_set_rgb_color(0, 0xf0f0f0);
93
}
87
}
94
 
88
 
95
 
-
 
96
void clear_screen(void)
89
void clear_screen(void)
97
{
90
{
98
    async_msg_0(con_phone, CONSOLE_CLEAR);
91
    async_msg_0(con_phone, CONSOLE_CLEAR);
99
    moveto(0, 0);
92
    moveto(0, 0);
100
}
93
}