2021-08-12 23:06:58 -04:00
|
|
|
/* input.h -- */
|
2013-05-18 02:21:28 -04:00
|
|
|
#ifndef _INPUT_H_
|
|
|
|
#define _INPUT_H_
|
|
|
|
|
2021-08-12 23:06:58 -04:00
|
|
|
#include "names.h" /* nbind_p */
|
2013-10-08 06:01:15 -04:00
|
|
|
|
2013-10-08 05:41:49 -04:00
|
|
|
typedef enum {
|
2021-08-12 23:06:58 -04:00
|
|
|
STOP, PLAY, RECORD
|
2013-10-08 05:41:49 -04:00
|
|
|
} kbdstate ;
|
2021-07-20 05:34:35 -04:00
|
|
|
|
|
|
|
|
2021-08-12 23:06:58 -04: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-24 21:17:41 -04:00
|
|
|
|
2021-08-12 23:06:58 -04: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 00:33:13 -04:00
|
|
|
|
2013-09-27 02:29:26 -04:00
|
|
|
|
2019-08-06 22:19:47 -04:00
|
|
|
void ue_system( const char *cmd) ;
|
2013-09-19 04:10:29 -04:00
|
|
|
int mlyesno( const char *prompt) ;
|
2015-09-28 22:43:19 -04:00
|
|
|
int newmlarg( char **outbufref, const char *prompt, int size) ;
|
2015-09-28 22:25:36 -04:00
|
|
|
int newmlargt( char **outbufref, const char *prompt, int size) ;
|
2013-05-18 02:21:28 -04:00
|
|
|
int ectoc( int c) ;
|
2021-07-19 03:39:00 -04:00
|
|
|
|
2021-08-12 23:06:58 -04:00
|
|
|
/* Get a command binding from the command line or interactively */
|
2021-07-29 21:30:12 -04:00
|
|
|
nbind_p getname( void) ;
|
2021-07-19 03:39:00 -04:00
|
|
|
|
2013-05-18 02:21:28 -04:00
|
|
|
int tgetc( void) ;
|
|
|
|
int get1key( void) ;
|
|
|
|
int getcmd( void) ;
|
2013-09-19 04:10:29 -04:00
|
|
|
int getstring( const char *prompt, char *buf, int nbuf, int eolchar) ;
|
2013-05-18 02:21:28 -04:00
|
|
|
|
|
|
|
#endif
|
2021-08-12 23:06:58 -04:00
|
|
|
/* end of input.h */
|