quasarframework / quasar-cli

[DEPRECATED, <= 0.17) Quasar Framework - CLI
https://quasar.dev
MIT License
203 stars 50 forks source link

feat: Option to clear the screen on `quasar dev` rebuild #230

Open tohagan opened 5 years ago

tohagan commented 5 years ago

Software version

Feature suggestion ... I normally run quasar dev inside VSCode which will frequently trigger rebuilds as you save files. The problem is that this emits lots of output so you're forced to stop editing and constantly rescroll to the bottom of of the terminal output to view the last build error. What would be much more useful would be to have quasar-cli clear the screen before each rebuild so you can always see the output of the last build with least amount of scrolling (if any). For backward compatibility you might prefer to make an option rather than the default behaviour.

Reference:

I think you only need to output '\033[2J' to the console whenprocess.stdout.isTTY

rstoenescu commented 5 years ago

If you use a regular terminal, you already have this functionality. Don't know how VSCode terminal works. Will investigate.

tohagan commented 5 years ago

I've just noticed that it sometimes works in VSCode terminal so it may be their bug - not yours! Appears to work ok and then stop working within a single execution of quasar dev. Works again if you stop/restart quasar dev.
I'm running the latest VSCode version with "bash" shell (MINGW64).