Enlightenment CVS committal

Author  : mej
Project : eterm
Module  : Eterm

Dir     : eterm/Eterm/src


Modified Files:
        command.c eterm_debug.h events.c font.c options.c options.h 
        pixmap.c screen.c screen.h scrollbar.c startup.c system.c 
        term.c windows.c 


Log Message:
Thu Aug 21 23:51:12 2003                        Michael Jennings (mej)

Oops, that wasn't *quite* what I had in mind....

===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/command.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -3 -r1.96 -r1.97
--- command.c   22 Aug 2003 03:19:42 -0000      1.96
+++ command.c   22 Aug 2003 03:52:01 -0000      1.97
@@ -34,7 +34,7 @@
  * he guarantee anything whatsoever.
  *----------------------------------------------------------------------*/
 
-static const char cvs_ident[] = "$Id: command.c,v 1.96 2003/08/22 03:19:42 mej Exp $";
+static const char cvs_ident[] = "$Id: command.c,v 1.97 2003/08/22 03:52:01 mej Exp $";
 
 /* includes: */
 #include "config.h"
@@ -1050,7 +1050,7 @@
             || ((pid == -1) && (errno == ECHILD))
             || ((pid == 0) && ((kill(cmd_pid, 0)) < 0)))) {
         cmd_pid = -1;
-        if (OPTIONS & OPT_PAUSE) {
+        if (eterm_options & OPT_PAUSE) {
             paused = 1;
             return;
         }
@@ -1850,13 +1850,13 @@
 static void
 xim_get_area(XRectangle * preedit_rect, XRectangle * status_rect, XRectangle * 
needed_rect)
 {
-    preedit_rect->x = needed_rect->width + (scrollbar_is_visible() && !(OPTIONS & 
OPT_SCROLLBAR_RIGHT) ? (scrollbar_trough_width()) : 0);
+    preedit_rect->x = needed_rect->width + (scrollbar_is_visible() && !(eterm_options 
& OPT_SCROLLBAR_RIGHT) ? (scrollbar_trough_width()) : 0);
     preedit_rect->y = Height2Pixel(TERM_WINDOW_GET_ROWS() - 1);
 
-    preedit_rect->width = Width2Pixel(TERM_WINDOW_GET_COLS() + 1) - 
needed_rect->width + (!(OPTIONS & OPT_SCROLLBAR_RIGHT) ? (scrollbar_trough_width()) : 
0);
+    preedit_rect->width = Width2Pixel(TERM_WINDOW_GET_COLS() + 1) - 
needed_rect->width + (!(eterm_options & OPT_SCROLLBAR_RIGHT) ? 
(scrollbar_trough_width()) : 0);
     preedit_rect->height = Height2Pixel(1);
 
-    status_rect->x = (scrollbar_is_visible() && !(OPTIONS & OPT_SCROLLBAR_RIGHT)) ? 
(scrollbar_trough_width()) : 0;
+    status_rect->x = (scrollbar_is_visible() && !(eterm_options & 
OPT_SCROLLBAR_RIGHT)) ? (scrollbar_trough_width()) : 0;
     status_rect->y = Height2Pixel(TERM_WINDOW_GET_ROWS() - 1);
 
     status_rect->width = needed_rect->width ? needed_rect->width : 
Width2Pixel(TERM_WINDOW_GET_COLS() + 1);
@@ -2190,7 +2190,7 @@
         tt_winsize(0);
 
         /* become virtual console, fail silently */
-        if (OPTIONS & OPT_CONSOLE) {
+        if (eterm_options & OPT_CONSOLE) {
             int fd = 1;
 
             privileges(INVOKE);
@@ -2255,7 +2255,7 @@
                 shell = "/bin/sh";
 
             argv0 = my_basename(shell);
-            if (OPTIONS & OPT_LOGIN_SHELL) {
+            if (eterm_options & OPT_LOGIN_SHELL) {
                 char *p = MALLOC(strlen(argv0) + 2);
 
                 p[0] = '-';
@@ -2270,7 +2270,7 @@
     }
 #ifdef UTMP_SUPPORT
     privileges(RESTORE);
-    if (OPTIONS & OPT_WRITE_UTMP) {
+    if (eterm_options & OPT_WRITE_UTMP) {
         add_utmp_entry(ttydev, display_name, ptyfd);
     }
     privileges(IGNORE);
@@ -2985,7 +2985,7 @@
     init_locale();
 
 #ifdef META8_OPTION
-    meta_char = (OPTIONS & OPT_META8 ? 0x80 : 033);
+    meta_char = (eterm_options & OPT_META8 ? 0x80 : 033);
 #endif
 
 #ifdef GREEK_SUPPORT
@@ -3330,7 +3330,7 @@
                         } else {
                             /* Our file descriptor went bye-bye. */
                             cmd_fd = -1;
-                            if (!paused && (OPTIONS & OPT_PAUSE)) {
+                            if (!paused && (eterm_options & OPT_PAUSE)) {
                                 paused = 1;
                             }
                             break;
@@ -3338,7 +3338,7 @@
                     } else if (n == 0) {
                         /* EOF */
                         cmd_fd = -1;
-                        if (!paused && (OPTIONS & OPT_PAUSE)) {
+                        if (!paused && (eterm_options & OPT_PAUSE)) {
                             paused = 1;
                         }
                         break;
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/eterm_debug.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- eterm_debug.h       19 Feb 2003 21:17:49 -0000      1.8
+++ eterm_debug.h       22 Aug 2003 03:52:01 -0000      1.9
@@ -38,8 +38,8 @@
 #  define D_SELECT(x)                  DPRINTF1(x)
 #  define DEBUG_UTMP                   1
 #  define D_UTMP(x)                    DPRINTF1(x)
-#  define DEBUG_OPTIONS                        1
-#  define D_OPTIONS(x)                 DPRINTF1(x)
+#  define DEBUG_eterm_options                  1
+#  define D_eterm_options(x)                   DPRINTF1(x)
 #  define DEBUG_IMLIB                  1
 #  define D_IMLIB(x)                   DPRINTF1(x)
 #  define DEBUG_PIXMAP                 1
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/events.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -3 -r1.59 -r1.60
--- events.c    22 Aug 2003 03:19:43 -0000      1.59
+++ events.c    22 Aug 2003 03:52:01 -0000      1.60
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: events.c,v 1.59 2003/08/22 03:19:43 mej Exp $";
+static const char cvs_ident[] = "$Id: events.c,v 1.60 2003/08/22 03:52:01 mej Exp $";
 
 #include "config.h"
 #include "feature.h"
@@ -208,7 +208,7 @@
     REQUIRE_RVAL(XEVENT_IS_MYWIN(ev, &primary_data), 0);
 
     COUNT_EVENT(keypress_cnt);
-    if (!(OPTIONS & OPT_NO_INPUT)) {
+    if (!(eterm_options & OPT_NO_INPUT)) {
         lookup_key(ev);
     }
     PROF_DONE(handle_key_press);
@@ -470,8 +470,8 @@
                 redraw_image(image_bg);
             }
         }
-        if (OPTIONS & OPT_SCROLLBAR_POPUP) {
-            map_scrollbar(OPTIONS & OPT_SCROLLBAR);
+        if (eterm_options & OPT_SCROLLBAR_POPUP) {
+            map_scrollbar(eterm_options & OPT_SCROLLBAR);
         } else {
             scrollbar_set_focus(TermWin.focus);
             scrollbar_draw(IMAGE_STATE_NORMAL, MODE_SOLID);
@@ -498,7 +498,7 @@
             images[image_bg].current = images[image_bg].disabled;
             redraw_image(image_bg);
         }
-        if (OPTIONS & OPT_SCROLLBAR_POPUP) {
+        if (eterm_options & OPT_SCROLLBAR_POPUP) {
             map_scrollbar(0);
         } else {
             scrollbar_set_focus(TermWin.focus);
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/font.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- font.c      22 Aug 2003 03:19:43 -0000      1.40
+++ font.c      22 Aug 2003 03:52:01 -0000      1.41
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: font.c,v 1.40 2003/08/22 03:19:43 mej Exp $";
+static const char cvs_ident[] = "$Id: font.c,v 1.41 2003/08/22 03:52:01 mej Exp $";
 
 #include "config.h"
 #include "feature.h"
@@ -588,7 +588,7 @@
         TermWin.fprop = 1;      /* Proportional font */
 
     /* For proportional fonts with large size variations, do some math-fu to try and 
help the appearance */
-    if (TermWin.fprop && (OPTIONS & OPT_PROPORTIONAL) && TermWin.font->per_char && 
(TermWin.font->max_bounds.width - TermWin.font->min_bounds.width >= 3)) {
+    if (TermWin.fprop && (eterm_options & OPT_PROPORTIONAL) && TermWin.font->per_char 
&& (TermWin.font->max_bounds.width - TermWin.font->min_bounds.width >= 3)) {
         int cw, n = 0, sum = 0, sumsq = 0, min_w, max_w;
         unsigned int i;
         double dev;
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/options.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -3 -r1.125 -r1.126
--- options.c   22 Aug 2003 03:19:43 -0000      1.125
+++ options.c   22 Aug 2003 03:52:01 -0000      1.126
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: options.c,v 1.125 2003/08/22 03:19:43 mej Exp 
$";
+static const char cvs_ident[] = "$Id: options.c,v 1.126 2003/08/22 03:52:01 mej Exp 
$";
 
 #include "config.h"
 #include "feature.h"
@@ -96,7 +96,7 @@
 static char *rs_greek_keyboard = NULL;
 #endif
 
-unsigned long OPTIONS = (OPT_SCROLLBAR | OPT_SELECT_TRAILING_SPACES | 
OPT_SECONDARY_SCREEN), image_toggles = 0;
+unsigned long eterm_options = (OPT_SCROLLBAR | OPT_SELECT_TRAILING_SPACES | 
OPT_SECONDARY_SCREEN), image_toggles = 0;
 char *theme_dir = NULL, *user_dir = NULL;
 char **rs_exec_args = NULL;     /* Args to exec (-e or --exec) */
 char *rs_title = NULL;          /* Window title */
@@ -158,7 +158,7 @@
 KeySym ks_smallfont = XK_less;
 #endif
 
-/* OPTIONS structure */
+/* eterm_options structure */
 spifopt_t option_list[] = {
     SPIFOPT_STR_PP('t', "theme", "select a theme", rs_theme),
     SPIFOPT_STR_PP('X', "config-file", "choose an alternate config file", 
rs_config_file),
@@ -176,13 +176,13 @@
 #else
     SPIFOPT_INT_LONG_PP("debug", "level of debugging information to show (0-5)", 
DEBUG_LEVEL),
 #endif
-    SPIFOPT_BOOL_LONG_PP("install", "install a private colormap", OPTIONS, 
OPT_INSTALL),
+    SPIFOPT_BOOL_LONG_PP("install", "install a private colormap", eterm_options, 
OPT_INSTALL),
 
     SPIFOPT_ABST_PP('h', "help", "display usage information", usage),
     SPIFOPT_ABST_LONG_PP("version", "display version and configuration information", 
version),
 
 /* =======[ Color options ]======= */
-    SPIFOPT_BOOL('r', "reverse-video", "reverse video", OPTIONS, OPT_REVERSE_VIDEO),
+    SPIFOPT_BOOL('r', "reverse-video", "reverse video", eterm_options, 
OPT_REVERSE_VIDEO),
     SPIFOPT_STR('b', "background-color", "background color", rs_color[bgColor]),
     SPIFOPT_STR('f', "foreground-color", "foreground color", rs_color[fgColor]),
     SPIFOPT_STR_LONG("color0", "color 0", rs_color[minColor]),
@@ -215,7 +215,7 @@
 
     /* =======[ X11 options ]======= */
     SPIFOPT_STR('g', "geometry", "WxH+X+Y = size and position", rs_geometry),
-    SPIFOPT_BOOL('i', "iconic", "start iconified", OPTIONS, OPT_ICONIC),
+    SPIFOPT_BOOL('i', "iconic", "start iconified", eterm_options, OPT_ICONIC),
     SPIFOPT_STR('n', "name", "client instance, icon, and title strings", rs_name),
     SPIFOPT_STR('T', "title", "title string", rs_title),
     SPIFOPT_STR_LONG("icon-name", "icon name", rs_iconName),
@@ -232,7 +232,7 @@
     SPIFOPT_STR_LONG("font2", "font 2", rs_font[2]),
     SPIFOPT_STR_LONG("font3", "font 3", rs_font[3]),
     SPIFOPT_STR_LONG("font4", "font 4", rs_font[4]),
-    SPIFOPT_BOOL_LONG("proportional", "toggle proportional font optimizations", 
OPTIONS, OPT_PROPORTIONAL),
+    SPIFOPT_BOOL_LONG("proportional", "toggle proportional font optimizations", 
eterm_options, OPT_PROPORTIONAL),
     SPIFOPT_STR_LONG("font-fx", "specify font effects for the terminal fonts", 
rs_font_effects),
 
     /* =======[ Pixmap options ]======= */
@@ -275,35 +275,35 @@
 #endif
 
     /* =======[ Toggles ]======= */
-    SPIFOPT_BOOL('l', "login-shell", "login shell, prepend - to shell name", OPTIONS, 
OPT_LOGIN_SHELL),
-    SPIFOPT_BOOL('s', "scrollbar", "display scrollbar", OPTIONS, OPT_SCROLLBAR),
-    SPIFOPT_BOOL('u', "utmp-logging", "make a utmp entry", OPTIONS, OPT_WRITE_UTMP),
-    SPIFOPT_BOOL('v', "visual-bell", "visual bell", OPTIONS, OPT_VISUAL_BELL),
-    SPIFOPT_BOOL('H', "home-on-output", "jump to bottom on output", OPTIONS, 
OPT_HOME_ON_OUTPUT),
-    SPIFOPT_BOOL_LONG("home-on-input", "jump to bottom on input", OPTIONS, 
OPT_HOME_ON_INPUT),
-    SPIFOPT_BOOL('q', "no-input", "configure for output only", OPTIONS, OPT_NO_INPUT),
-    SPIFOPT_BOOL_LONG("scrollbar-right", "display the scrollbar on the right", 
OPTIONS, OPT_SCROLLBAR_RIGHT),
-    SPIFOPT_BOOL_LONG("scrollbar-floating", "display the scrollbar with no trough", 
OPTIONS, OPT_SCROLLBAR_FLOATING),
-    SPIFOPT_BOOL_LONG("scrollbar-popup", "popup the scrollbar only when focused", 
OPTIONS, OPT_SCROLLBAR_POPUP),
-    SPIFOPT_BOOL('x', "borderless", "force Eterm to have no borders", OPTIONS, 
OPT_BORDERLESS),
+    SPIFOPT_BOOL('l', "login-shell", "login shell, prepend - to shell name", 
eterm_options, OPT_LOGIN_SHELL),
+    SPIFOPT_BOOL('s', "scrollbar", "display scrollbar", eterm_options, OPT_SCROLLBAR),
+    SPIFOPT_BOOL('u', "utmp-logging", "make a utmp entry", eterm_options, 
OPT_WRITE_UTMP),
+    SPIFOPT_BOOL('v', "visual-bell", "visual bell", eterm_options, OPT_VISUAL_BELL),
+    SPIFOPT_BOOL('H', "home-on-output", "jump to bottom on output", eterm_options, 
OPT_HOME_ON_OUTPUT),
+    SPIFOPT_BOOL_LONG("home-on-input", "jump to bottom on input", eterm_options, 
OPT_HOME_ON_INPUT),
+    SPIFOPT_BOOL('q', "no-input", "configure for output only", eterm_options, 
OPT_NO_INPUT),
+    SPIFOPT_BOOL_LONG("scrollbar-right", "display the scrollbar on the right", 
eterm_options, OPT_SCROLLBAR_RIGHT),
+    SPIFOPT_BOOL_LONG("scrollbar-floating", "display the scrollbar with no trough", 
eterm_options, OPT_SCROLLBAR_FLOATING),
+    SPIFOPT_BOOL_LONG("scrollbar-popup", "popup the scrollbar only when focused", 
eterm_options, OPT_SCROLLBAR_POPUP),
+    SPIFOPT_BOOL('x', "borderless", "force Eterm to have no borders", eterm_options, 
OPT_BORDERLESS),
 #ifndef NO_MAPALERT
 # ifdef MAPALERT_OPTION
-    SPIFOPT_BOOL('m', "map-alert", "uniconify on beep", OPTIONS, OPT_MAP_ALERT),
+    SPIFOPT_BOOL('m', "map-alert", "uniconify on beep", eterm_options, OPT_MAP_ALERT),
 # endif
 #endif
 #ifdef META8_OPTION
-    SPIFOPT_BOOL('8', "meta-8", "Meta key toggles 8-bit", OPTIONS, OPT_META8),
+    SPIFOPT_BOOL('8', "meta-8", "Meta key toggles 8-bit", eterm_options, OPT_META8),
 #endif
-    SPIFOPT_BOOL_LONG("double-buffer", "reduce exposes using double-buffering (and 
more memory)", OPTIONS, OPT_DOUBLE_BUFFER),
-    SPIFOPT_BOOL_LONG("no-cursor", "disable the text cursor", OPTIONS, OPT_NO_CURSOR),
-    SPIFOPT_BOOL_LONG("pause", "pause after the child process exits", OPTIONS, 
OPT_PAUSE),
-    SPIFOPT_BOOL_LONG("xterm-select", "duplicate xterm's selection behavior", 
OPTIONS, OPT_XTERM_SELECT),
-    SPIFOPT_BOOL_LONG("select-line", "triple-click selects whole line", OPTIONS, 
OPT_SELECT_WHOLE_LINE),
-    SPIFOPT_BOOL_LONG("select-trailing-spaces", "do not skip trailing spaces when 
selecting", OPTIONS, OPT_SELECT_TRAILING_SPACES),
-    SPIFOPT_BOOL_LONG("report-as-keysyms", "report special keys as keysyms", OPTIONS, 
OPT_REPORT_AS_KEYSYMS),
+    SPIFOPT_BOOL_LONG("double-buffer", "reduce exposes using double-buffering (and 
more memory)", eterm_options, OPT_DOUBLE_BUFFER),
+    SPIFOPT_BOOL_LONG("no-cursor", "disable the text cursor", eterm_options, 
OPT_NO_CURSOR),
+    SPIFOPT_BOOL_LONG("pause", "pause after the child process exits", eterm_options, 
OPT_PAUSE),
+    SPIFOPT_BOOL_LONG("xterm-select", "duplicate xterm's selection behavior", 
eterm_options, OPT_XTERM_SELECT),
+    SPIFOPT_BOOL_LONG("select-line", "triple-click selects whole line", 
eterm_options, OPT_SELECT_WHOLE_LINE),
+    SPIFOPT_BOOL_LONG("select-trailing-spaces", "do not skip trailing spaces when 
selecting", eterm_options, OPT_SELECT_TRAILING_SPACES),
+    SPIFOPT_BOOL_LONG("report-as-keysyms", "report special keys as keysyms", 
eterm_options, OPT_REPORT_AS_KEYSYMS),
     SPIFOPT_BOOL_LONG("buttonbar", "toggle the display of all buttonbars", 
rs_buttonbars, BBAR_FORCE_TOGGLE),
-    SPIFOPT_BOOL_LONG("resize-gravity", "toggle gravitation to nearest corner on 
resize", OPTIONS, OPT_RESIZE_GRAVITY),
-    SPIFOPT_BOOL_LONG("secondary-screen", "toggle use of secondary screen", OPTIONS, 
OPT_SECONDARY_SCREEN),
+    SPIFOPT_BOOL_LONG("resize-gravity", "toggle gravitation to nearest corner on 
resize", eterm_options, OPT_RESIZE_GRAVITY),
+    SPIFOPT_BOOL_LONG("secondary-screen", "toggle use of secondary screen", 
eterm_options, OPT_SECONDARY_SCREEN),
 
 /* =======[ Keyboard options ]======= */
 #if defined (HOTKEY_CTRL) || defined (HOTKEY_META)
@@ -341,7 +341,7 @@
     SPIFOPT_INT('z', "delay", "initial delay in seconds", rs_delay),
 #endif
     SPIFOPT_ABST('a', "attribute", "parse an attribute in the specified context", 
handle_attribute),
-    SPIFOPT_BOOL('C', "console", "grab console messages", OPTIONS, OPT_CONSOLE),
+    SPIFOPT_BOOL('C', "console", "grab console messages", eterm_options, OPT_CONSOLE),
     SPIFOPT_ARGS('e', "exec", "execute a command rather than a shell", rs_exec_args)
 };
 
@@ -422,8 +422,8 @@
 #if DEBUG >= DEBUG_UTMP
     printf(" +DEBUG_UTMP");
 #endif
-#if DEBUG >= DEBUG_OPTIONS
-    printf(" +DEBUG_OPTIONS");
+#if DEBUG >= DEBUG_eterm_options
+    printf(" +DEBUG_eterm_options");
 #endif
 #if DEBUG >= DEBUG_IMLIB
     printf(" +DEBUG_IMLIB");
@@ -845,7 +845,7 @@
         char *tmp = get_pword(2, buff);
 
         if (!BEG_STRCASECMP(tmp, "reverse")) {
-            OPTIONS |= OPT_REVERSE_VIDEO;
+            eterm_options |= OPT_REVERSE_VIDEO;
         } else if (BEG_STRCASECMP(tmp, "normal")) {
             print_error("Parse error in file %s, line %lu:  Invalid value \"%s\" for 
attribute video\n",
                         file_peek_path(), file_peek_line(), tmp);
@@ -994,9 +994,9 @@
         } else if (!BEG_STRCASECMP(tmp, "prop")) {
             tmp = get_pword(2, tmp);
             if (BOOL_OPT_ISTRUE(tmp)) {
-                OPTIONS |= OPT_PROPORTIONAL;
+                eterm_options |= OPT_PROPORTIONAL;
             } else if (BOOL_OPT_ISFALSE(tmp)) {
-                OPTIONS &= ~(OPT_PROPORTIONAL);
+                eterm_options &= ~(OPT_PROPORTIONAL);
             } else {
                 print_error("Parse error in file %s, line %lu:  Invalid/missing 
boolean value for attribute proportional\n",
                             file_peek_path(), file_peek_line());
@@ -1057,9 +1057,9 @@
     if (!BEG_STRCASECMP(buff, "map_alert ")) {
 #if !defined(NO_MAPALERT) && defined(MAPALERT_OPTION)
         if (bool_val) {
-            OPTIONS |= OPT_MAP_ALERT;
+            eterm_options |= OPT_MAP_ALERT;
         } else {
-            OPTIONS &= ~(OPT_MAP_ALERT);
+            eterm_options &= ~(OPT_MAP_ALERT);
         }
 #else
         print_warning("Support for the map_alert attribute was not compiled in, 
ignoring\n");
@@ -1067,29 +1067,29 @@
 
     } else if (!BEG_STRCASECMP(buff, "visual_bell ")) {
         if (bool_val) {
-            OPTIONS |= OPT_VISUAL_BELL;
+            eterm_options |= OPT_VISUAL_BELL;
         } else {
-            OPTIONS &= ~(OPT_VISUAL_BELL);
+            eterm_options &= ~(OPT_VISUAL_BELL);
         }
     } else if (!BEG_STRCASECMP(buff, "login_shell ")) {
         if (bool_val) {
-            OPTIONS |= OPT_LOGIN_SHELL;
+            eterm_options |= OPT_LOGIN_SHELL;
         } else {
-            OPTIONS &= ~(OPT_LOGIN_SHELL);
+            eterm_options &= ~(OPT_LOGIN_SHELL);
         }
     } else if (!BEG_STRCASECMP(buff, "scrollbar ")) {
         if (bool_val) {
-            OPTIONS |= OPT_SCROLLBAR;
+            eterm_options |= OPT_SCROLLBAR;
         } else {
-            OPTIONS &= ~(OPT_SCROLLBAR);
+            eterm_options &= ~(OPT_SCROLLBAR);
         }
 
     } else if (!BEG_STRCASECMP(buff, "utmp_logging ")) {
 #ifdef UTMP_SUPPORT
         if (bool_val) {
-            OPTIONS |= OPT_WRITE_UTMP;
+            eterm_options |= OPT_WRITE_UTMP;
         } else {
-            OPTIONS &= ~(OPT_WRITE_UTMP);
+            eterm_options &= ~(OPT_WRITE_UTMP);
         }
 #else
         print_warning("Support for the utmp_logging attribute was not compiled in, 
ignoring\n");
@@ -1098,9 +1098,9 @@
     } else if (!BEG_STRCASECMP(buff, "meta8 ")) {
 #ifdef META8_OPTION
         if (bool_val) {
-            OPTIONS |= OPT_META8;
+            eterm_options |= OPT_META8;
         } else {
-            OPTIONS &= ~(OPT_META8);
+            eterm_options &= ~(OPT_META8);
         }
 #else
         print_warning("Support for the meta8 attribute was not compiled in, 
ignoring\n");
@@ -1108,111 +1108,111 @@
 
     } else if (!BEG_STRCASECMP(buff, "iconic ")) {
         if (bool_val) {
-            OPTIONS |= OPT_ICONIC;
+            eterm_options |= OPT_ICONIC;
         } else {
-            OPTIONS &= ~(OPT_ICONIC);
+            eterm_options &= ~(OPT_ICONIC);
         }
 
     } else if (!BEG_STRCASECMP(buff, "home_on_output ")) {
         if (bool_val) {
-            OPTIONS |= OPT_HOME_ON_OUTPUT;
+            eterm_options |= OPT_HOME_ON_OUTPUT;
         } else {
-            OPTIONS &= ~(OPT_HOME_ON_OUTPUT);
+            eterm_options &= ~(OPT_HOME_ON_OUTPUT);
         }
 
     } else if (!BEG_STRCASECMP(buff, "home_on_input ")) {
         if (bool_val) {
-            OPTIONS |= OPT_HOME_ON_INPUT;
+            eterm_options |= OPT_HOME_ON_INPUT;
         } else {
-            OPTIONS &= ~(OPT_HOME_ON_INPUT);
+            eterm_options &= ~(OPT_HOME_ON_INPUT);
         }
 
     } else if (!BEG_STRCASECMP(buff, "no_input ")) {
         if (bool_val) {
-            OPTIONS |= OPT_NO_INPUT;
+            eterm_options |= OPT_NO_INPUT;
         } else {
-            OPTIONS &= ~(OPT_NO_INPUT);
+            eterm_options &= ~(OPT_NO_INPUT);
         }
 
     } else if (!BEG_STRCASECMP(buff, "scrollbar_floating ")) {
         if (bool_val) {
-            OPTIONS |= OPT_SCROLLBAR_FLOATING;
+            eterm_options |= OPT_SCROLLBAR_FLOATING;
         } else {
-            OPTIONS &= ~(OPT_SCROLLBAR_FLOATING);
+            eterm_options &= ~(OPT_SCROLLBAR_FLOATING);
         }
 
     } else if (!BEG_STRCASECMP(buff, "scrollbar_right ")) {
         if (bool_val) {
-            OPTIONS |= OPT_SCROLLBAR_RIGHT;
+            eterm_options |= OPT_SCROLLBAR_RIGHT;
         } else {
-            OPTIONS &= ~(OPT_SCROLLBAR_RIGHT);
+            eterm_options &= ~(OPT_SCROLLBAR_RIGHT);
         }
     } else if (!BEG_STRCASECMP(buff, "scrollbar_popup ")) {
         if (bool_val) {
-            OPTIONS |= OPT_SCROLLBAR_POPUP;
+            eterm_options |= OPT_SCROLLBAR_POPUP;
         } else {
-            OPTIONS &= ~(OPT_SCROLLBAR_POPUP);
+            eterm_options &= ~(OPT_SCROLLBAR_POPUP);
         }
     } else if (!BEG_STRCASECMP(buff, "borderless ")) {
         if (bool_val) {
-            OPTIONS |= OPT_BORDERLESS;
+            eterm_options |= OPT_BORDERLESS;
         } else {
-            OPTIONS &= ~(OPT_BORDERLESS);
+            eterm_options &= ~(OPT_BORDERLESS);
         }
     } else if (!BEG_STRCASECMP(buff, "double_buffer ")) {
         if (bool_val) {
-            OPTIONS |= OPT_DOUBLE_BUFFER;
+            eterm_options |= OPT_DOUBLE_BUFFER;
         } else {
-            OPTIONS &= ~(OPT_DOUBLE_BUFFER);
+            eterm_options &= ~(OPT_DOUBLE_BUFFER);
         }
 
     } else if (!BEG_STRCASECMP(buff, "no_cursor ")) {
         if (bool_val) {
-            OPTIONS |= OPT_NO_CURSOR;
+            eterm_options |= OPT_NO_CURSOR;
         } else {
-            OPTIONS &= ~(OPT_NO_CURSOR);
+            eterm_options &= ~(OPT_NO_CURSOR);
         }
 
     } else if (!BEG_STRCASECMP(buff, "pause ")) {
         if (bool_val) {
-            OPTIONS |= OPT_PAUSE;
+            eterm_options |= OPT_PAUSE;
         } else {
-            OPTIONS &= ~(OPT_PAUSE);
+            eterm_options &= ~(OPT_PAUSE);
         }
 
     } else if (!BEG_STRCASECMP(buff, "xterm_select ")) {
         if (bool_val) {
-            OPTIONS |= OPT_XTERM_SELECT;
+            eterm_options |= OPT_XTERM_SELECT;
         } else {
-            OPTIONS &= ~(OPT_XTERM_SELECT);
+            eterm_options &= ~(OPT_XTERM_SELECT);
         }
 
     } else if (!BEG_STRCASECMP(buff, "select_line ")) {
         if (bool_val) {
-            OPTIONS |= OPT_SELECT_WHOLE_LINE;
+            eterm_options |= OPT_SELECT_WHOLE_LINE;
         } else {
-            OPTIONS &= ~(OPT_SELECT_WHOLE_LINE);
+            eterm_options &= ~(OPT_SELECT_WHOLE_LINE);
         }
 
     } else if (!BEG_STRCASECMP(buff, "select_trailing_spaces ")) {
         if (bool_val) {
-            OPTIONS |= OPT_SELECT_TRAILING_SPACES;
+            eterm_options |= OPT_SELECT_TRAILING_SPACES;
         } else {
-            OPTIONS &= ~(OPT_SELECT_TRAILING_SPACES);
+            eterm_options &= ~(OPT_SELECT_TRAILING_SPACES);
         }
 
     } else if (!BEG_STRCASECMP(buff, "report_as_keysyms ")) {
         if (bool_val) {
-            OPTIONS |= OPT_REPORT_AS_KEYSYMS;
+            eterm_options |= OPT_REPORT_AS_KEYSYMS;
         } else {
-            OPTIONS &= ~(OPT_REPORT_AS_KEYSYMS);
+            eterm_options &= ~(OPT_REPORT_AS_KEYSYMS);
         }
 
     } else if (!BEG_STRCASECMP(buff, "mbyte_cursor ")) {
         if (bool_val) {
-            OPTIONS |= OPT_MBYTE_CURSOR;
+            eterm_options |= OPT_MBYTE_CURSOR;
         } else {
-            OPTIONS &= ~(OPT_MBYTE_CURSOR);
+            eterm_options &= ~(OPT_MBYTE_CURSOR);
         }
 
     } else if (!BEG_STRCASECMP(buff, "itrans ") || !BEG_STRCASECMP(buff, 
"immotile_trans ")) {
@@ -1233,9 +1233,9 @@
 
     } else if (!BEG_STRCASECMP(buff, "resize_gravity")) {
         if (bool_val) {
-            OPTIONS |= OPT_RESIZE_GRAVITY;
+            eterm_options |= OPT_RESIZE_GRAVITY;
         } else {
-            OPTIONS &= ~(OPT_RESIZE_GRAVITY);
+            eterm_options &= ~(OPT_RESIZE_GRAVITY);
         }
     } else {
         print_error("Parse error in file %s, line %lu:  Attribute \"%s\" is not valid 
within context toggles\n", file_peek_path(),
@@ -1459,7 +1459,7 @@
 
         for (k = 0; k < n; k++) {
             rs_exec_args[k] = get_word(k + 2, buff);
-            D_OPTIONS(("rs_exec_args[%d] == %s\n", k, rs_exec_args[k]));
+            D_eterm_options(("rs_exec_args[%d] == %s\n", k, rs_exec_args[k]));
         }
         rs_exec_args[n] = (char *) NULL;
 
@@ -2581,7 +2581,7 @@
     }
     /* no point having a scrollbar without having any scrollback! */
     if (!TermWin.saveLines) {
-        OPTIONS &= ~OPT_SCROLLBAR;
+        eterm_options &= ~OPT_SCROLLBAR;
     }
 #ifdef PRINTPIPE
     if (!rs_print_pipe) {
@@ -2941,7 +2941,7 @@
     }
 #endif
 
-    if (OPTIONS & OPT_REVERSE_VIDEO) {
+    if (eterm_options & OPT_REVERSE_VIDEO) {
         char *tmp;
 
         /* swap foreground/background colors */
@@ -3043,7 +3043,7 @@
     action_t *action;
     buttonbar_t *bbar;
 
-    D_OPTIONS(("Saving %s config to \"%s\"\n", (save_theme ? "theme" : "user"), 
NONULL(path)));
+    D_eterm_options(("Saving %s config to \"%s\"\n", (save_theme ? "theme" : "user"), 
NONULL(path)));
 
     cur_tm = localtime(&cur_time);
 
@@ -3055,7 +3055,7 @@
             if (stat(path, &fst) || !S_ISDIR(fst.st_mode) || !CAN_WRITE(fst)) {
                 char *tmp = NULL;
 
-                D_OPTIONS(("Problem with \"%s\".  S_ISDIR == %d, CAN_WRITE == %d\n", 
path, S_ISDIR(fst.st_mode), CAN_WRITE(fst)));
+                D_eterm_options(("Problem with \"%s\".  S_ISDIR == %d, CAN_WRITE == 
%d\n", path, S_ISDIR(fst.st_mode), CAN_WRITE(fst)));
                 if (theme_dir) {
                     tmp = strrchr(theme_dir, '/');
                     if (tmp) {
@@ -3063,7 +3063,7 @@
                     }
                 }
                 snprintf(path, PATH_MAX, "%s/.Eterm/themes/%s", getenv("HOME"), (tmp 
? tmp : "Eterm"));
-                D_OPTIONS(("Trying \"%s\" instead, tmp == \"%s\"\n", path, tmp));
+                D_eterm_options(("Trying \"%s\" instead, tmp == \"%s\"\n", path, 
tmp));
                 if (tmp) {
                     *(--tmp) = '/';
                 }
@@ -3074,7 +3074,7 @@
                 }
             }
             strcat(path, "/" THEME_CFG);
-            D_OPTIONS(("Final path is \"%s\"\n", path));
+            D_eterm_options(("Final path is \"%s\"\n", path));
             path[PATH_MAX] = 0;
         }
     } else {
@@ -3085,7 +3085,7 @@
             if (stat(path, &fst) || !S_ISDIR(fst.st_mode) || !CAN_WRITE(fst)) {
                 char *tmp = NULL;
 
-                D_OPTIONS(("Problem with \"%s\".  S_ISDIR == %d, CAN_WRITE == %d\n", 
path, S_ISDIR(fst.st_mode), CAN_WRITE(fst)));
+                D_eterm_options(("Problem with \"%s\".  S_ISDIR == %d, CAN_WRITE == 
%d\n", path, S_ISDIR(fst.st_mode), CAN_WRITE(fst)));
                 if (user_dir) {
                     tmp = strrchr(user_dir, '/');
                     if (tmp) {
@@ -3093,7 +3093,7 @@
                     }
                 }
                 snprintf(path, PATH_MAX, "%s/.Eterm/themes/%s", getenv("HOME"), (tmp 
? tmp : "Eterm"));
-                D_OPTIONS(("Trying \"%s\" instead, tmp == \"%s\"\n", path, tmp));
+                D_eterm_options(("Trying \"%s\" instead, tmp == \"%s\"\n", path, 
tmp));
                 if (tmp) {
                     *(--tmp) = '/';
                 }
@@ -3104,7 +3104,7 @@
                 }
             }
             strcat(path, "/" USER_CFG);
-            D_OPTIONS(("Final path is \"%s\"\n", path));
+            D_eterm_options(("Final path is \"%s\"\n", path));
             path[PATH_MAX] = 0;
         }
     }
@@ -3164,7 +3164,7 @@
             (scrollbar_get_type() == SCROLLBAR_XTERM ? "xterm" : 
(scrollbar_get_type() == SCROLLBAR_MOTIF ? "motif" : "next")));
     fprintf(fp, "    scrollbar_width %d\n", scrollbar_anchor_width());
     fprintf(fp, "    font default %u\n", (unsigned int) font_idx);
-    fprintf(fp, "    font proportional %d\n", ((OPTIONS & OPT_PROPORTIONAL) ? 1 : 0));
+    fprintf(fp, "    font proportional %d\n", ((eterm_options & OPT_PROPORTIONAL) ? 1 
: 0));
     for (i = 0; i < font_cnt; i++) {
         if (etfonts[i]) {
             fprintf(fp, "    font %d %s\n", i, etfonts[i]);
@@ -3732,30 +3732,30 @@
     }
 
     fprintf(fp, "begin toggles\n");
-    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, "    login_shell %d\n", (OPTIONS & OPT_LOGIN_SHELL ? 1 : 0));
-    fprintf(fp, "    scrollbar %d\n", (OPTIONS & OPT_SCROLLBAR ? 1 : 0));
-    fprintf(fp, "    utmp_logging %d\n", (OPTIONS & OPT_WRITE_UTMP ? 1 : 0));
-    fprintf(fp, "    meta8 %d\n", (OPTIONS & OPT_META8 ? 1 : 0));
-    fprintf(fp, "    iconic %d\n", (OPTIONS & OPT_ICONIC ? 1 : 0));
-    fprintf(fp, "    home_on_output %d\n", (OPTIONS & OPT_HOME_ON_OUTPUT ? 1 : 0));
-    fprintf(fp, "    home_on_input %d\n", (OPTIONS & OPT_HOME_ON_INPUT ? 1 : 0));
-    fprintf(fp, "    no_input %d\n", (OPTIONS & OPT_NO_INPUT ? 1 : 0));
-    fprintf(fp, "    scrollbar_floating %d\n", (OPTIONS & OPT_SCROLLBAR_FLOATING ? 1 
: 0));
-    fprintf(fp, "    scrollbar_right %d\n", (OPTIONS & OPT_SCROLLBAR_RIGHT ? 1 : 0));
-    fprintf(fp, "    scrollbar_popup %d\n", (OPTIONS & OPT_SCROLLBAR_POPUP ? 1 : 0));
-    fprintf(fp, "    borderless %d\n", (OPTIONS & OPT_BORDERLESS ? 1 : 0));
-    fprintf(fp, "    double_buffer %d\n", (OPTIONS & OPT_DOUBLE_BUFFER ? 1 : 0));
-    fprintf(fp, "    no_cursor %d\n", (OPTIONS & OPT_NO_CURSOR ? 1 : 0));
-    fprintf(fp, "    pause %d\n", (OPTIONS & OPT_PAUSE ? 1 : 0));
-    fprintf(fp, "    xterm_select %d\n", (OPTIONS & OPT_XTERM_SELECT ? 1 : 0));
-    fprintf(fp, "    select_line %d\n", (OPTIONS & OPT_SELECT_WHOLE_LINE ? 1 : 0));
-    fprintf(fp, "    select_trailing_spaces %d\n", (OPTIONS & 
OPT_SELECT_TRAILING_SPACES ? 1 : 0));
-    fprintf(fp, "    report_as_keysyms %d\n", (OPTIONS & OPT_REPORT_AS_KEYSYMS ? 1 : 
0));
+    fprintf(fp, "    map_alert %d\n", (eterm_options & OPT_MAP_ALERT ? 1 : 0));
+    fprintf(fp, "    visual_bell %d\n", (eterm_options & OPT_VISUAL_BELL ? 1 : 0));
+    fprintf(fp, "    login_shell %d\n", (eterm_options & OPT_LOGIN_SHELL ? 1 : 0));
+    fprintf(fp, "    scrollbar %d\n", (eterm_options & OPT_SCROLLBAR ? 1 : 0));
+    fprintf(fp, "    utmp_logging %d\n", (eterm_options & OPT_WRITE_UTMP ? 1 : 0));
+    fprintf(fp, "    meta8 %d\n", (eterm_options & OPT_META8 ? 1 : 0));
+    fprintf(fp, "    iconic %d\n", (eterm_options & OPT_ICONIC ? 1 : 0));
+    fprintf(fp, "    home_on_output %d\n", (eterm_options & OPT_HOME_ON_OUTPUT ? 1 : 
0));
+    fprintf(fp, "    home_on_input %d\n", (eterm_options & OPT_HOME_ON_INPUT ? 1 : 
0));
+    fprintf(fp, "    no_input %d\n", (eterm_options & OPT_NO_INPUT ? 1 : 0));
+    fprintf(fp, "    scrollbar_floating %d\n", (eterm_options & 
OPT_SCROLLBAR_FLOATING ? 1 : 0));
+    fprintf(fp, "    scrollbar_right %d\n", (eterm_options & OPT_SCROLLBAR_RIGHT ? 1 
: 0));
+    fprintf(fp, "    scrollbar_popup %d\n", (eterm_options & OPT_SCROLLBAR_POPUP ? 1 
: 0));
+    fprintf(fp, "    borderless %d\n", (eterm_options & OPT_BORDERLESS ? 1 : 0));
+    fprintf(fp, "    double_buffer %d\n", (eterm_options & OPT_DOUBLE_BUFFER ? 1 : 
0));
+    fprintf(fp, "    no_cursor %d\n", (eterm_options & OPT_NO_CURSOR ? 1 : 0));
+    fprintf(fp, "    pause %d\n", (eterm_options & OPT_PAUSE ? 1 : 0));
+    fprintf(fp, "    xterm_select %d\n", (eterm_options & OPT_XTERM_SELECT ? 1 : 0));
+    fprintf(fp, "    select_line %d\n", (eterm_options & OPT_SELECT_WHOLE_LINE ? 1 : 
0));
+    fprintf(fp, "    select_trailing_spaces %d\n", (eterm_options & 
OPT_SELECT_TRAILING_SPACES ? 1 : 0));
+    fprintf(fp, "    report_as_keysyms %d\n", (eterm_options & OPT_REPORT_AS_KEYSYMS 
? 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, "    resize_gravity %d\n", (OPTIONS & OPT_RESIZE_GRAVITY ? 1 : 0));
+    fprintf(fp, "    resize_gravity %d\n", (eterm_options & OPT_RESIZE_GRAVITY ? 1 : 
0));
     fprintf(fp, "end toggles\n\n");
 
     fprintf(fp, "begin keyboard\n");
@@ -3809,7 +3809,7 @@
         }
         fprintf(fp, "\n");
     }
-#ifdef CUTCHAR_OPTIONS
+#ifdef CUTCHAR_eterm_options
     if (rs_cutchars) {
         fprintf(fp, "    cut_chars '%s'\n", rs_cutchars);
     }
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/options.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- options.h   22 Aug 2003 03:19:43 -0000      1.44
+++ options.h   22 Aug 2003 03:52:02 -0000      1.45
@@ -21,8 +21,8 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#ifndef _OPTIONS_H_
-#define _OPTIONS_H_
+#ifndef _eterm_options_H_
+#define _eterm_options_H_
 
 #include <X11/Xfuncproto.h>
 #include <X11/Intrinsic.h>     /* Xlib, Xutil, Xresource, Xfuncproto */
@@ -81,7 +81,7 @@
 /************ Structures ************/
 
 /************ Variables ************/
-extern unsigned long OPTIONS, image_toggles;
+extern unsigned long eterm_options, image_toggles;
 extern char *theme_dir, *user_dir;
 extern       char **rs_exec_args;       /* Args to exec (-e or --exec) */
 extern       char  *rs_title;          /* Window title */
@@ -150,4 +150,4 @@
 
 _XFUNCPROTOEND
 
-#endif /* _OPTIONS_H_ */
+#endif /* _eterm_options_H_ */
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/pixmap.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -3 -r1.96 -r1.97
--- pixmap.c    22 Aug 2003 03:19:43 -0000      1.96
+++ pixmap.c    22 Aug 2003 03:52:02 -0000      1.97
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: pixmap.c,v 1.96 2003/08/22 03:19:43 mej Exp $";
+static const char cvs_ident[] = "$Id: pixmap.c,v 1.97 2003/08/22 03:52:02 mej Exp $";
 
 #include "config.h"
 #include "feature.h"
@@ -1091,7 +1091,7 @@
         }
         simg->pmap->pixmap = create_trans_pixmap(simg, which, win, 0, 0, width, 
height);
         if (simg->pmap->pixmap != None) {
-            if ((which == image_bg) && (OPTIONS & OPT_DOUBLE_BUFFER)) {
+            if ((which == image_bg) && (eterm_options & OPT_DOUBLE_BUFFER)) {
                 copy_buffer_pixmap(MODE_TRANS, (unsigned long) simg->pmap->pixmap, 
width, height);
                 XSetWindowBackgroundPixmap(Xdisplay, win, buffer_pixmap);
             } else {
@@ -1117,7 +1117,7 @@
         }
         if (simg->pmap->pixmap != None) {
             D_PIXMAP(("Setting background of window 0x%08x to 0x%08x\n", win, 
simg->pmap->pixmap));
-            if ((which == image_bg) && (OPTIONS & OPT_DOUBLE_BUFFER)) {
+            if ((which == image_bg) && (eterm_options & OPT_DOUBLE_BUFFER)) {
                 copy_buffer_pixmap(MODE_VIEWPORT, (unsigned long) simg->pmap->pixmap, 
width, height);
                 XSetWindowBackgroundPixmap(Xdisplay, win, buffer_pixmap);
             } else {
@@ -1228,7 +1228,7 @@
                     bevel_pixmap(simg->pmap->pixmap, width, height, 
simg->iml->bevel->edges, simg->iml->bevel->up);
                 }
                 D_PIXMAP(("Setting background of window 0x%08x to 0x%08x\n", win, 
simg->pmap->pixmap));
-                if ((which == image_bg) && (OPTIONS & OPT_DOUBLE_BUFFER)) {
+                if ((which == image_bg) && (eterm_options & OPT_DOUBLE_BUFFER)) {
                     copy_buffer_pixmap(MODE_VIEWPORT, (unsigned long) 
simg->pmap->pixmap, width, height);
                     XSetWindowBackgroundPixmap(Xdisplay, win, buffer_pixmap);
                 } else {
@@ -1254,7 +1254,7 @@
 
     /* Fall back to solid mode if all else fails. */
     if (!image_mode_is(which, MODE_MASK)) {
-        if ((which == image_bg) && (OPTIONS & OPT_DOUBLE_BUFFER)) {
+        if ((which == image_bg) && (eterm_options & OPT_DOUBLE_BUFFER)) {
             copy_buffer_pixmap(MODE_SOLID, (unsigned long) PixColors[bgColor], width, 
height);
             XSetWindowBackgroundPixmap(Xdisplay, win, buffer_pixmap);
         } else {
@@ -1296,25 +1296,25 @@
     }
     getcwd(name, PATH_MAX);
     len = strlen(name);
-    D_OPTIONS(("search_path(\"%s\", \"%s\") called from \"%s\".\n", pathlist, file, 
name));
+    D_eterm_options(("search_path(\"%s\", \"%s\") called from \"%s\".\n", pathlist, 
file, name));
     if (len < PATH_MAX - 1) {
         strcat(name, "/");
         strncat(name, file, PATH_MAX - len - 1);
     }
-    D_OPTIONS(("Checking for file \"%s\"\n", name));
+    D_eterm_options(("Checking for file \"%s\"\n", name));
     if (!access(name, R_OK)) {
         if (stat(name, &fst)) {
-            D_OPTIONS(("Unable to stat %s -- %s\n", name, strerror(errno)));
+            D_eterm_options(("Unable to stat %s -- %s\n", name, strerror(errno)));
         } else {
-            D_OPTIONS(("Stat returned mode 0x%08o, S_ISDIR() == %d\n", fst.st_mode, 
S_ISDIR(fst.st_mode)));
+            D_eterm_options(("Stat returned mode 0x%08o, S_ISDIR() == %d\n", 
fst.st_mode, S_ISDIR(fst.st_mode)));
         }
         if (!S_ISDIR(fst.st_mode)) {
             return name;
         } else {
-            D_OPTIONS(("%s is a directory.\n", name));
+            D_eterm_options(("%s is a directory.\n", name));
         }
     } else {
-        D_OPTIONS(("Unable to access %s -- %s\n", name, strerror(errno)));
+        D_eterm_options(("Unable to access %s -- %s\n", name, strerror(errno)));
     }
 
     if ((p = strchr(file, '@')) == NULL)
@@ -1327,20 +1327,20 @@
     /* check if we can find it now */
     strncpy(name, file, len);
     name[len] = '\0';
-    D_OPTIONS(("Checking for file \"%s\"\n", name));
+    D_eterm_options(("Checking for file \"%s\"\n", name));
     if (!access(name, R_OK)) {
         if (stat(name, &fst)) {
-            D_OPTIONS(("Unable to stat %s -- %s\n", name, strerror(errno)));
+            D_eterm_options(("Unable to stat %s -- %s\n", name, strerror(errno)));
         } else {
-            D_OPTIONS(("Stat returned mode 0x%08o, S_ISDIR() == %d\n", fst.st_mode, 
S_ISDIR(fst.st_mode)));
+            D_eterm_options(("Stat returned mode 0x%08o, S_ISDIR() == %d\n", 
fst.st_mode, S_ISDIR(fst.st_mode)));
         }
         if (!S_ISDIR(fst.st_mode)) {
             return name;
         } else {
-            D_OPTIONS(("%s is a directory.\n", name));
+            D_eterm_options(("%s is a directory.\n", name));
         }
     } else {
-        D_OPTIONS(("Unable to access %s -- %s\n", name, strerror(errno)));
+        D_eterm_options(("Unable to access %s -- %s\n", name, strerror(errno)));
     }
     for (path = pathlist; path != NULL && *path != '\0'; path = p) {
         int n;
@@ -1372,24 +1372,24 @@
                 name[n++] = '/';
             name[n] = '\0';
             strncat(name, file, len);
-            D_OPTIONS(("Checking for file \"%s\"\n", name));
+            D_eterm_options(("Checking for file \"%s\"\n", name));
             if (!access(name, R_OK)) {
                 if (stat(name, &fst)) {
-                    D_OPTIONS(("Unable to stat %s -- %s\n", name, strerror(errno)));
+                    D_eterm_options(("Unable to stat %s -- %s\n", name, 
strerror(errno)));
                 } else {
-                    D_OPTIONS(("Stat returned mode 0x%08o, S_ISDIR() == %d\n", 
fst.st_mode, S_ISDIR(fst.st_mode)));
+                    D_eterm_options(("Stat returned mode 0x%08o, S_ISDIR() == %d\n", 
fst.st_mode, S_ISDIR(fst.st_mode)));
                 }
                 if (!S_ISDIR(fst.st_mode)) {
                     return name;
                 } else {
-                    D_OPTIONS(("%s is a directory.\n", name));
+                    D_eterm_options(("%s is a directory.\n", name));
                 }
             } else {
-                D_OPTIONS(("Unable to access %s -- %s\n", name, strerror(errno)));
+                D_eterm_options(("Unable to access %s -- %s\n", name, 
strerror(errno)));
             }
         }
     }
-    D_OPTIONS(("File \"%s\" not found in path.\n", file));
+    D_eterm_options(("File \"%s\" not found in path.\n", file));
     return ((const char *) NULL);
 }
 
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/screen.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -3 -r1.73 -r1.74
--- screen.c    22 Aug 2003 03:19:43 -0000      1.73
+++ screen.c    22 Aug 2003 03:52:02 -0000      1.74
@@ -3,7 +3,7 @@
  *
  */
 
-static const char cvs_ident[] = "$Id: screen.c,v 1.73 2003/08/22 03:19:43 mej Exp $";
+static const char cvs_ident[] = "$Id: screen.c,v 1.74 2003/08/22 03:52:02 mej Exp $";
 
 #include "config.h"
 #include "feature.h"
@@ -357,7 +357,7 @@
     /* Reset the rendering style to the default colors/style */
     scr_rendition(0, ~RS_None);
 #if NSCREENS
-    if (OPTIONS & OPT_SECONDARY_SCREEN) {
+    if (eterm_options & OPT_SECONDARY_SCREEN) {
         /* Reset the secondary screen */
         scr_change_screen(SECONDARY);
         scr_erase_screen(2);
@@ -432,7 +432,7 @@
 
     SWAP_IT(current_screen, scrn, tmp);
 #if NSCREENS
-    if (OPTIONS & OPT_SECONDARY_SCREEN) {
+    if (eterm_options & OPT_SECONDARY_SCREEN) {
         offset = TermWin.saveLines;
         if (!screen.text || !screen.rend)
             return (current_screen);
@@ -1525,11 +1525,11 @@
 {
 #ifndef NO_MAPALERT
 #ifdef MAPALERT_OPTION
-    if (OPTIONS & OPT_MAP_ALERT)
+    if (eterm_options & OPT_MAP_ALERT)
 #endif
         XMapWindow(Xdisplay, TermWin.parent);
 #endif
-    if (OPTIONS & OPT_VISUAL_BELL) {
+    if (eterm_options & OPT_VISUAL_BELL) {
         scr_rvideo_mode(!rvideo);
         scr_rvideo_mode(!rvideo);
     } else
@@ -2690,7 +2690,7 @@
             *str++ = *t++;
         col = 0;
         if (screen.text[row][TERM_WINDOW_GET_REPORTED_COLS()] != WRAP_CHAR) {
-            if (!(OPTIONS & OPT_SELECT_TRAILING_SPACES)) {
+            if (!(eterm_options & OPT_SELECT_TRAILING_SPACES)) {
                 for (str--; *str == ' ' || *str == '\t'; str--);
                 str++;
             }
@@ -2710,7 +2710,7 @@
     UPPER_BOUND(end_col, TERM_WINDOW_GET_REPORTED_COLS());
     for (; col < end_col; col++)
         *str++ = *t++;
-    if (!(OPTIONS & OPT_SELECT_TRAILING_SPACES)) {
+    if (!(eterm_options & OPT_SELECT_TRAILING_SPACES)) {
         for (str--; *str == ' ' || *str == '\t'; str--);
         str++;
     }
@@ -2830,7 +2830,7 @@
     for (;;) {
         for (; beg_col > 0; beg_col--) {
             t = *--stp;
-            if (DELIMIT_TEXT(t) != w1 || (w1 && *stp1 != t && OPTIONS & 
OPT_XTERM_SELECT))
+            if (DELIMIT_TEXT(t) != w1 || (w1 && *stp1 != t && eterm_options & 
OPT_XTERM_SELECT))
                 break;
 #ifdef MULTI_CHARSET
             r = *--srp;
@@ -2838,7 +2838,7 @@
                 break;
 #endif
         }
-        if (!(OPTIONS & OPT_XTERM_SELECT)) {
+        if (!(eterm_options & OPT_XTERM_SELECT)) {
             if (beg_col == col && beg_col > 0) {
                 if (DELIMIT_TEXT(*stp)) /* space or tab or cutchar */
                     break;
@@ -2864,10 +2864,10 @@
 #ifdef MULTI_CHARSET
                 srp = &(screen.rend[beg_row + row_offset - 1][last_col + 1]);
                 r = *(srp - 1);
-                if (DELIMIT_TEXT(t) == w1 && (!w1 || *stp == t || !(OPTIONS & 
OPT_XTERM_SELECT)) && DELIMIT_REND(r) == w2) {
+                if (DELIMIT_TEXT(t) == w1 && (!w1 || *stp == t || !(eterm_options & 
OPT_XTERM_SELECT)) && DELIMIT_REND(r) == w2) {
                     srp--;
 #else
-                if (DELIMIT_TEXT(t) == w1 && (!w1 || *stp == t || !(OPTIONS & 
OPT_XTERM_SELECT))) {
+                if (DELIMIT_TEXT(t) == w1 && (!w1 || *stp == t || !(eterm_options & 
OPT_XTERM_SELECT))) {
 #endif
                     stp--;
                     beg_row--;
@@ -2893,7 +2893,7 @@
     for (;;) {
         for (; end_col < last_col; end_col++) {
             t = *++stp;
-            if (DELIMIT_TEXT(t) != w1 || (w1 && *stp1 != t && OPTIONS & 
OPT_XTERM_SELECT))
+            if (DELIMIT_TEXT(t) != w1 || (w1 && *stp1 != t && eterm_options & 
OPT_XTERM_SELECT))
                 break;
 #ifdef MULTI_CHARSET
             r = *++srp;
@@ -2901,7 +2901,7 @@
                 break;
 #endif
         }
-        if (!(OPTIONS & OPT_XTERM_SELECT)) {
+        if (!(eterm_options & OPT_XTERM_SELECT)) {
             if (end_col == col && end_col < last_col) {
                 if (DELIMIT_TEXT(*stp)) /* space or tab or cutchar */
                     break;
@@ -2925,9 +2925,9 @@
                 stp = screen.text[end_row + row_offset + 1];
 #ifdef MULTI_CHARSET
                 srp = screen.rend[end_row + row_offset + 1];
-                if (DELIMIT_TEXT(*stp) == w1 && (!w1 || *stp1 == *stp || !(OPTIONS & 
OPT_XTERM_SELECT)) && DELIMIT_REND(*srp) == w2) {
+                if (DELIMIT_TEXT(*stp) == w1 && (!w1 || *stp1 == *stp || 
!(eterm_options & OPT_XTERM_SELECT)) && DELIMIT_REND(*srp) == w2) {
 #else
-                if (DELIMIT_TEXT(*stp) == w1 && (!w1 || *stp1 == *stp || !(OPTIONS & 
OPT_XTERM_SELECT))) {
+                if (DELIMIT_TEXT(*stp) == w1 && (!w1 || *stp1 == *stp || 
!(eterm_options & OPT_XTERM_SELECT))) {
 #endif
                     end_row++;
                     end_col = 0;
@@ -3157,7 +3157,7 @@
             selection.beg.row = selection.mark.row;
             selection.end.row = row;
         }
-        if (OPTIONS & OPT_SELECT_WHOLE_LINE) {
+        if (eterm_options & OPT_SELECT_WHOLE_LINE) {
             selection.beg.col = 0;
         } else {
             selection.clicks = 2;
@@ -3363,7 +3363,7 @@
 xim_get_position(XPoint * pos)
 {
     pos->x = Col2Pixel(screen.col);
-    if (scrollbar_is_visible() && !(OPTIONS & OPT_SCROLLBAR_RIGHT)) {
+    if (scrollbar_is_visible() && !(eterm_options & OPT_SCROLLBAR_RIGHT)) {
         pos->x += scrollbar_trough_width();
     }
     pos->y = (Height2Pixel(screen.row)
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/screen.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- screen.h    22 Aug 2003 03:19:43 -0000      1.26
+++ screen.h    22 Aug 2003 03:52:02 -0000      1.27
@@ -29,10 +29,10 @@
 #define IS_CUT_BUFFER(a)        (((a) >= XA_CUT_BUFFER0) && ((a) <= XA_CUT_BUFFER7))
 
 #define ZERO_SCROLLBACK do { \
-                          if (OPTIONS & OPT_HOME_ON_OUTPUT) TermWin.view_start = 0; \
+                          if (eterm_options & OPT_HOME_ON_OUTPUT) TermWin.view_start 
= 0; \
                         } while (0)
 #define REFRESH_ZERO_SCROLLBACK do { \
-                                  if (OPTIONS & OPT_HOME_ON_OUTPUT) 
TermWin.view_start = 0; \
+                                  if (eterm_options & OPT_HOME_ON_OUTPUT) 
TermWin.view_start = 0; \
                                 } while (0)
 #define CHECK_SELECTION        do { \
                           if (selection.op) selection_check(); \
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/scrollbar.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- scrollbar.c 22 Aug 2003 03:19:43 -0000      1.44
+++ scrollbar.c 22 Aug 2003 03:52:02 -0000      1.45
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: scrollbar.c,v 1.44 2003/08/22 03:19:43 mej Exp 
$";
+static const char cvs_ident[] = "$Id: scrollbar.c,v 1.45 2003/08/22 03:52:02 mej Exp 
$";
 
 #include "config.h"
 #include "feature.h"
@@ -383,7 +383,7 @@
     }
     if (!image_mode_is(image_up, MODE_MASK)) {
         /* Solid mode.  Redraw every time since it's cheap. */
-        if (OPTIONS & OPT_SCROLLBAR_FLOATING) {
+        if (eterm_options & OPT_SCROLLBAR_FLOATING) {
             XSetWindowBackground(Xdisplay, scrollbar.up_win, PixColors[bgColor]);
             XClearWindow(Xdisplay, scrollbar.up_win);
         } else {
@@ -453,7 +453,7 @@
     }
     if (!image_mode_is(image_down, MODE_MASK)) {
         /* Solid mode.  Redraw every time since it's cheap. */
-        if (OPTIONS & OPT_SCROLLBAR_FLOATING) {
+        if (eterm_options & OPT_SCROLLBAR_FLOATING) {
             XSetWindowBackground(Xdisplay, scrollbar.dn_win, PixColors[bgColor]);
             XClearWindow(Xdisplay, scrollbar.dn_win);
         } else {
@@ -538,7 +538,7 @@
         /* Solid mode.  Redraw every time since it's cheap. */
 #ifdef XTERM_SCROLLBAR
         if (scrollbar.type == SCROLLBAR_XTERM) {
-            int x = ((OPTIONS & OPT_SCROLLBAR_RIGHT) ? 1 : 0);
+            int x = ((eterm_options & OPT_SCROLLBAR_RIGHT) ? 1 : 0);
 
             XSetForeground(Xdisplay, gc_stipple, images[image_sa].current->bg);
             XFillRectangle(Xdisplay, scrollbar.sa_win, gc_stipple, x + 1, 0, 
scrollbar_anchor_width() - x - 1, scrollbar_anchor_height());
@@ -547,7 +547,7 @@
 #endif /* XTERM_SCROLLBAR */
 #if defined(MOTIF_SCROLLBAR) || defined(NEXT_SCROLLBAR)
         if (scrollbar.type == SCROLLBAR_MOTIF || scrollbar.type == SCROLLBAR_NEXT) {
-            if (OPTIONS & OPT_SCROLLBAR_FLOATING) {
+            if (eterm_options & OPT_SCROLLBAR_FLOATING) {
                 XSetWindowBackground(Xdisplay, scrollbar.sa_win, PixColors[bgColor]);
                 XClearWindow(Xdisplay, scrollbar.sa_win);
             } else {
@@ -656,7 +656,7 @@
     }
     if (!image_mode_is(image_sb, MODE_MASK)) {
         /* Solid mode.  Redraw every time since it's cheap. */
-        if ((OPTIONS & OPT_SCROLLBAR_FLOATING) || (scrollbar.type == 
SCROLLBAR_XTERM)) {
+        if ((eterm_options & OPT_SCROLLBAR_FLOATING) || (scrollbar.type == 
SCROLLBAR_XTERM)) {
             XSetWindowBackground(Xdisplay, scrollbar.win, PixColors[bgColor]);
             XClearWindow(Xdisplay, scrollbar.win);
         } else {
@@ -695,7 +695,7 @@
 
     /* Create the scrollbar trough window.  It will be the parent to the other 
windows. */
     scrollbar.win =
-        XCreateWindow(Xdisplay, TermWin.parent, ((OPTIONS & OPT_SCROLLBAR_RIGHT) ? 
(width - scrollbar_trough_width()) : (0)),
+        XCreateWindow(Xdisplay, TermWin.parent, ((eterm_options & 
OPT_SCROLLBAR_RIGHT) ? (width - scrollbar_trough_width()) : (0)),
                       bbar_calc_docked_height(BBAR_DOCKED_TOP), 
scrollbar_trough_width(), height, 0, Xdepth, InputOutput, CopyFromParent,
                       CWOverrideRedirect | CWBackPixel | CWBorderPixel | CWColormap, 
&Attributes);
     XDefineCursor(Xdisplay, scrollbar.win, cursor);
@@ -817,9 +817,9 @@
     D_SCROLLBAR(("scrollbar_resize(%d, %d)\n", width, height));
     scrollbar_calc_size(width, height);
     D_SCROLLBAR((" -> XMoveResizeWindow(Xdisplay, 0x%08x, %d, y, %d, %d)\n", 
scrollbar.win,
-                 ((OPTIONS & OPT_SCROLLBAR_RIGHT) ? (width - 
scrollbar_trough_width()) : (0)),
+                 ((eterm_options & OPT_SCROLLBAR_RIGHT) ? (width - 
scrollbar_trough_width()) : (0)),
                  scrollbar_trough_width(), scrollbar_trough_height()));
-    XMoveResizeWindow(Xdisplay, scrollbar.win, ((OPTIONS & OPT_SCROLLBAR_RIGHT) ? 
(width - scrollbar_trough_width()) : (0)),
+    XMoveResizeWindow(Xdisplay, scrollbar.win, ((eterm_options & OPT_SCROLLBAR_RIGHT) 
? (width - scrollbar_trough_width()) : (0)),
                       bbar_calc_docked_height(BBAR_DOCKED_TOP), 
scrollbar_trough_width(), scrollbar_trough_height());
     scrollbar_draw_trough(IMAGE_STATE_CURRENT, MODE_MASK);
     scrollbar_reposition_and_draw(MODE_MASK);
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/startup.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- startup.c   22 Aug 2003 03:19:43 -0000      1.38
+++ startup.c   22 Aug 2003 03:52:02 -0000      1.39
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: startup.c,v 1.38 2003/08/22 03:19:43 mej Exp $";
+static const char cvs_ident[] = "$Id: startup.c,v 1.39 2003/08/22 03:52:02 mej Exp $";
 
 #include "config.h"
 #include "feature.h"
@@ -118,7 +118,7 @@
     }
     XSetErrorHandler((XErrorHandler) xerror_handler);
 
-    if (OPTIONS & OPT_INSTALL) {
+    if (eterm_options & OPT_INSTALL) {
         cmap = XCreateColormap(Xdisplay, Xroot, Xvisual, AllocNone);
         XInstallColormap(Xdisplay, cmap);
     } else {
@@ -150,7 +150,7 @@
     if ((theme_dir = conf_parse_theme(&rs_theme, THEME_CFG, PARSE_TRY_ALL)) != NULL) {
         char *tmp;
 
-        D_OPTIONS(("conf_parse_theme() returned \"%s\"\n", theme_dir));
+        D_eterm_options(("conf_parse_theme() returned \"%s\"\n", theme_dir));
         tmp = (char *) MALLOC(strlen(theme_dir) + sizeof("ETERM_THEME_ROOT=\0"));
         sprintf(tmp, "ETERM_THEME_ROOT=%s", theme_dir);
         putenv(tmp);
@@ -158,7 +158,7 @@
     if ((user_dir = conf_parse_theme(&rs_theme, (rs_config_file ? rs_config_file : 
USER_CFG), (PARSE_TRY_USER_THEME | PARSE_TRY_NO_THEME))) != NULL) {
         char *tmp;
 
-        D_OPTIONS(("conf_parse_theme() returned \"%s\"\n", user_dir));
+        D_eterm_options(("conf_parse_theme() returned \"%s\"\n", user_dir));
         tmp = (char *) MALLOC(strlen(user_dir) + sizeof("ETERM_USER_ROOT=\0"));
         sprintf(tmp, "ETERM_USER_ROOT=%s", user_dir);
         putenv(tmp);
@@ -184,7 +184,7 @@
         tmp[len] = '\0';
         FREE(rs_path);
         rs_path = tmp;
-        D_OPTIONS(("New rs_path set to \"%s\"\n", rs_path));
+        D_eterm_options(("New rs_path set to \"%s\"\n", rs_path));
     }
 #endif
     spifopt_parse(argc, argv);
@@ -235,7 +235,7 @@
 
     /* Initialize the scrollbar */
     scrollbar_init(szHint.width, szHint.height - 
bbar_calc_docked_height(BBAR_DOCKED));
-    scrollbar_mapping((OPTIONS & OPT_SCROLLBAR) && !((OPTIONS & OPT_SCROLLBAR_POPUP) 
&& !TermWin.focus));
+    scrollbar_mapping((eterm_options & OPT_SCROLLBAR) && !((eterm_options & 
OPT_SCROLLBAR_POPUP) && !TermWin.focus));
 
     /* Initialize the menu subsystem. */
     menu_init();
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/system.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- system.c    19 Feb 2003 21:18:04 -0000      1.18
+++ system.c    22 Aug 2003 03:52:02 -0000      1.19
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: system.c,v 1.18 2003/02/19 21:18:04 mej Exp $";
+static const char cvs_ident[] = "$Id: system.c,v 1.19 2003/08/22 03:52:02 mej Exp $";
 
 #include "../config.h"
 #include "feature.h"
@@ -47,7 +47,7 @@
 {
     int pid, status = 0, save_errno = errno, code;
 
-    D_OPTIONS(("wait_for_chld(%ld) called.\n", system_pid));
+    D_eterm_options(("wait_for_chld(%ld) called.\n", system_pid));
 
     while (1) {
         do {
@@ -60,14 +60,14 @@
             errno = save_errno;
             break;
         }
-        D_OPTIONS(("%ld exited.\n", pid));
+        D_eterm_options(("%ld exited.\n", pid));
         if (pid == system_pid || system_pid == -1) {
             if (WIFEXITED(status)) {
                 code = WEXITSTATUS(status);
-                D_OPTIONS(("Child process exited with return code %lu\n", code));
+                D_eterm_options(("Child process exited with return code %lu\n", 
code));
             } else if (WIFSIGNALED(status)) {
                 code = WTERMSIG(status);
-                D_OPTIONS(("Child process was terminated by unhandled signal %lu\n", 
code));
+                D_eterm_options(("Child process was terminated by unhandled signal 
%lu\n", code));
             } else {
                 code = 0;
             }
@@ -86,7 +86,7 @@
 
     pid_t pid;
 
-    D_OPTIONS(("system_wait(%s) called.\n", command));
+    D_eterm_options(("system_wait(%s) called.\n", command));
 
     if (!(pid = fork())) {
         setreuid(my_ruid, my_ruid);
@@ -95,7 +95,7 @@
         print_error("execl(%s) failed -- %s\n", command, strerror(errno));
         exit(EXIT_FAILURE);
     } else {
-        D_OPTIONS(("%d:  fork() returned %d\n", getpid(), pid));
+        D_eterm_options(("%d:  fork() returned %d\n", getpid(), pid));
         return (wait_for_chld(pid));
     }
     ASSERT_NOTREACHED_RVAL(0);
@@ -107,7 +107,7 @@
 
     pid_t pid;
 
-    D_OPTIONS(("system_no_wait(%s) called.\n", command));
+    D_eterm_options(("system_no_wait(%s) called.\n", command));
 
     if (!(pid = fork())) {
         setreuid(my_ruid, my_ruid);
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/term.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -3 -r1.96 -r1.97
--- term.c      22 Aug 2003 03:19:43 -0000      1.96
+++ term.c      22 Aug 2003 03:52:02 -0000      1.97
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: term.c,v 1.96 2003/08/22 03:19:43 mej Exp $";
+static const char cvs_ident[] = "$Id: term.c,v 1.97 2003/08/22 03:52:02 mej Exp $";
 
 #include "config.h"
 #include "feature.h"
@@ -290,14 +290,14 @@
         }
         if (len) {
             /* Only home for keypresses with length. */
-            if (OPTIONS & OPT_HOME_ON_INPUT) {
+            if (eterm_options & OPT_HOME_ON_INPUT) {
                 TermWin.view_start = 0;
             }
         }
 
         /* This is a special mode that reports all extended keysyms (above 0xff00) to 
the application
            as escape sequences.  Very few applications use it, but it can be a handy 
thing to have. */
-        if ((OPTIONS & OPT_REPORT_AS_KEYSYMS) && (keysym >= 0xff00)) {
+        if ((eterm_options & OPT_REPORT_AS_KEYSYMS) && (keysym >= 0xff00)) {
             len = sprintf((char *) kbuf, "\033[k%X;%X~", (unsigned int) 
(ev->xkey.state & 0xff), (unsigned int) (keysym & 0xff));
             tt_write(kbuf, len);
             LK_RET();
@@ -468,7 +468,7 @@
                       kbuf[0] = (((PrivateModes & PrivMode_BackSpace) ? !(shft | 
ctrl) : (shft | ctrl)) ? '\b' : '\177');
 #endif
 #ifdef MULTI_CHARSET
-                      if ((OPTIONS & OPT_MBYTE_CURSOR) && scr_multi2()) {
+                      if ((eterm_options & OPT_MBYTE_CURSOR) && scr_multi2()) {
                           memmove(kbuf + len, kbuf, len);
                           len *= 2;
                       }
@@ -530,7 +530,7 @@
                           kbuf[2] = ("dacb"[keysym - XK_Left]);
                       }
 #ifdef MULTI_CHARSET
-                      if ((OPTIONS & OPT_MBYTE_CURSOR)
+                      if ((eterm_options & OPT_MBYTE_CURSOR)
                           && ((keysym == XK_Left && scr_multi2())
                               || (keysym == XK_Right && scr_multi1()))) {
                           memmove(kbuf + len, kbuf, len);
@@ -624,7 +624,7 @@
 #ifdef KS_DELETE
                       len = strlen(strcpy(kbuf, KS_DELETE));
 #ifdef MULTI_CHARSET
-                      if ((OPTIONS & OPT_MBYTE_CURSOR) && scr_multi1()) {
+                      if ((eterm_options & OPT_MBYTE_CURSOR) && scr_multi1()) {
                           memmove(kbuf + len, kbuf, len);
                           len *= 2;
                       }
@@ -1541,16 +1541,16 @@
 #endif
 
                 case 1010:     /* Scroll to bottom on TTY output */
-                    if (OPTIONS & OPT_HOME_ON_OUTPUT)
-                        OPTIONS &= ~OPT_HOME_ON_OUTPUT;
+                    if (eterm_options & OPT_HOME_ON_OUTPUT)
+                        eterm_options &= ~OPT_HOME_ON_OUTPUT;
                     else
-                        OPTIONS |= OPT_HOME_ON_OUTPUT;
+                        eterm_options |= OPT_HOME_ON_OUTPUT;
                     break;
                 case 1012:     /* Scroll to bottom on TTY input */
-                    if (OPTIONS & OPT_HOME_ON_INPUT)
-                        OPTIONS &= ~OPT_HOME_ON_INPUT;
+                    if (eterm_options & OPT_HOME_ON_INPUT)
+                        eterm_options &= ~OPT_HOME_ON_INPUT;
                     else
-                        OPTIONS |= OPT_HOME_ON_INPUT;
+                        eterm_options |= OPT_HOME_ON_INPUT;
                     break;
 
                 case 1047:     /* Alternate screen & clear */
@@ -2249,18 +2249,18 @@
                 break;
             case 11:
                 nstr = (char *) strsep(&tnstr, ";");
-                OPT_SET_OR_TOGGLE(nstr, OPTIONS, OPT_SCROLLBAR_RIGHT);
+                OPT_SET_OR_TOGGLE(nstr, eterm_options, OPT_SCROLLBAR_RIGHT);
                 scr_touch();
                 parent_resize();
                 break;
             case 12:
                 nstr = (char *) strsep(&tnstr, ";");
-                OPT_SET_OR_TOGGLE(nstr, OPTIONS, OPT_SCROLLBAR_FLOATING);
+                OPT_SET_OR_TOGGLE(nstr, eterm_options, OPT_SCROLLBAR_FLOATING);
                 scrollbar_reposition_and_always_draw();
                 break;
             case 13:
                 nstr = (char *) strsep(&tnstr, ";");
-                OPT_SET_OR_TOGGLE(nstr, OPTIONS, OPT_SCROLLBAR_POPUP);
+                OPT_SET_OR_TOGGLE(nstr, eterm_options, OPT_SCROLLBAR_POPUP);
                 break;
             case 14:
                 nstr = (char *) strsep(&tnstr, ";");
@@ -2277,21 +2277,21 @@
                 break;
             case 20:
                 nstr = (char *) strsep(&tnstr, ";");
-                OPT_SET_OR_TOGGLE(nstr, OPTIONS, OPT_VISUAL_BELL);
+                OPT_SET_OR_TOGGLE(nstr, eterm_options, OPT_VISUAL_BELL);
                 break;
 #ifdef MAPALERT_OPTION
             case 21:
                 nstr = (char *) strsep(&tnstr, ";");
-                OPT_SET_OR_TOGGLE(nstr, OPTIONS, OPT_MAP_ALERT);
+                OPT_SET_OR_TOGGLE(nstr, eterm_options, OPT_MAP_ALERT);
                 break;
 #endif
             case 22:
                 nstr = (char *) strsep(&tnstr, ";");
-                OPT_SET_OR_TOGGLE(nstr, OPTIONS, OPT_XTERM_SELECT);
+                OPT_SET_OR_TOGGLE(nstr, eterm_options, OPT_XTERM_SELECT);
                 break;
             case 23:
                 nstr = (char *) strsep(&tnstr, ";");
-                OPT_SET_OR_TOGGLE(nstr, OPTIONS, OPT_SELECT_WHOLE_LINE);
+                OPT_SET_OR_TOGGLE(nstr, eterm_options, OPT_SELECT_WHOLE_LINE);
                 break;
             case 24:
                 nstr = (char *) strsep(&tnstr, ";");
@@ -2302,18 +2302,18 @@
                 break;
             case 25:
                 nstr = (char *) strsep(&tnstr, ";");
-                OPT_SET_OR_TOGGLE(nstr, OPTIONS, OPT_SELECT_TRAILING_SPACES);
+                OPT_SET_OR_TOGGLE(nstr, eterm_options, OPT_SELECT_TRAILING_SPACES);
                 break;
             case 26:
                 nstr = (char *) strsep(&tnstr, ";");
-                OPT_SET_OR_TOGGLE(nstr, OPTIONS, OPT_REPORT_AS_KEYSYMS);
+                OPT_SET_OR_TOGGLE(nstr, eterm_options, OPT_REPORT_AS_KEYSYMS);
                 break;
             case 27:
                 nstr = (char *) strsep(&tnstr, ";");
-                OPT_SET_OR_TOGGLE(nstr, OPTIONS, OPT_NO_INPUT);
+                OPT_SET_OR_TOGGLE(nstr, eterm_options, OPT_NO_INPUT);
                 wm_hints = XGetWMHints(Xdisplay, TermWin.parent);
                 wm_hints->flags |= InputHint;
-                wm_hints->input = ((OPTIONS & OPT_NO_INPUT) ? False : True);
+                wm_hints->input = ((eterm_options & OPT_NO_INPUT) ? False : True);
                 XSetWMHints(Xdisplay, TermWin.parent, wm_hints);
                 XFree(wm_hints);
                 break;
===================================================================
RCS file: /cvsroot/enlightenment/eterm/Eterm/src/windows.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -3 -r1.62 -r1.63
--- windows.c   22 Aug 2003 03:19:43 -0000      1.62
+++ windows.c   22 Aug 2003 03:52:02 -0000      1.63
@@ -21,7 +21,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-static const char cvs_ident[] = "$Id: windows.c,v 1.62 2003/08/22 03:19:43 mej Exp $";
+static const char cvs_ident[] = "$Id: windows.c,v 1.63 2003/08/22 03:52:02 mej Exp $";
 
 #include "config.h"
 #include "feature.h"
@@ -365,7 +365,7 @@
     unsigned int width = 0, height = 0;
     MWMHints mwmhints;
 
-    if (OPTIONS & OPT_BORDERLESS) {
+    if (eterm_options & OPT_BORDERLESS) {
         prop = XInternAtom(Xdisplay, "_MOTIF_WM_INFO", True);
         if (prop == None) {
             print_warning("Window Manager does not support MWM hints.  Bypassing 
window manager control for borderless window.\n");
@@ -380,7 +380,7 @@
     }
     Attributes.colormap = cmap;
 
-    szHint.base_width = (2 * TermWin.internalBorder + ((OPTIONS & OPT_SCROLLBAR) ? 
(scrollbar_get_width() + (2 * scrollbar_get_shadow())) : 0));
+    szHint.base_width = (2 * TermWin.internalBorder + ((eterm_options & 
OPT_SCROLLBAR) ? (scrollbar_get_width() + (2 * scrollbar_get_shadow())) : 0));
     szHint.base_height = (2 * TermWin.internalBorder) + 
bbar_calc_docked_height(BBAR_DOCKED);
 
     flags = (rs_geometry ? XParseGeometry(rs_geometry, &x, &y, &width, &height) : 0);
@@ -434,8 +434,8 @@
     classHint.res_name = (char *) rs_name;
     classHint.res_class = APL_NAME;
     wmHint.window_group = TermWin.parent;
-    wmHint.input = ((OPTIONS & OPT_NO_INPUT) ? False : True);
-    wmHint.initial_state = (OPTIONS & OPT_ICONIC ? IconicState : NormalState);
+    wmHint.input = ((eterm_options & OPT_NO_INPUT) ? False : True);
+    wmHint.initial_state = (eterm_options & OPT_ICONIC ? IconicState : NormalState);
     wmHint.window_group = TermWin.parent;
     wmHint.flags = (InputHint | StateHint | WindowGroupHint);
 #ifdef PIXMAP_SUPPORT
@@ -457,12 +457,12 @@
     cursor = XCreateFontCursor(Xdisplay, XC_left_ptr);
 
     /* the vt window */
-    TermWin.x = (((OPTIONS & OPT_SCROLLBAR) && !(OPTIONS & OPT_SCROLLBAR_RIGHT)) ? 
(scrollbar_get_width() + (2 * scrollbar_get_shadow())) : 0);
+    TermWin.x = (((eterm_options & OPT_SCROLLBAR) && !(eterm_options & 
OPT_SCROLLBAR_RIGHT)) ? (scrollbar_get_width() + (2 * scrollbar_get_shadow())) : 0);
     TermWin.y = bbar_calc_docked_height(BBAR_DOCKED_TOP);
     TermWin.vt = XCreateWindow(Xdisplay, TermWin.parent, TermWin.x, TermWin.y, 
szHint.width, szHint.height, 0, Xdepth, InputOutput, CopyFromParent,
                                CWBackPixel | CWBorderPixel | CWOverrideRedirect | 
CWColormap, &Attributes);
     D_X11(("Created terminal window 0x%08x at %dx%d\n", TermWin.vt, TermWin.x, 
TermWin.y));
-    if (!(background_is_pixmap()) && !(OPTIONS & OPT_BORDERLESS)) {
+    if (!(background_is_pixmap()) && !(eterm_options & OPT_BORDERLESS)) {
         XSetWindowBackground(Xdisplay, TermWin.vt, PixColors[bgColor]);
         XClearWindow(Xdisplay, TermWin.vt);
     }
@@ -499,7 +499,7 @@
         TermWin.gc = LIBAST_X_CREATE_GC(GCForeground | GCBackground | GCFont | 
GCGraphicsExposures, &gcvalue);
     }
 
-    if (OPTIONS & OPT_NO_CURSOR) {
+    if (eterm_options & OPT_NO_CURSOR) {
         scr_cursor_visible(0);
     }
 }
@@ -510,7 +510,7 @@
 {
     XWindowAttributes attr;
 
-    if (!(OPTIONS & OPT_RESIZE_GRAVITY) || !XGetWindowAttributes(Xdisplay, 
TermWin.parent, &attr)) {
+    if (!(eterm_options & OPT_RESIZE_GRAVITY) || !XGetWindowAttributes(Xdisplay, 
TermWin.parent, &attr)) {
         XResizeWindow(Xdisplay, TermWin.parent, width, height);
     } else {
         Window junkwin;
@@ -592,7 +592,7 @@
     width = TERM_WINDOW_FULL_WIDTH();
     height = TERM_WINDOW_FULL_HEIGHT();
     XMoveResizeWindow(Xdisplay, TermWin.vt,
-                      ((OPTIONS & OPT_SCROLLBAR_RIGHT) ? (0) : 
((scrollbar_is_visible())? (scrollbar_trough_width()) : (0))),
+                      ((eterm_options & OPT_SCROLLBAR_RIGHT) ? (0) : 
((scrollbar_is_visible())? (scrollbar_trough_width()) : (0))),
                       bbar_calc_docked_height(BBAR_DOCKED_TOP), width, height);
     if (width != last_width || height != last_height) {
         render_simage(images[image_bg].current, TermWin.vt, width, height, image_bg, 
0);




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to