Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive symbol bug when mixed with colors #16

Open
fraxken opened this issue Aug 24, 2019 · 0 comments
Open

Interactive symbol bug when mixed with colors #16

fraxken opened this issue Aug 24, 2019 · 0 comments

Comments

@fraxken
Copy link

fraxken commented Aug 24, 2019

Describe the bug
When i put a color on a interactive input symbol, non-selected menus are not aligned anymore.
ex

To Reproduce
Just create a qoa.interactive input with a symbol that have color (i use the package Kleur).

const kleur = require("kleur");
const qoa = require("qoa");

async function main() {
    await qoa.interactive({
        query: "query here",
        symbol: kleur.green(">"),
        menu: [
            "v1",
            "v2",
            "v3"
        ],
        handle: "any"
    });
}
main().catch(console.error);

Expected behavior
Menu must be aligned even when we use a color on a symbol.

Technical Info (please complete the following information)

  • OS: Windows 10
  • Qoa Version: 0.2.0
  • Node.js Version: 12.5.0

Note: reproduced on WSL (Ubuntu)

Best Regards,
Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant