microsoft/Terminal

Showing Schemes doesn't work on WSL

Open

#312 ouverte le 26 nov. 2018

Voir sur GitHub
 (1 commentaire) (1 réaction) (0 assignés)C++ (3 212 forks)batch import
Area-InteropHelp WantedIssue-BugPriority-3Product-Colortool

Métriques du dépôt

Stars
 (35 764 stars)
Métriques de merge PR
 (Merge moyen 27j 19h) (24 PRs mergées en 30 j)

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"

Guide contributeur