diff options
author | James Booth <boothj5@gmail.com> | 2013-01-06 00:28:15 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-06 00:28:15 +0000 |
commit | 82ce22ac9d79ee3709c9c514650dc2c2faa9bc3a (patch) | |
tree | f55bb7e6c256260496e8b4ff3fdd1fc0f7da6be0 | |
parent | b32f58e22cf5f489d1e1f041bddb41ebb1e5948f (diff) | |
download | profani-tty-82ce22ac9d79ee3709c9c514650dc2c2faa9bc3a.tar.gz |
Removed inp_get_next_char() from input_win.c
-rw-r--r-- | src/input_win.c | 8 | ||||
-rw-r--r-- | src/ui.h | 1 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/input_win.c b/src/input_win.c index 997044eb..a67ed5ea 100644 --- a/src/input_win.c +++ b/src/input_win.c @@ -250,12 +250,6 @@ inp_put_back(void) prefresh(inp_win, 0, pad_start, rows-1, 0, rows-1, cols-1); } -int -inp_get_next_char(void) -{ - return wgetch(inp_win); -} - void inp_replace_input(char *input, const char * const new_input, int *size) { @@ -293,7 +287,7 @@ _handle_edit(const wint_t ch, char *input, int *size) case 27: // ESC // check for ALT-num - next_ch = inp_get_next_char(); + next_ch = wgetch(inp_win); if (next_ch != ERR) { switch (next_ch) { diff --git a/src/ui.h b/src/ui.h index ea0f7618..0a2a6982 100644 --- a/src/ui.h +++ b/src/ui.h @@ -179,7 +179,6 @@ void inp_non_block(void); void inp_block(void); void inp_get_password(char *passwd); void inp_replace_input(char *input, const char * const new_input, int *size); -int inp_get_next_char(void); void notify_remind(void); #endif |