console.h (642B)
1 /* 2 Copyright (c) 2021 Devine Lu Linvega, Andrew Alderwick 3 4 Permission to use, copy, modify, and distribute this software for any 5 purpose with or without fee is hereby granted, provided that the above 6 copyright notice and this permission notice appear in all copies. 7 8 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 WITH REGARD TO THIS SOFTWARE. 10 */ 11 12 #define CONSOLE_VERSION 1 13 14 #define CONSOLE_STD 0x1 15 #define CONSOLE_ARG 0x2 16 #define CONSOLE_EOA 0x3 17 #define CONSOLE_END 0x4 18 19 int console_input(Uxn *u, char c, int type); 20 void console_listen(Uxn *u, int i, int argc, char **argv); 21 void console_deo(Uint8 *d, Uint8 port);