]> cloudbase.mooo.com Git - z180-stamp.git/blame - include/con-utils.h
env.c needs getopt-min.h
[z180-stamp.git] / include / con-utils.h
CommitLineData
35edb766
L
1/*
2 * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7/*
8 * Console utilities
9 */
10
11#ifndef CON_UTILS_H
d684c216
L
12#define CON_UTILS_H
13
14uint_fast8_t tstc(void);
15
424b184a 16int my_getchar(uint_fast8_t waitforchar);
d684c216
L
17
18/* test if ctrl-c was pressed */
19uint_fast8_t ctrlc(void);
20
21
22/* pass 1 to disable ctrlc() checking, 0 to enable.
23 * returns previous state
24 */
25uint_fast8_t disable_ctrlc(uint_fast8_t disable);
26
27uint_fast8_t had_ctrlc (void);
28void clear_ctrlc(void);
29
30#endif /* CON_UTILS_H */