Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
fix: remove prompt dimming
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 8, 2018
1 parent 41e0d40 commit 57eb516
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export default {
}

function _prompt(name: string, inputOptions: Partial<IPromptOptions> = {}): Promise<string> {
let prompt = chalk.dim('> ')
if (name && inputOptions.default) prompt = chalk.dim(name) + ' ' + chalk.yellow('[' + inputOptions.default + ']') + chalk.dim(': ')
else if (name) prompt = chalk.dim(`${name}: `)
let prompt = '> '
if (name && inputOptions.default) prompt = name + ' ' + chalk.yellow('[' + inputOptions.default + ']') + ': '
else if (name) prompt = `${name}: `
const options: IPromptConfig = {
isTTY: !!(process.env.TERM !== 'dumb' && process.stdin.isTTY),
name,
Expand Down

0 comments on commit 57eb516

Please sign in to comment.