Giter Site home page Giter Site logo

Unicode checkbox about inquirer.js HOT 8 CLOSED

sindresorhus avatar sindresorhus commented on May 22, 2024
Unicode checkbox

from inquirer.js.

Comments (8)

SBoudrias avatar SBoudrias commented on May 22, 2024

We tough about using checkbox on #14

My only concerns is to support a large set of fonts and Windows - which was a given with the X. I know Mocha uses a check in their test who's working on PowerShell.

We'll need some support test for that - or make sure we can have a clean fallback.

from inquirer.js.

SBoudrias avatar SBoudrias commented on May 22, 2024

To keep up with what I found, I'll post here.

chcp in Windows returns currents language.

http://stackoverflow.com/questions/1259084/what-encoding-code-page-is-cmd-exe-using

from inquirer.js.

SBoudrias avatar SBoudrias commented on May 22, 2024

Added a check so unix system use the symbols, and windows will fallback to the X. May revisit later, but I really got some weird output on windows so for now I don't want to overthink this...

Planned to be release with 0.2 who'll add some new prompts - work is in wip branch.

from inquirer.js.

sindresorhus avatar sindresorhus commented on May 22, 2024

Awesome!

Sidenote: Add some screenshots of the prompts to the readme for better marketing ;)

from inquirer.js.

SBoudrias avatar SBoudrias commented on May 22, 2024

@sindresorhus Oh yeah, good idea! Will do!

from inquirer.js.

mikedevita avatar mikedevita commented on May 22, 2024

Is there a way to force inquirer to use non unicode characters?

from inquirer.js.

SBoudrias avatar SBoudrias commented on May 22, 2024

@mikedevita no, that's not a feature at the moment. Are you running somewhere where unicode is not supported?

from inquirer.js.

mikedevita avatar mikedevita commented on May 22, 2024

Were a shop which runs windows and uses putty to connect to RHEL servers and can't reliably set putty to use fonts which support unicode...

Rather than fixing all our machines to use a unicode font I'd rather just use plaintext and bypass the issue.

from inquirer.js.

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.