okta / okta-aws-cli

A CLI for having Okta as the IdP for AWS CLI operations
https://github.com/okta/okta-aws-cli
Other
124 stars 32 forks source link

VT100 escape sequences on Windows 10 #209

Open Liz4v opened 2 months ago

Liz4v commented 2 months ago

If I run okta-aws-cli.exe in a Windows 10 PowerShell or CMD window. I see visible VT100 escape sequences in lieu of colors, e.g.:

←[2mUsage:←[0m
  okta-aws-cli [command]

←[2mAvailable Commands:←[0m
  debug       Simple debug of okta.yaml and exit

Or:

  ←[0;1;99mIdP: ←[0m←[0;36mname of identity provider←[0m
  ←[0;1;99mRole: ←[0m←[0;36marn:aws:iam::123456789012:role/name-of-role←[0m
Updated profile "name-of-profile" in credentials file "C:\\Users\\me\\.aws\\credentials".

My WSL windows can render the colors fine.

I heard Windows 11 has a brand new terminal app that may or may not understand these escape sequences but it's not available to my team in the foreseeable future. And a lot of my team members have to reason to do their work in WSL.

monde commented 1 month ago

I'm not sure when I'll have time for this but the maintainer of the package we use for ncurses menus (survey) has retired the project and recommends using bubbltea. Hopefully bubbltea has better support for Windows.

https://github.com/okta/okta-aws-cli/issues/219