Add macro support.
Replace WGETCH() with input_char(), which works the same except it supports an input buffer. Calling input_macro(s) sets the input buffer to 's'. The input buffer is returned by input_char() as if it had been typed by the user. If an error occurs (cmderr()), the input buffer is cleared.
This commit is contained in:
parent
44b2e4371e
commit
3440a87ea3
9 changed files with 159 additions and 49 deletions
3
wide.h
3
wide.h
|
|
@ -78,4 +78,7 @@ extern int tts_wgetch(WINDOW *, int *);
|
|||
|
||||
#define WSIZEOF(s) (sizeof(s) / sizeof(WCHAR))
|
||||
|
||||
int input_char(WCHAR *);
|
||||
void input_macro(WCHAR *);
|
||||
|
||||
#endif /* !TTS_WIDE_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue