Allowd some hi-ascii input
This commit is contained in:
parent
f9e170dd72
commit
6eb6ff7bd4
@ -25,6 +25,9 @@ v0.71.2 16-Jan-2005
|
|||||||
When a user logs in, the users locale (guessed value from his
|
When a user logs in, the users locale (guessed value from his
|
||||||
characterset) is set. Experimental to see if libc functions will
|
characterset) is set. Experimental to see if libc functions will
|
||||||
support Chinese characters.
|
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:
|
mbfido:
|
||||||
Empty *.msg netmails for our own system are dropped with and
|
Empty *.msg netmails for our own system are dropped with and
|
||||||
|
@ -275,10 +275,11 @@ void Chat(char *username, char *channel)
|
|||||||
break;
|
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);
|
ch = testkey(exitinfo.iScreenLen -1, curpos + 2);
|
||||||
if (isprint(ch)) {
|
if (isprint(ch) || (ch > 0x7F)) {
|
||||||
alarm_on();
|
alarm_on();
|
||||||
if (curpos < 77) {
|
if (curpos < 77) {
|
||||||
PUTCHAR(ch);
|
PUTCHAR(ch);
|
||||||
|
@ -717,9 +717,9 @@ int Fs_Edit()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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) {
|
if (Col == strlen(Message[CurRow]) + 1) {
|
||||||
/*
|
/*
|
||||||
|
@ -341,7 +341,7 @@ void GetstrP(char *sStr, int iMaxLen, int Position)
|
|||||||
PUTCHAR('\007');
|
PUTCHAR('\007');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ch > 31 && ch < 127) || traduce(&ch)) {
|
if ((ch > 31) || traduce(&ch)) {
|
||||||
if (iPos <= iMaxLen) {
|
if (iPos <= iMaxLen) {
|
||||||
iPos++;
|
iPos++;
|
||||||
sprintf(sStr, "%s%c", sStr, ch);
|
sprintf(sStr, "%s%c", sStr, ch);
|
||||||
|
Reference in New Issue
Block a user