Skip to content

Enable Virtual Terminal mode on legacy Windows terminal to support ANSI escape sequences - #265

Merged
Jiashuo Li (jiasli) merged 2 commits into
microsoft:devfrom
jiasli:vt
Aug 18, 2022
Merged

Enable Virtual Terminal mode on legacy Windows terminal to support ANSI escape sequences#265
Jiashuo Li (jiasli) merged 2 commits into
microsoft:devfrom
jiasli:vt

Conversation

@jiasli

Copy link
Copy Markdown
Contributor

Migrated from Azure/azure-cli#12942

This PRs totally removes colorama, getting us rid of colorama bugs.

Windows versions before Windows 10 1607 are not supported anymore. Colors are automatically disabled on those jurassic period terminals 🦖.

When Windows Terminal becomes universal, even _win_vt.py should be dropped.

Comment thread knack/cli.py
Comment on lines -252 to -255
if self._should_init_colorama:
import colorama
colorama.deinit()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any side effect if we don't disable it.

@jiasli
Jiashuo Li (jiasli) marked this pull request as ready for review August 18, 2022 03:55
@jiasli
Jiashuo Li (jiasli) merged commit c44be5f into microsoft:dev Aug 18, 2022
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

Successfully merging this pull request may close these issues.

3 participants