Coder Social home page Coder Social logo

Comments (3)

robg204 avatar robg204 commented on September 24, 2024

I realize that it does seem to support embedding ansi sequences in the output line, and I guess I could wrap that in a script, but it feels less good than, say, coutput parsing a tag like or something similar.

from blightmud.

LiquidityC avatar LiquidityC commented on September 24, 2024

That’s what I do. But perhaps we could pre-define some color variables in the lua environment so that people don’t have to put in their own. I’ll test out some solutions. Help files need some related updates also. I shouldn’t expect everybody to know ANSI codes.

from blightmud.

LiquidityC avatar LiquidityC commented on September 24, 2024

Spec

  • Update blight:output documentation to make it clear that ansi codes work
  • When creating the lua state define a bunch of globals for the standard colors. (Eg. C_BLUE, C_RED, ..., C_RESET)
  • Define an additional lua method that prepends it's input with the ESC char (\x1b/\033). (Eg. function ESC(param) -> "\x1b${param}"

from blightmud.

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.