2021-08-13 03:06:58 +00:00
|
|
|
/* input.h -- */
|
2013-05-18 06:21:28 +00:00
|
|
|
#ifndef _INPUT_H_
|
|
|
|
#define _INPUT_H_
|
|
|
|
|
2021-08-13 03:06:58 +00:00
|
|
|
#include "names.h" /* nbind_p */
|
2013-10-08 10:01:15 +00:00
|
|
|
|
2013-10-08 09:41:49 +00:00
|
|
|
typedef enum {
|
2021-08-13 03:06:58 +00:00
|
|
|
STOP, PLAY, RECORD
|
2013-10-08 09:41:49 +00:00
|
|
|
} kbdstate ;
|
2021-07-20 09:34:35 +00:00
|
|
|
|
|
|
|
|
2021-08-13 03:06:58 +00:00
|
|
|
extern kbdstate kbdmode ; /* current keyboard macro mode */
|
|
|
|
extern int lastkey ; /* last keystoke */
|
|
|
|
extern int kbdrep ; /* number of repetitions */
|
|
|
|
extern int kbdm[] ; /* Holds kayboard macro data */
|
|
|
|
extern int *kbdptr ; /* current position in keyboard buf */
|
|
|
|
extern int *kbdend ; /* ptr to end of the keyboard */
|
2015-08-25 01:17:41 +00:00
|
|
|
|
2021-08-13 03:06:58 +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 */
|
|
|
|
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
|
|
|
|
2021-08-13 03:06:58 +00:00
|
|
|
/* Get a command binding from the command line or interactively */
|
2021-07-30 01:30:12 +00:00
|
|
|
nbind_p getname( void) ;
|
2021-07-19 07:39:00 +00:00
|
|
|
|
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
|
2021-08-13 03:06:58 +00:00
|
|
|
/* end of input.h */
|