microsoft/Terminal

Showing Schemes doesn't work on WSL

Open

#312 opened on Nov 26, 2018

View on GitHub
 (1 comment) (1 reaction) (0 assignees)C++ (3,212 forks)batch import
Area-InteropHelp WantedIssue-BugPriority-3Product-Colortool

Repository metrics

Stars
 (35,764 stars)
PR merge metrics
 (Avg merge 27d 19h) (24 merged PRs in 30d)

Description

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"

Contributor guide