1 /* 2 * Copyright (c) 2017 Brian Barto 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GPL License. See LICENSE for more details. 6 */ 7 8 #ifndef NMSTERMIO_H 9 #define NMSTERMIO_H 1 10 11 // Function prototypes 12 void nmstermio_init_terminal(void); 13 void nmstermio_restore_terminal(void); 14 int nmstermio_get_rows(void); 15 int nmstermio_get_cols(void); 16 int nmstermio_get_cursor_row(void); 17 void nmstermio_move_cursor(int, int); 18 void nmstermio_print_string(char *); 19 void nmstermio_refresh(void); 20 void nmstermio_clear_input(void); 21 char nmstermio_get_char(void); 22 void nmstermio_print_reveal_string(char *, int); 23 void nmstermio_show_cursor(void); 24 void nmstermio_beep(void); 25 int nmstermio_get_clearscr(void); 26 void nmstermio_set_clearscr(int); 27 void nmstermio_set_foregroundcolor(char *); 28 int nmstermio_get_cursor_row(void); 29 30 31 #endif 32