diff options
author | toni <matzeton@googlemail.com> | 2014-12-08 02:55:13 +0100 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2014-12-08 09:49:48 +0100 |
commit | f92a04e64285e75b55c1ef68b31225514ac6304b (patch) | |
tree | 75cfcf1e7a6a6de60537028a6ff2632f4e72a8dd /ui_input.h | |
parent | 94272da26e2bbb578b5f5e6b17080a0c1ce8df83 (diff) | |
parent | 9c31f67c257100af2af2d892c761b44087fc3eff (diff) |
Merge branch 'master' of github.com:lnslbrty/naskpass
Diffstat (limited to 'ui_input.h')
-rw-r--r-- | ui_input.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -9,16 +9,25 @@ struct input { unsigned int y; unsigned int width; unsigned int cur_pos; +#ifdef NCURSES_WIDECHAR + wchar_t *input; +#else char *input; +#endif size_t input_max; size_t input_len; size_t input_pos; +#ifdef NCURSES_WIDECHAR + wchar_t *prompt; +#else char *prompt; +#endif chtype attrs; + chtype shadow; }; struct input * -init_input(unsigned int x, unsigned int y, unsigned int width, char *prompt, size_t input_len, chtype attrs); +init_input(unsigned int x, unsigned int y, unsigned int width, char *prompt, size_t input_len, chtype attrs, chtype shadow); void free_input(struct input *a); |