Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1520 → Rev 1521

/uspace/trunk/console/console.c
248,7 → 248,7
ipc_callid_t callid;
ipc_call_t call;
int consnum;
ipcarg_t arg1;
ipcarg_t arg1, arg2;
 
if ((consnum = find_free_connection()) == CONSOLE_COUNT) {
ipc_answer_fast(iid,ELIMIT,0,0);
264,6 → 264,7
while (1) {
callid = async_get_call(&call);
arg1 = arg2 = 0;
switch (IPC_GET_METHOD(call)) {
case IPC_M_PHONE_HUNGUP:
/* TODO */
286,6 → 287,10
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_GETCHAR:
if (keybuffer_empty(&(connections[consnum].keybuffer))) {
303,7 → 308,7
break;
}
ipc_answer_fast(callid, 0, arg1, 0);
ipc_answer_fast(callid, 0, arg1, arg2);
}
}
 
/uspace/trunk/console/console.h
35,6 → 35,7
#define CONSOLE_PUTCHAR 1027
#define CONSOLE_CLEAR 1028
#define CONSOLE_GOTO 1029
#define CONSOLE_GETSIZE 1030
 
#endif