Various fixes. See notework.txt
This commit is contained in:
@@ -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 }
|
||||
};
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -93,6 +93,7 @@ enum {
|
||||
GRP_TEMPLATE,
|
||||
GRP_TEMPLATEMATCH,
|
||||
GRP_TWITMODE,
|
||||
GRP_USEAREA,
|
||||
GRP_USEFWD,
|
||||
GRP_USERNAME,
|
||||
GRP_USETZUTC,
|
||||
|
@@ -41,7 +41,7 @@
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
const int MAX_DESC = 45; // Area descriptions
|
||||
const int MAX_DESC = 81; // Area descriptions
|
||||
const int MAX_ECHO = 81; // Echoids
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user