Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1521 → Rev 1520

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