-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 229511bd240945bd1cce2110096bf8fb8a09672e:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 229511bd240945bd1cce2110096bf8fb8a09672e
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Mon Jan 9 15:34:57 2012 +0000

    Add a flag to check if the terminal init is completed, rather than
    abusing env_colorfgbg.

diff --git a/src/init.C b/src/init.C

index dfe3966f675cda5022b0aa8c32ce984b63afb282..

index ..a7c3d8b812c5c72ce2e414748d5b39fc3bc456d8 100644

--- a/src/init.C
+++ b/src/init.C
@@ -855,6 +855,7 @@ rxvt_term::init2 (int argc, const char *const *argv)
 #endif

   set_colorfgbg ();
+  init_done = 1;

   init_command (cmd_argv);

diff --git a/src/rxvt.h b/src/rxvt.h

index 38fc2ce07a4ad4a5d430c7a18c4e9d0e7755cc08..

index ..23e72e1836d879c62cc12e6f08677a004d739c90 100644

--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -1030,6 +1030,7 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen
                   enc_utf8:1,		/* whether locale uses utf-8 */
                   seen_input:1,         /* whether we have seen some program output yet */
                   seen_resize:1,	/* whether we had a resize event */
+                  init_done:1,
                   parsed_geometry:1;

   unsigned char   refresh_type,
diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs

index ab596b7ce673a906797459e42773a20256099132..

index ..94b504bfa269c6038469d3265f36728cd2e8f063 100644

--- a/src/rxvtperl.xs
+++ b/src/rxvtperl.xs
@@ -1545,7 +1545,7 @@ rxvt_term::option (U8 optval, int set = -1)
           {
             THIS->set_option (optval, set);

-            if (THIS->env_colorfgbg [0]) // avoid doing this before START
+            if (THIS->init_done) // avoid doing this before START
               switch (optval)
                 {
                   case Opt_skipBuiltinGlyphs:

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 09:15:43 2024