diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-18 13:57:25 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-18 13:57:25 +0000 |
commit | d7c13fb2c3b1b014acde9c1cb17a1e34239b9751 (patch) | |
tree | 7b31d7d08233e1cc1b1ab46af1ac44b25ed4f2c1 /Src/Zle/zle_utils.c | |
parent | 294ef9e87237bf1dc12b17a26bc4b22aa5604282 (diff) | |
download | zsh-d7c13fb2c3b1b014acde9c1cb17a1e34239b9751.tar.gz zsh-d7c13fb2c3b1b014acde9c1cb17a1e34239b9751.tar.xz zsh-d7c13fb2c3b1b014acde9c1cb17a1e34239b9751.zip |
20822: Initial code for Unicode/multibyte input
20823: Debugging test in stat wrong for 64-bit systems
Diffstat (limited to 'Src/Zle/zle_utils.c')
-rw-r--r-- | Src/Zle/zle_utils.c | 14 |
1 files changed, 7 insertions, 7 deletions
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; } |