Showing Schemes doesn't work on WSL #459

Open
opened 2026-01-30 21:52:53 +00:00 by claunia · 1 comment
Owner

Originally created by @zadjii-msft on GitHub (Nov 26, 2018).

From #22:

@Falcury -q -x works for me, though showing schemes does not:

[rofrol@DESKTOP-NBALJ88 ~]$ pushd ~/rofrol/installed/colortool/ &> /dev/null
[rofrol@DESKTOP-NBALJ88 ~/rofrol/installed/colortool]$ ./colortool.exe -s

Unhandled Exception: System.IO.IOException: The handle is invalid.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at System.Console.get_WindowWidth()
   at ColorTool.Program.PrintSchemes()
   at ColorTool.Program.Main(String[] args)

This should be fixed.

  • We need to add support for -s -x to print the scemes in linux-y mode
  • We should probably also catch this exception for the -s flag and properly display an error along the lines of "You should try -s -x"
Originally created by @zadjii-msft on GitHub (Nov 26, 2018). From #22: > > > @Falcury `-q -x` works for me, though showing schemes does not: > > ```shell > [rofrol@DESKTOP-NBALJ88 ~]$ pushd ~/rofrol/installed/colortool/ &> /dev/null > [rofrol@DESKTOP-NBALJ88 ~/rofrol/installed/colortool]$ ./colortool.exe -s > > Unhandled Exception: System.IO.IOException: The handle is invalid. > > at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) > at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded) > at System.Console.get_WindowWidth() > at ColorTool.Program.PrintSchemes() > at ColorTool.Program.Main(String[] args) > ``` This should be fixed. * [ ] We need to add support for `-s -x` to print the scemes in linux-y mode * [ ] We should probably also catch this exception for the `-s` flag and properly display an error along the lines of "You should try `-s -x`"
claunia added the Product-ColortoolHelp WantedIssue-BugPriority-3Area-Interop labels 2026-01-30 21:52:54 +00:00
Author
Owner

@E3V3A commented on GitHub (Dec 6, 2018):

Same problem when running under Cygwin.
Also Mintty doesn't show the color codes:

# ColorTool.exe -c

m         gYw     gYw     gYw     gYw     gYw     gYw     gYw     gYw     gYw
1m        gYw     gYw     gYw     gYw     gYw     gYw     gYw     gYw     gYw
30m       gYw     gYw     gYw     gYw     gYw     gYw     gYw     gYw     gYw
1;30m     gYw     gYw     gYw     gYw     gYw     gYw     gYw     gYw     gYw
31m       gYw     gYw     gYw     gYw     gYw     gYw     gYw     gYw     gYw
1;31m     gYw     gYw     gYw     gYw     gYw
@E3V3A commented on GitHub (Dec 6, 2018): Same problem when running under Cygwin. Also Mintty doesn't show the color codes: ```bash # ColorTool.exe -c m gYw gYw gYw gYw gYw gYw gYw gYw gYw 1m gYw gYw gYw gYw gYw gYw gYw gYw gYw 30m gYw gYw gYw gYw gYw gYw gYw gYw gYw 1;30m gYw gYw gYw gYw gYw gYw gYw gYw gYw 31m gYw gYw gYw gYw gYw gYw gYw gYw gYw 1;31m gYw gYw gYw gYw gYw ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#459