microsoft/Terminal

Showing Schemes doesn't work on WSL

Open

#312 创建于 2018年11月26日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)C++ (3,212 fork)batch import
Area-InteropHelp WantedIssue-BugPriority-3Product-Colortool

仓库指标

Star
 (35,764 star)
PR 合并指标
 (平均合并 27天 19小时) (30 天内合并 24 个 PR)

描述

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"

贡献者指南