Allowd some hi-ascii input

This commit is contained in:
Michiel Broek 2005-04-03 21:26:31 +00:00
parent f9e170dd72
commit 6eb6ff7bd4
4 changed files with 9 additions and 5 deletions

View File

@ -25,6 +25,9 @@ v0.71.2 16-Jan-2005
When a user logs in, the users locale (guessed value from his
characterset) is set. Experimental to see if libc functions will
support Chinese characters.
Allowed hi-ascii input characters in the internal fs editor,
the chat input and one general input function. This may have
effects for all users not using us-ascii keyboards.
mbfido:
Empty *.msg netmails for our own system are dropped with and

View File

@ -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);

View File

@ -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) {
/*

View File

@ -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);