graphql-cli icon indicating copy to clipboard operation
graphql-cli copied to clipboard

Init command displaying faulty text

Open martinivanalfonso opened this issue 4 years ago β€’ 2 comments

Describe the bug Init command displaying text not readable on CLI. Windows 10. Git Bash.

To Reproduce Steps to reproduce the behavior:

  1. Run command npx graphql-cli init
  2. See error ←[?25l←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m←[2m(Use arrow keys)←[22m ←[36m> Full Stack←[39m Frontend only Backend only ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m Full Stack Frontend only ←[36m> Backend only←[39m ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m ←[36m> Full Stack←[39m Frontend only Backend only ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m Full Stack Frontend only ←[36m> Backend only←[39m ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m ←[36m> Full Stack←[39m Frontend only Backend only ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m Full Stack ←[36m> Frontend only←[39m Backend only ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m Full Stack Frontend only ←[36m> Backend only←[39m ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m Full Stack ←[36m> Frontend only←[39m Backend only ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m ←[36m> Full Stack←[39m Frontend only Backend only ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m Full Stack Frontend only ←[36m> Backend only←[39m ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m ←[36m> Full Stack←[39m Frontend only Backend only ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m Full Stack ←[36m> Frontend only←[39m Backend only ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m Full Stack Frontend only ←[36m> Backend only←[39m ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m ←[36m> Full Stack←[39m Frontend only Backend only ←[15D←[15C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mWhat is the type of the project?←[22m←[0m ←[0m←[36mFull Stack←[39m←[45D←[45C ←[?25h←[?25l←[32m?←[39m ←[1mSelect the best option for you←[22m←[0m ←[0m←[2m(Use arrow keys)←[22m ←[36m> I want to create a new project from a GraphQL CLI Project Template.←[39m I have an existing project using OpenAPI/Swagger Schema Definition. I have an existing project using GraphQL and want to add GraphQL CLI (run from project root). ←[96D←[96C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mSelect the best option for you←[22m←[0m ←[0m I want to create a new project from a GraphQL CLI Project Template. ←[36m> I have an existing project using OpenAPI/Swagger Schema Definition.←[39m I have an existing project using GraphQL and want to add GraphQL CLI (run from project root). ←[96D←[96C←[2K←[1A←[2K←[1A←[2K←[1A←[2K←[G←[32m?←[39m ←[1mSelect the best option for you←[22m←[0m ←[0m I want to create a new project from a GraphQL CLI Project Template. I have an existing project using OpenAPI/Swagger Schema Definition.

Versions (please complete the following information):

  • OS: Windows 10
  • graphql-cli: latest

martinivanalfonso avatar Jul 20 '20 22:07 martinivanalfonso

Do you use Windows cmd? They do not support color display in this (as far I remember). Any POSIX compatible cmd will work. Git bash etc.

wtrocki avatar Jul 21 '20 06:07 wtrocki

Sorry forgot to mentioned it but I'm using Git bash.

martinivanalfonso avatar Jul 22 '20 14:07 martinivanalfonso