2013-05-18 06:21:28 +00:00
|
|
|
#ifndef _INPUT_H_
|
|
|
|
#define _INPUT_H_
|
|
|
|
|
2021-07-19 07:39:00 +00:00
|
|
|
#include "names.h"
|
2013-10-08 10:01:15 +00:00
|
|
|
|
2013-05-18 06:21:28 +00:00
|
|
|
|
2013-10-08 09:41:49 +00:00
|
|
|
typedef enum {
|
|
|
|
STOP, PLAY, RECORD
|
|
|
|
} kbdstate ;
|
|
|
|
extern kbdstate kbdmode ; /* current keyboard macro mode */
|
|
|
|
extern int lastkey ; /* last keystoke */
|
|
|
|
extern int kbdrep ; /* number of repetitions */
|
2013-09-27 06:29:26 +00:00
|
|
|
extern int kbdm[] ; /* Holds kayboard macro data */
|
|
|
|
extern int *kbdptr ; /* current position in keyboard buf */
|
2013-10-09 08:58:33 +00:00
|
|
|
extern int *kbdend ; /* ptr to end of the keyboard */
|
2015-08-25 01:17:41 +00:00
|
|
|
|
2013-10-10 04:33:13 +00:00
|
|
|
extern int metac; /* current meta character */
|
|
|
|
extern int ctlxc; /* current control X prefix char */
|
|
|
|
extern int reptc; /* current universal repeat char */
|
|
|
|
extern int abortc; /* current abort command char */
|
2015-08-25 01:17:41 +00:00
|
|
|
extern const int nlc ; /* end of input char */
|
2013-10-10 04:33:13 +00:00
|
|
|
|
2013-09-27 06:29:26 +00:00
|
|
|
|
2019-08-07 02:19:47 +00:00
|
|
|
void ue_system( const char *cmd) ;
|
2013-09-19 08:10:29 +00:00
|
|
|
int mlyesno( const char *prompt) ;
|
2015-09-29 02:43:19 +00:00
|
|
|
int newmlarg( char **outbufref, const char *prompt, int size) ;
|
2015-09-29 02:25:36 +00:00
|
|
|
int newmlargt( char **outbufref, const char *prompt, int size) ;
|
2013-05-18 06:21:28 +00:00
|
|
|
int ectoc( int c) ;
|
2021-07-19 07:39:00 +00:00
|
|
|
|
|
|
|
/* Look up in names to function association table */
|
|
|
|
const name_bind *fncmatch( char *) ;
|
|
|
|
const name_bind *getname( void) ;
|
|
|
|
const name_bind *getnamebind( fnp_t func) ;
|
|
|
|
|
2013-05-18 06:21:28 +00:00
|
|
|
int tgetc( void) ;
|
|
|
|
int get1key( void) ;
|
|
|
|
int getcmd( void) ;
|
2013-09-19 08:10:29 +00:00
|
|
|
int getstring( const char *prompt, char *buf, int nbuf, int eolchar) ;
|
2013-05-18 06:21:28 +00:00
|
|
|
|
|
|
|
#endif
|