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

yo doesn't reset console window colours on Windows #984

Closed
eddiemonge opened this issue Dec 7, 2016 · 1 comment
Closed

yo doesn't reset console window colours on Windows #984

eddiemonge opened this issue Dec 7, 2016 · 1 comment

Comments

@eddiemonge
Copy link
Member

@tom-seddon commented on Wed Jul 13 2016

Repro steps:

(Windows 10, node 6.2.2, yeoman 1.8.4)

  1. Run Windows 10 command prompt (this may well apply to previous versions of Windows, but it's also possible it's an artefact of the console window changes)
  2. Clone https://github.com/tom-seddon/yeoman-colour-bug
  3. Install yeoman-colour-bug generator with npm install then npm link
  4. Set console window colours with color f0 (black on bright white)
  5. Run the new generator to generate a file: yo yeoman-colour-bug fred test.txt
  6. Run the generator again to regenerate that file, this time with a conflict: yo yeoman-colour-bug fred2 test.txt
  7. Respond to the message by pressing Return

Expected results: You're back at the console prompt as normal.

Actual results: You're back at the console prompt and it's inherited the message colours of black on dark grey :(

Notes:

  • All works fine if you use the default command prompt colour scheme of white on black
  • Even if the colours were reset properly, the colour scheme still wouldn't be very readable

Thanks,

--Tom


@tom-seddon commented on Wed Jul 13 2016

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\tom>yo --version && echo %PATH% %NODE_PATH% && node -e "console.log(process.platform, process.versions)" && type Gruntfile.js
1.8.4
C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Users\tom\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;C:\Program Files\Git\cmd;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\nodejs\;C:\HashiCorp\Vagrant\bin;C:\Program Files\dotnet\;C:\bin;C:\bin\gnuwin32\bin;C:\Users\tom\AppData\Roaming\npm;C:\own\tom %NODE_PATH%
win32 { http_parser: '2.7.0',
  node: '6.2.2',
  v8: '5.0.71.52',
  uv: '1.9.1',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '57.1',
  modules: '48',
  openssl: '1.0.2h' }
The system cannot find the file specified.

C:\Users\tom>
@eddiemonge eddiemonge changed the title yo doesn't reset console window colours yo doesn't reset console window colours on Windows Jan 13, 2017
@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2020

This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale label Jan 1, 2020
@github-actions github-actions bot closed this as completed Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants