]> cloudbase.mooo.com Git - z180-stamp.git/blob - include/con-utils.h
15a3ce82b9befddf2b3434fc44c4a0089dc67966
[z180-stamp.git] / include / con-utils.h
1 #ifndef CON_UTILS_H
2 #define CON_UTILS_H
3
4 uint_fast8_t tstc(void);
5
6 int my_getchar(uint_fast8_t waitforchar);
7
8 /* test if ctrl-c was pressed */
9 uint_fast8_t ctrlc(void);
10
11
12 /* pass 1 to disable ctrlc() checking, 0 to enable.
13 * returns previous state
14 */
15 uint_fast8_t disable_ctrlc(uint_fast8_t disable);
16
17 uint_fast8_t had_ctrlc (void);
18 void clear_ctrlc(void);
19
20 #endif /* CON_UTILS_H */
21
22