Skip to content

alespergl/vtcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Windows 10 consoles support virtual terminal sequences which enable programs to output colored text (among other things). It is an opt-in feature, which means that the process that wants to use it must explicitly enable it for itself.

The default command processor (cmd.exe) has it turned on, so it is possible to echo the sequences. It used to be that programs which ran from within cmd.exe inherited it and did not have to enable it explicitly.

The Anniversary Update changed this behavior and as a result, programs which expect this feature by default, namely those from the GnuWin project, stopped working inside cmd.exe.

Interestingly, cmd.exe will pass the flag to child processes, if it is started with the flag already turned on.

vtcmd is a shim which turns on the flag and starts cmd.exe, so you can again use those programs which don't enable it themselves.

Usage

  1. Build it with Visual Studio
  2. Run vtcmd.exe

Consider modifying your shortcuts. The ones used in the Win+X menu are located in %LOCALAPPDATA%\Microsoft\Windows\WinX\Group3.

About

Run programs in cmd.exe with VT sequences enabled by default

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages