Various fixes. See notework.txt

This commit is contained in:
Alexander S. Aganichev
2001-10-07 08:24:26 +00:00
parent 07782be14d
commit f1ab267ad1
21 changed files with 97 additions and 41 deletions

View File

@@ -81,8 +81,10 @@ const char *get_charset(void)
strcpy(charsetbuf, "LATIN-1");
cp = setlocale(LC_CTYPE, "");
if((cp != NULL) and ((cp = strchr(cp, '.')) != NULL)) {
if(strieql(cp, "KOI8R"))
if(strieql(cp, "KOI8R") or strieql(cp, "KOI8"))
cp = "KOI8-R";
if(strieql(cp, "KOI8U"))
cp = "KOI8-U";
strxcpy(charsetbuf, cp, sizeof(charsetbuf));
}
#endif
@@ -99,7 +101,9 @@ const char *get_dos_charset(const char *cpfrom)
char *from, *to;
} cpmap[] = {
{ "LATIN-1", "CP437" },
{ "KOI8", "CP866" },
{ "KOI8-R", "CP866" },
{ "KOI8-U", "CP1125" },
{ NULL, NULL }
};

View File

@@ -704,9 +704,17 @@ int gkbd_curstable[] = {
int gkbd_cursgetch(int mode) {
int key;
#ifndef BUGGY_NCURSES
nodelay(stdscr, mode);
#else
wtimeout(stdscr, mode ? 0 : -1);
#endif
key = getch();
#ifndef BUGGY_NCURSES
nodelay(stdscr, FALSE);
#else
wtimeout(stdscr, -1);
#endif
return key;
}

View File

@@ -93,6 +93,7 @@ enum {
GRP_TEMPLATE,
GRP_TEMPLATEMATCH,
GRP_TWITMODE,
GRP_USEAREA,
GRP_USEFWD,
GRP_USERNAME,
GRP_USETZUTC,

View File

@@ -41,7 +41,7 @@
// ------------------------------------------------------------------
const int MAX_DESC = 45; // Area descriptions
const int MAX_DESC = 81; // Area descriptions
const int MAX_ECHO = 81; // Echoids