Git Product home page Git Product logo

Comments (4)

magiblot avatar magiblot commented on August 18, 2024

Hi Pavel, long time no see. I tried to fix this in 0e8d7cf, but right after this issue was posted I pushed commit 469e279 which brings another submodule. That submodule may generate other warnings which are not my responsibility.

Cheers.

from turbo.

okbob avatar okbob commented on August 18, 2024

from turbo.

magiblot avatar magiblot commented on August 18, 2024

I suggest you try to customize the default style to your liking.

At the moment, the style is still chosen at compile time. It's defined in src/styles.cc:

static const TCellAttribs styleDefaults[] = {
    /* sNormal           */ {0x07, afFgDefault | afBgDefault    },
    /* sSelection        */ {0x71                               },
    /* sWhitespace       */ {0x05, afBgDefault                  },
    /* sCtrlChar         */ {0x0D, afBgDefault                  },
    /* sLineNums         */ {0x06, afBgDefault                  },
    /* sKeyword1         */ {0x0E, afBgDefault                  },
    /* sKeyword2         */ {0x0A, afBgDefault                  },
    /* sMisc             */ {0x09, afBgDefault                  },
    /* sPreprocessor     */ {0x02, afBgDefault                  },
    /* sOperator         */ {0x0D, afBgDefault                  },
    /* sComment          */ {0x06, afBgDefault                  },
    /* sStringLiteral    */ {0x0C, afBgDefault                  },
    /* sCharLiteral      */ {0x0C, afBgDefault                  },
    /* sNumberLiteral    */ {0x03, afBgDefault                  },
    /* sEscapeSequence   */ {0x0B, afBgDefault                  },
    /* sError            */ {0x30,                              },
};

The colors follow the 8 bit BIOS color attributes format. The highest bit is not "blinking" but "bright background".

The additional flags (afFgDefault, afBgDefault) are defined in <tvision/scrncell.h>. You won't need afFgDefault nor afBgDefault, but you may use afBold, afItalic or afUnderline if you wish.

If you come up with a nice style, I will try to add it into Turbo and make it configurable.

from turbo.

okbob avatar okbob commented on August 18, 2024

I'll check it

from turbo.

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.