Interactive symbol bug when mixed with colors
fraxken opened this issue · 0 comments
fraxken commented
Describe the bug
When i put a color on a interactive input symbol, non-selected menus are not aligned anymore.
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