microsoft/Terminal

Showing Schemes doesn't work on WSL

Open

#312 aperta il 26 nov 2018

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)C++ (3212 fork)batch import
Area-InteropHelp WantedIssue-BugPriority-3Product-Colortool

Metriche repository

Star
 (35.764 star)
Metriche merge PR
 (Merge medio 27g 19h) (24 PR mergiate in 30 g)

Descrizione

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"

Guida contributor