diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-08-15 22:09:45 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-08-15 22:09:45 -0400 |
commit | 0eae931d4f0fd1194dfcd978c3d94079b710923f (patch) | |
tree | 5713fc8c66fffb144192357464fe616522c6c7fe /src/LYMain.c | |
parent | d7e8d7e419ae58610a9988ff09910670a59526ff (diff) | |
download | lynx-snapshots-0eae931d4f0fd1194dfcd978c3d94079b710923f.tar.gz |
snapshot of project "lynx", label v2-8-1dev_21
Diffstat (limited to 'src/LYMain.c')
-rw-r--r-- | src/LYMain.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/LYMain.c b/src/LYMain.c index ea5584d0..cb5b1310 100644 --- a/src/LYMain.c +++ b/src/LYMain.c @@ -301,6 +301,7 @@ PUBLIC BOOLEAN LYUseDefaultRawMode = TRUE; PUBLIC char *UCAssume_MIMEcharset = NULL; PUBLIC char *UCAssume_localMIMEcharset = NULL; PUBLIC char *UCAssume_unrecMIMEcharset = NULL; +PUBLIC BOOLEAN LYSaveBookmarksInUnicode = FALSE; PUBLIC int LYlines = 24; PUBLIC int LYcols = 80; PUBLIC int dump_output_width = 0; @@ -2432,8 +2433,10 @@ static int restrictions_fun ARGS3( if (next_arg != 0) { parse_restrictions(next_arg); } else { + SetOutputMode( O_TEXT ); for (n = 0; n < sizeof(Usage)/sizeof(Usage[0]); n++) printf("%s\n", Usage[n]); + SetOutputMode( O_BINARY ); exit(0); } return 0; @@ -2494,6 +2497,8 @@ static int version_fun ARGS3( char **, argv GCC_UNUSED, char *, next_arg GCC_UNUSED) { + SetOutputMode( O_TEXT ); + printf("\n%s Version %s (1998)\n", LYNX_NAME, LYNX_VERSION); printf( "Copyrights held by the University of Kansas, CERN, and other contributors.\n" @@ -2502,6 +2507,9 @@ static int version_fun ARGS3( printf( "See http://lynx.browser.org/ and the online help for more information.\n\n" ); + + SetOutputMode( O_BINARY ); + exit(0); /* NOT REACHED */ return 0; |