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

'.bold' has bugs under some consoles #448

Closed
beeplin opened this issue Mar 9, 2017 · 3 comments
Closed

'.bold' has bugs under some consoles #448

beeplin opened this issue Mar 9, 2017 · 3 comments

Comments

@beeplin
Copy link
Contributor

beeplin commented Mar 9, 2017

.bold method is used in many places in /build/scirpt.*.js, but under some consoles it brings bugs: some texts after the .bold text are missing, like this:

image

comparing with the normal output:
image

or

image
and
image

My suggestion: get ride of .bold would be all OK.

(I am using cmder as console)

@rstoenescu
Copy link
Member

rstoenescu commented Mar 9, 2017

Hi,

Can you do a quick test with chalk package instead of current colors and see if that works for you? https://www.npmjs.com/package/chalk

Thanks!

@beeplin
Copy link
Contributor Author

beeplin commented Mar 9, 2017

chalk has the same issue:

chalk = require('chalk')

console.log(' Starting dev server with "' + chalk.bold(process.argv[2] || env.platform.theme) + '" theme...')
console.log(' Will listen at ' + chalk.bold(uri))
if (config.dev.openBrowser) {
  console.log(' Browser will open when build is ready.\n')
}

gives:
image

and if use chalk.blue instead of chalk.bold:
image

note that the text after the blue parts turns to bright white. Still buggy.
I guess this is related to some incompatibilities between cmder/conemu and the coloring mechanism used by colors and chalk.

@rstoenescu
Copy link
Member

Moving to appropriate repo. quasarframework/quasar-template-default#15

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

2 participants