From d7c13fb2c3b1b014acde9c1cb17a1e34239b9751 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 18 Feb 2005 13:57:25 +0000 Subject: 20822: Initial code for Unicode/multibyte input 20823: Debugging test in stat wrong for 64-bit systems --- Src/Zle/zle_utils.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Src/Zle/zle_utils.c') diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index ffd94def8..e6f696935 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -510,7 +510,7 @@ hstrnstr(char *haystack, int pos, char *needle, int len, int dir, int sens) mod_export int getzlequery(int yesno) { - int c; + ZLE_INT_T c; #ifdef FIONREAD int val; @@ -525,18 +525,18 @@ getzlequery(int yesno) #endif /* get a character from the tty and interpret it */ - c = getkey(0); + c = getfullchar(0); if (yesno) { - if (c == '\t') - c = 'y'; + if (c == ZLETAB) + c = LETTER_y; else if (icntrl(c) || c == EOF) - c = 'n'; + c = LETTER_n; else c = tulower(c); } /* echo response and return */ - if (c != '\n') - putc(c, shout); + if (c != ZLENL) + putc(c, shout); /* TODO: convert to multibyte */ return c; } -- cgit 1.4.1