Skip to content
Snippets Groups Projects
Commit 09887486 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Make the default text (video) mode "LCD 80x25" (42), square pixel 80x25 mode

This was the auto/default mode before commit c9cf87da

If you really want the VGA aspect ratio, use the '-v41' option.
parent a5c8fb73
Branches
Tags
No related merge requests found
Pipeline #5787 failed
......@@ -720,6 +720,7 @@ int main(int argc, char **argv)
struct robot saverobot;
BOOL door_mode=FALSE;
int ciolib_mode=CIOLIB_MODE_AUTO;
enum text_mode video_mode = LCD80X25;
unsigned int u;
char sysop_aliases[256];
sbbsecho_cfg_t orig_cfg;
......@@ -810,7 +811,7 @@ int main(int argc, char **argv)
uifc.mode|=UIFC_COLOR;
break;
case 'V':
textmode(atoi(argv[i]+2));
video_mode = atoi(argv[i]+2);
break;
default:
USAGE:
......@@ -842,8 +843,9 @@ int main(int argc, char **argv)
#endif
" A = ANSI mode\n"
" D = standard input/output/door mode\n"
"-v# set video mode to # (default=auto)\n"
"-v# set video mode to # (default=%u)\n"
"-l# set screen lines to # (default=auto-detect)\n"
,video_mode
);
#ifdef _WIN32
printf("\nHit a key to close...");
......@@ -886,6 +888,7 @@ int main(int argc, char **argv)
printf("ciolib library init returned error %d\n",i);
exit(1);
}
textmode(video_mode);
ciolib_settitle("Synchronet FidoNet Configuration");
i=uifcini32(&uifc); /* curses/conio/X/ANSI */
}
......
......@@ -405,6 +405,7 @@ int main(int argc, char **argv)
bool door_mode=false;
bool alt_chars = false;
int ciolib_mode=CIOLIB_MODE_AUTO;
enum text_mode video_mode = LCD80X25;
#if defined(_WIN32)
cio_api.options |= CONIO_OPT_DISABLE_CLOSE;
......@@ -533,7 +534,7 @@ int main(int argc, char **argv)
alt_chars = true;
break;
case 'v':
textmode(atoi(argv[i]+2));
video_mode = atoi(argv[i]+2);
break;
case 'y':
auto_save=true;
......@@ -582,9 +583,10 @@ int main(int argc, char **argv)
" A = ANSI mode\n"
" D = standard input/output/door mode\n"
"-A use alternate (ASCII) characters for arrow symbols\n"
"-v# set video mode to # (default=auto)\n"
"-v# set video mode to # (default=%u)\n"
"-l# set screen lines to # (default=auto-detect)\n"
"-y automatically save changes (don't ask)\n"
,video_mode
);
#ifdef _WIN32
printf("\nHit a key to close...");
......@@ -679,6 +681,7 @@ int main(int argc, char **argv)
printf("ciolib library init returned error %d\n",i);
exit(1);
}
textmode(video_mode);
ciolib_settitle("Synchronet Configuration");
i=uifcini32(&uifc); /* curses/conio/X/ANSI */
if(alt_chars) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment