Allowd some hi-ascii input
This commit is contained in:
@@ -275,10 +275,11 @@ void Chat(char *username, char *channel)
|
||||
break;
|
||||
|
||||
/*
|
||||
* Check for a pressed key, if so then process it
|
||||
* Check for a pressed key, if so then process it.
|
||||
* Allow hi-ascii for multi-language.
|
||||
*/
|
||||
ch = testkey(exitinfo.iScreenLen -1, curpos + 2);
|
||||
if (isprint(ch)) {
|
||||
if (isprint(ch) || (ch > 0x7F)) {
|
||||
alarm_on();
|
||||
if (curpos < 77) {
|
||||
PUTCHAR(ch);
|
||||
|
@@ -717,9 +717,9 @@ int Fs_Edit()
|
||||
break;
|
||||
|
||||
default:
|
||||
if ((ch > 31 && ch < 127) || traduce(&ch) ) {
|
||||
if ((ch > 31) || traduce(&ch) ) {
|
||||
/*
|
||||
* Normal printable characters
|
||||
* Normal printable characters or hi-ascii
|
||||
*/
|
||||
if (Col == strlen(Message[CurRow]) + 1) {
|
||||
/*
|
||||
|
@@ -341,7 +341,7 @@ void GetstrP(char *sStr, int iMaxLen, int Position)
|
||||
PUTCHAR('\007');
|
||||
}
|
||||
|
||||
if ((ch > 31 && ch < 127) || traduce(&ch)) {
|
||||
if ((ch > 31) || traduce(&ch)) {
|
||||
if (iPos <= iMaxLen) {
|
||||
iPos++;
|
||||
sprintf(sStr, "%s%c", sStr, ch);
|
||||
|
Reference in New Issue
Block a user