Giter VIP home page Giter VIP logo

Comments (5)

erikarn avatar erikarn commented on May 29, 2024

+1 i just noticed that!

from tinyfugue.

erikarn avatar erikarn commented on May 29, 2024

ah, here:

/ /echo -aCbgblue,BCred Foo!

doesn't work.

/ /echo -aBCred,Cbgblue Foo!

works!

from tinyfugue.

erikarn avatar erikarn commented on May 29, 2024

Ok, I figured out why.

It's because the BG colour flag overlaps with the FG colour variable itself.

diff --git a/src/tf.h b/src/tf.h
index d5bd672..a47d6d8 100644
--- a/src/tf.h
+++ b/src/tf.h
@@ -90,7 +90,8 @@ enum enum_attr {
     F_FGCOLOR     = 0x00000080,   /* flag */
 # define BGCOLORSHIFT 16
     F_BGCOLORMASK = 0x00ff0000,   /* 8 bits, interpreted as an integer */
-    F_BGCOLOR     = 0x00000100,   /* flag */
+    F_BGCOLOR     = 0x80000000,   /* flag (XXX) */
+//    F_BGCOLOR     = 0x00000100,   /* flag - this overlaps with the FG colour */
 #else
     /* inside the 16 low bits */
 # define FGCOLORSHIFT 8
cerise:src adrian$ 

from tinyfugue.

erikarn avatar erikarn commented on May 29, 2024

now, this is a bit terrible because I don't know if the high bit is used, it doesn't LOOK like it from a cursory glance, but that made echo work properly again.

from tinyfugue.

erikarn avatar erikarn commented on May 29, 2024

Pull request is here - #61

from tinyfugue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.