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

it will render repeat lines of title on Windows when the property of message is Chinese and too long to display in a single line #953

Open
Axin2017 opened this issue Aug 18, 2020 · 0 comments

Comments

@Axin2017
Copy link

Hello, first of all,please forgive me for my poor english ^o^

It was worked well since I start using your wonderful cli tool until i used a long Chinese sentence to display question...

My code looks like bellow:

inquirer.prompt({
  name: 'test',
  message: `测试很长的中文测试很长的中文测试很长的中文测试很长的中文测试很长的中文测试很长的中文测试很长的中文测试很长的中文`,
  type: 'checkbox',
  choices: [1,2,3,4,5,6,7,8,9,0]
})

On my computer, which is a Windows-OP,a funny thing happend.

Because of too-long message with Chinese, the CMD of Windows can't display all text in a single line. when i pressing the arrow key,like the key DOWN, the window will repeat display the message again.But the english message will not cause the problem.

It makes my window of CMD has lots of lines which is repeat when I press arrow key more than one time during a question

I dont kown how to show GIF, so i put it in my blog and please see it:
axin's blog

This is my first issue, i apologise for my bad style and poor english again, thank you.

@Axin2017 Axin2017 changed the title it will render repeat lines of title on Windows when the prorerty of message is Chinese and too long to display in a single line it will render repeat lines of title on Windows when the property of message is Chinese and too long to display in a single line Aug 18, 2020
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