2013-05-18 02:21:28 -04:00
|
|
|
#ifndef _INPUT_H_
|
|
|
|
#define _INPUT_H_
|
|
|
|
|
2013-10-08 06:01:15 -04:00
|
|
|
#include "bind.h"
|
|
|
|
|
2013-05-18 02:21:28 -04:00
|
|
|
|
2013-10-08 05:41:49 -04: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 02:29:26 -04:00
|
|
|
extern int kbdm[] ; /* Holds kayboard macro data */
|
|
|
|
extern int *kbdptr ; /* current position in keyboard buf */
|
2013-10-09 04:58:33 -04:00
|
|
|
extern int *kbdend ; /* ptr to end of the keyboard */
|
|
|
|
extern int disinp ; /* display input characters */
|
2015-08-24 21:17:41 -04:00
|
|
|
|
2013-10-10 00:33:13 -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 */
|
2015-08-24 21:17:41 -04:00
|
|
|
extern const int nlc ; /* end of input char */
|
2013-10-10 00:33:13 -04:00
|
|
|
|
2013-09-27 02:29:26 -04:00
|
|
|
|
2013-09-19 04:10:29 -04:00
|
|
|
int mlyesno( const char *prompt) ;
|
|
|
|
int mlreply( const char *prompt, char *buf, int nbuf) ;
|
2015-08-24 21:17:41 -04:00
|
|
|
int mlreplyt( const char *prompt, char *buf, int nbuf) ;
|
2013-05-18 02:21:28 -04:00
|
|
|
int ectoc( int c) ;
|
|
|
|
fn_t getname( void) ;
|
|
|
|
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
|
|
|
void ostring( char *s) ;
|
|
|
|
|
|
|
|
#endif
|