Rev 4356 | Rev 4496 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4356 | Rev 4489 | ||
---|---|---|---|
Line 659... | Line 659... | ||
659 | 659 | ||
660 | p = proto_new("console"); |
660 | p = proto_new("console"); |
661 | resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER; |
661 | resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER; |
662 | resp_def[2] = V_INTEGER; resp_def[3] = V_CHAR; |
662 | resp_def[2] = V_INTEGER; resp_def[3] = V_CHAR; |
663 | o = oper_new("getkey", 0, arg_def, V_ERRNO, 4, resp_def); |
663 | o = oper_new("getkey", 0, arg_def, V_ERRNO, 4, resp_def); |
664 | proto_add_oper(p, CONSOLE_GETKEY, o); |
- | |
665 | 664 | ||
666 | arg_def[0] = V_CHAR; |
665 | arg_def[0] = V_CHAR; |
667 | o = oper_new("putchar", 1, arg_def, V_VOID, 0, resp_def); |
- | |
668 | proto_add_oper(p, CONSOLE_PUTCHAR, o); |
- | |
669 | o = oper_new("write", 0, arg_def, V_VOID, 0, resp_def); |
- | |
670 | proto_add_oper(p, CONSOLE_WRITE, o); |
- | |
671 | o = oper_new("clear", 0, arg_def, V_VOID, 0, resp_def); |
666 | o = oper_new("clear", 0, arg_def, V_VOID, 0, resp_def); |
672 | proto_add_oper(p, CONSOLE_CLEAR, o); |
667 | proto_add_oper(p, CONSOLE_CLEAR, o); |
673 | 668 | ||
674 | arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; |
669 | arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; |
675 | o = oper_new("goto", 2, arg_def, V_VOID, 0, resp_def); |
670 | o = oper_new("goto", 2, arg_def, V_VOID, 0, resp_def); |
676 | proto_add_oper(p, CONSOLE_GOTO, o); |
671 | proto_add_oper(p, CONSOLE_GOTO, o); |
677 | 672 | ||
678 | resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER; |
673 | resp_def[0] = V_INTEGER; resp_def[1] = V_INTEGER; |
679 | o = oper_new("getsize", 0, arg_def, V_INTEGER, 2, resp_def); |
674 | o = oper_new("getsize", 0, arg_def, V_INTEGER, 2, resp_def); |
680 | proto_add_oper(p, CONSOLE_GETSIZE, o); |
675 | proto_add_oper(p, CONSOLE_GET_SIZE, o); |
681 | o = oper_new("flush", 0, arg_def, V_VOID, 0, resp_def); |
- | |
682 | proto_add_oper(p, CONSOLE_FLUSH, o); |
- | |
683 | 676 | ||
684 | arg_def[0] = V_INTEGER; |
677 | arg_def[0] = V_INTEGER; |
685 | o = oper_new("set_style", 1, arg_def, V_VOID, 0, resp_def); |
678 | o = oper_new("set_style", 1, arg_def, V_VOID, 0, resp_def); |
686 | proto_add_oper(p, CONSOLE_SET_STYLE, o); |
679 | proto_add_oper(p, CONSOLE_SET_STYLE, o); |
687 | arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; arg_def[2] = V_INTEGER; |
680 | arg_def[0] = V_INTEGER; arg_def[1] = V_INTEGER; arg_def[2] = V_INTEGER; |