-
-
Couldn't load subscription status.
- Fork 1.3k
Open
Labels
Description
os: macOS
node: v10.18.0
inquirer: "^7.2.0"
When I use inquirer with type:'checkbox', in the property of message,i use Chinese.
Actually, when i press down the arrow ↓,the message will repeatedly show in the console.
in other type , I do not find this situation, also do not find when i use message in English.
so, I want to know wil you fix this ?
the codes is mine.
const inquirer = require('inquirer')
inquirer.prompt([
{
type: 'list',
name: 'cssPreprocessor',
message: '请选择需要的 CSS 预处理器?(回车确认)',
choices: [
{ name: '默认 css', value: 'css' },
{ name: 'scss', value: 'scss' },
{ name: 'less', value: 'less' }
],
default: 'css'
},
{
// 集成功能模块
type: 'checkbox',
name: 'ciModule',
message: '请选择模块:',
choices: [
{ name: '选项1', value: 'value1', checked: true },
{ name: '选项2', value: 'value2', checked: true },
{ name: '选项3', value: 'value3' },
{ name: '选项4', value: 'value4', disabled: true }
]
}])
.then(res => {
console.log('res == ', res)
})first question is ok ,but second will appear the situation what i showed in the console.
~/De/test-in ❯ node test.js ✘ INT 16:09:13
? 请选择需要的 CSS 预处理器?(回车确认) less
? 请选择模块: (Press <space> to select, <a> to toggle all, <i> to invert select
? 请选择模块: (Press <space> to select, <a> to toggle all, <i> to invert select
? 请选择模块: (Press <space> to select, <a> to toggle all, <i> to invert selection)
◉ 选项1
◉ 选项2
❯◯ 选项3
- 选项4 (Disabled)