Fri Jul 13 17:07:45 2001 Michael Jennings (mej)

This is mostly cosmetic, but fairly important nonetheless.  Saved
config files should not contain the "main" context.


SVN revision: 4947
This commit is contained in:
Michael Jennings 2001-07-14 00:08:32 +00:00
parent 3dd429a1fc
commit e3f87013da
11 changed files with 34 additions and 31 deletions

View File

@ -4288,3 +4288,8 @@ for 0.9.1. Now we just need some testing to make sure there's
nothing horridly wrong.... So you all can test while we finish up nothing horridly wrong.... So you all can test while we finish up
the web site and the backgrounds. :-) the web site and the backgrounds. :-)
---------------------------------------------------------------------- ----------------------------------------------------------------------
Fri Jul 13 17:07:45 2001 Michael Jennings (mej)
This is mostly cosmetic, but fairly important nonetheless. Saved
config files should not contain the "main" context.
----------------------------------------------------------------------

View File

@ -44,6 +44,7 @@ Eterm|Eterm-color|Eterm with xterm-style color support (X Window System),
# Alternate character set (line drawing), enable/enter/exit ACS # Alternate character set (line drawing), enable/enter/exit ACS
acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
# The line below is used by some vtXXX emulators, but I don't think it's right for us.
# acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376, # acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
enacs=\e)0, smacs=^N, rmacs=^O, enacs=\e)0, smacs=^N, rmacs=^O,

View File

