Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1522 → Rev 1523

/uspace/trunk/console/console.c
181,7 → 181,7
if ((c >= '0') && (c < '0' + CONSOLE_COUNT)) {
if (c == '0') {
/* switch to kernel console*/
sync_send_2(fb_info.phone, FB_CURSOR_VISIBILITY, 0, 0, NULL, NULL);
nsend_call(fb_info.phone, FB_CURSOR_VISIBILITY, 0);
nsend_call_2(fb_info.phone, FB_SET_STYLE, DEFAULT_FOREGROUND_COLOR, DEFAULT_BACKGROUND_COLOR);
nsend_call(fb_info.phone, FB_CLEAR, 0);
/* FIXME: restore kernel console */
290,11 → 290,14
screenbuffer_goto(&(connections[consnum].screenbuffer), IPC_GET_ARG1(call), IPC_GET_ARG2(call));
break;
 
case CONSOLE_GETSIZE:
arg1 = fb_info.cols;
arg2 = fb_info.rows;
break;
 
case CONSOLE_FLUSH:
sync_send_2(fb_info.phone, FB_FLUSH, 0, 0, NULL, NULL);
break;
case CONSOLE_GETCHAR:
if (keybuffer_empty(&(connections[consnum].keybuffer))) {
/* buffer is empty -> store request */
/uspace/trunk/console/console.h
36,6 → 36,7
#define CONSOLE_CLEAR 1028
#define CONSOLE_GOTO 1029
#define CONSOLE_GETSIZE 1030
#define CONSOLE_FLUSH 1031
 
#endif
 
/uspace/trunk/libc/include/ipc/fb.h
18,5 → 18,6
#define FB_SET_STYLE 1034
#define FB_GET_RESOLUTION 1035
#define FB_DRAW_TEXT_DATA 1036
#define FB_FLUSH 1037
 
#endif