Giter Site home page Giter Site logo

chalk's Introduction

Open before closed.

The future is decentralized.

chalk's People

Contributors

djtech42 avatar mickeyl avatar mxcl 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chalk's Issues

"Ambiguous reference to member 'appendInterpolation'" error

I'm getting an Ambiguous reference to member 'appendInterpolation' compile-time error when trying to use Chalk with either a variable or a string literal.

import Chalk

print("\("Hello, world!", style: .bold)")
        ^ Ambiguous reference to member 'appendInterpolation'

let greeting = "Hello, world!"
print("\(greeting, style: .bold)")
        ^ Ambiguous reference to member 'appendInterpolation'

This happens with any Chalk parameters used in any string interpolation in my project. I'm experiencing this issue in a complex project, but have also verified it to be an issue in a brand new blank project generated with swift package init --type executable.

Using Xcode version 10.2 (10E125) and Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3) with the package dependency .package(url: "https://github.com/mxcl/Chalk", from: "0.3.0").

Detecting non-interactive terminals

I've been previously using a competitor's project that detects the terminal type and can transparently turn off color and style coding when it encounters a non-interactive one (e.g., file redirection).

Since I like the Chalk API much better, it would be cool, if it could do something equivalent.

Named colors for 8-bit mode?

First off, thanks for this great package.

What do you think about including named colors for the 8-bit mode, e.g. from here? I know they're not quite standardized, but it would be much more helpful than just using arbitrary constants.

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.