@ -3336,9 +3336,7 @@ save_config(char *path, unsigned char save_theme)
fprintf(fp, "# Eterm Configuration File\n"); fprintf(fp, "# Eterm Configuration File\n");
fprintf(fp, "# Automatically generated by " APL_NAME "-" VERSION " on %s\n", dt_stamp); fprintf(fp, "# Automatically generated by " APL_NAME "-" VERSION " on %s\n", dt_stamp);
fprintf(fp, "begin main\n\n"); fprintf(fp, "begin color\n");
fprintf(fp, " begin color\n");
fprintf(fp, " foreground %s\n", rs_color[fgColor]); fprintf(fp, " foreground %s\n", rs_color[fgColor]);
fprintf(fp, " background %s\n", rs_color[bgColor]); fprintf(fp, " background %s\n", rs_color[bgColor]);
fprintf(fp, " cursor %s\n", rs_color[cursorColor]); fprintf(fp, " cursor %s\n", rs_color[cursorColor]);
@ -3356,9 +3354,9 @@ save_config(char *path, unsigned char save_theme)
fprintf(fp, " color ul %s\n", rs_color[colorUL]); fprintf(fp, " color ul %s\n", rs_color[colorUL]);
} }
#endif #endif
fprintf(fp, " end color\n\n"); fprintf(fp, "end color\n\n");
fprintf(fp, " begin attributes\n"); fprintf(fp, "begin attributes\n");
if (save_theme) { if (save_theme) {
if (rs_geometry) { if (rs_geometry) {
fprintf(fp, " geometry %s\n", rs_geometry); fprintf(fp, " geometry %s\n", rs_geometry);
@ -3386,10 +3384,10 @@ save_config(char *path, unsigned char save_theme)
fprintf(fp, " font bold %s\n", rs_boldFont); fprintf(fp, " font bold %s\n", rs_boldFont);
} }
#endif #endif
fprintf(fp, " end attributes\n\n"); fprintf(fp, "end attributes\n\n");
if (save_theme) { if (save_theme) {
fprintf(fp, " begin imageclasses\n"); fprintf(fp, "begin imageclasses\n");
fprintf(fp, " path \"%s\"\n", rs_path); fprintf(fp, " path \"%s\"\n", rs_path);
#ifdef PIXMAP_SUPPORT #ifdef PIXMAP_SUPPORT
if (rs_icon != NULL) { if (rs_icon != NULL) {
@ -3663,13 +3661,13 @@ save_config(char *path, unsigned char save_theme)
} }
fprintf(fp, " end image\n"); fprintf(fp, " end image\n");
} }
fprintf(fp, " end imageclasses\n\n"); fprintf(fp, "end imageclasses\n\n");
for (i = 0; i < menu_list->nummenus; i++) { for (i = 0; i < menu_list->nummenus; i++) {
menu_t *menu = menu_list->menus[i]; menu_t *menu = menu_list->menus[i];
unsigned short j; unsigned short j;
fprintf(fp, " begin menu\n"); fprintf(fp, "begin menu\n");
fprintf(fp, " title \"%s\"\n", menu->title); fprintf(fp, " title \"%s\"\n", menu->title);
if (menu->font) { if (menu->font) {
unsigned long tmp; unsigned long tmp;
@ -3702,12 +3700,12 @@ save_config(char *path, unsigned char save_theme)
fprintf(fp, " end\n"); fprintf(fp, " end\n");
} }
} }
fprintf(fp, " end menu\n"); fprintf(fp, "end menu\n");
} }
fprintf(fp, "\n"); fprintf(fp, "\n");
} }
fprintf(fp, " begin actions\n"); fprintf(fp, "begin actions\n");
for (action = action_list; action; action = action->next) { for (action = action_list; action; action = action->next) {
fprintf(fp, " bind "); fprintf(fp, " bind ");
if (action->mod != MOD_NONE) { if (action->mod != MOD_NONE) {
@ -3761,10 +3759,10 @@ save_config(char *path, unsigned char save_theme)
fprintf(fp, "script \"%s\"\n", action->param.script); fprintf(fp, "script \"%s\"\n", action->param.script);
} }
} }
fprintf(fp, " end actions\n\n"); fprintf(fp, "end actions\n\n");
#ifdef MULTI_CHARSET #ifdef MULTI_CHARSET
fprintf(fp, " begin multichar\n"); fprintf(fp, "begin multichar\n");
if (rs_multichar_encoding) { if (rs_multichar_encoding) {
fprintf(fp, " encoding %s\n", rs_multichar_encoding); fprintf(fp, " encoding %s\n", rs_multichar_encoding);
} }
@ -3773,21 +3771,21 @@ save_config(char *path, unsigned char save_theme)
fprintf(fp, " font %d %s\n", i, etmfonts[i]); fprintf(fp, " font %d %s\n", i, etmfonts[i]);
} }
} }
fprintf(fp, " end multichar\n\n"); fprintf(fp, "end multichar\n\n");
#endif #endif
#ifdef USE_XIM #ifdef USE_XIM
fprintf(fp, " begin xim\n"); fprintf(fp, "begin xim\n");
if (rs_input_method) { if (rs_input_method) {
fprintf(fp, " input_method %s\n", rs_input_method); fprintf(fp, " input_method %s\n", rs_input_method);
} }
if (rs_preedit_type) { if (rs_preedit_type) {
fprintf(fp, " preedit_type %s\n", rs_preedit_type); fprintf(fp, " preedit_type %s\n", rs_preedit_type);
} }
fprintf(fp, " end xim\n\n"); fprintf(fp, "end xim\n\n");
#endif #endif
fprintf(fp, " begin toggles\n"); fprintf(fp, "begin toggles\n");
fprintf(fp, " map_alert %d\n", (Options & Opt_map_alert ? 1 : 0)); fprintf(fp, " map_alert %d\n", (Options & Opt_map_alert ? 1 : 0));
fprintf(fp, " visual_bell %d\n", (Options & Opt_visual_bell ? 1 : 0)); fprintf(fp, " visual_bell %d\n", (Options & Opt_visual_bell ? 1 : 0));
fprintf(fp, " login_shell %d\n", (Options & Opt_login_shell ? 1 : 0)); fprintf(fp, " login_shell %d\n", (Options & Opt_login_shell ? 1 : 0));
@ -3812,9 +3810,9 @@ save_config(char *path, unsigned char save_theme)
fprintf(fp, " itrans %d\n", (image_toggles & IMOPT_ITRANS ? 1 : 0)); fprintf(fp, " itrans %d\n", (image_toggles & IMOPT_ITRANS ? 1 : 0));
fprintf(fp, " buttonbar %d\n", ((buttonbar && bbar_is_visible(buttonbar)) ? 1 : 0)); fprintf(fp, " buttonbar %d\n", ((buttonbar && bbar_is_visible(buttonbar)) ? 1 : 0));
fprintf(fp, " resize_gravity %d\n", (Options & Opt_resize_gravity ? 1 : 0)); fprintf(fp, " resize_gravity %d\n", (Options & Opt_resize_gravity ? 1 : 0));
fprintf(fp, " end toggles\n\n"); fprintf(fp, "end toggles\n\n");
fprintf(fp, " begin keyboard\n"); fprintf(fp, "begin keyboard\n");
tmp_str = XKeysymToString(ks_smallfont); tmp_str = XKeysymToString(ks_smallfont);
if (tmp_str) { if (tmp_str) {
fprintf(fp, " smallfont_key %s\n", tmp_str); fprintf(fp, " smallfont_key %s\n", tmp_str);
@ -3844,9 +3842,9 @@ save_config(char *path, unsigned char save_theme)
#endif #endif
fprintf(fp, " app_keypad %d\n", (PrivateModes & PrivMode_aplKP ? 1 : 0)); fprintf(fp, " app_keypad %d\n", (PrivateModes & PrivMode_aplKP ? 1 : 0));
fprintf(fp, " app_cursor %d\n", (PrivateModes & PrivMode_aplCUR ? 1 : 0)); fprintf(fp, " app_cursor %d\n", (PrivateModes & PrivMode_aplCUR ? 1 : 0));
fprintf(fp, " end keyboard\n\n"); fprintf(fp, "end keyboard\n\n");
fprintf(fp, " begin misc\n"); fprintf(fp, "begin misc\n");
#ifdef PRINTPIPE #ifdef PRINTPIPE
if (rs_print_pipe) { if (rs_print_pipe) {
fprintf(fp, " print_pipe \"%s\"\n", rs_print_pipe); fprintf(fp, " print_pipe \"%s\"\n", rs_print_pipe);
@ -3869,8 +3867,7 @@ save_config(char *path, unsigned char save_theme)
fprintf(fp, " cut_chars \"%s\"\n", rs_cutchars); fprintf(fp, " cut_chars \"%s\"\n", rs_cutchars);
} }
#endif #endif
fprintf(fp, " end misc\n\n"); fprintf(fp, "end misc\n\n");
fprintf(fp, "end main\n");
fclose(fp); fclose(fp);
return 0; return 0;

View File

@ -1,4 +1,4 @@
<Eterm-0.9> <Eterm-0.9.1>
begin menu begin menu
title Font title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1 font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1

View File

@ -1,4 +1,4 @@
<Eterm-0.9> <Eterm-0.9.1>
begin menu begin menu
title Font title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1 font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1

View File

@ -1,4 +1,4 @@
<Eterm-0.9> <Eterm-0.9.1>
begin menu begin menu
title Font title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1 font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1

View File

@ -1,4 +1,4 @@
<Eterm-0.9> <Eterm-0.9.1>
%preproc m4 %preproc m4
define(STRING_ITEM, `begin menuitem define(STRING_ITEM, `begin menuitem
text "$1" text "$1"

View File

@ -1,4 +1,4 @@
<Eterm-0.9> <Eterm-0.9.1>
begin menu begin menu
title Font title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1 font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1

View File

@ -1,4 +1,4 @@
<Eterm-0.9> <Eterm-0.9.1>
begin menu begin menu
title Font title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1 font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1

View File

@ -1,4 +1,4 @@
<Eterm-0.9> <Eterm-0.9.1>
begin menu begin menu
title Font title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1 font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1

View File

@ -1,4 +1,4 @@
<Eterm-0.9> <Eterm-0.9.1>
begin menu begin menu
title Font title Font
font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1 font -*-times-bold-r-normal--14-*-*-*-*-*-iso8859-1