summaryrefslogtreecommitdiffstats
path: root/src/input.h
blob: 83e62cfd44be13f8a88547079994d72b2f665c25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <ncurses.h>
#include <wchar.h>
#include <sys/time.h>                                                 // for struct timeval

extern int multiplier;                                                // Multiplier
extern int command_pending;                                           // Command pending
extern WINDOW * input_win;
extern struct block * lastcmd_buffer;
extern struct history * commandline_history;

void fix_timeout(struct timeval * start_tv);                          // Handle timeout of stdin
void handle_input(struct block * buffer);
void break_waitcmd_loop(struct block * buffer);
int has_cmd (struct block * buf, long timeout);
void handle_mult(int * multiplier, struct block * buf, long timeout); // Handle multiplier ef.
void exec_mult (struct block * buf, long timeout);
void exec_single_cmd (struct block * sb);
int wget_wch(WINDOW * win, wint_t * wch);