Code Monkey home page Code Monkey logo

ansiterminal's People

Contributors

chris00 avatar dra27 avatar kit-ty-kate avatar moyodiallo avatar mseri avatar vincent-hugot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansiterminal's Issues

Support for more colors

As we have briefly discussed (through email), it would be nice to have more colors beyond just the default eight currently supported in this package.

Windows support doesn't work well

I tested your test case on windows using the diskuv ocaml windows install

Here are the results :

tjPwL8AY7V.mp4
  • this test I made using showcolor.ml :
module T = ANSITerminal
let () =

  T.print_string [T.Bold;  T.Foreground T.Red; ] " Bold red ";
  T.print_string [T.Foreground T.Red; T.Underlined] "not Bold red";
  T.print_string [T.Bold] " bold ";

  T.print_string [T.Underlined] "Underlined ";
  T.print_string [T.Blink] "Blink ";
  T.print_string [T.Inverse] "Inverse ";
  T.print_string [T.Hidden] "Hidden";
  print_string "<-- hidden\n"

Returns :
image

I don't know if it can help you, but both tests from your repo fail with exit code 3221225477 in VS Code integrated terminal. However, mine works as in normal cmd terminal

Strip escape codes when not attached to terminal

I was wondering if ANSITerminal has support for stripping the escape codes if output is not attached to a terminal, like Jansi.

I didn't see any way to do it, but maybe I missed something.

If this isn't something ANSITerminal supports, does it sound like something that would be difficult to implement?

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.