Windows Terminal の Preview が Microsoft Store に出ているというので見に行きました。
確かに出てましたが、Windows 10 バージョンが 1803 のため動作要件を満たしてません。
とりあえず Windows Update を地道にしてたら May 2019 Update 1903 がロールアウトで降ってきました。
そのままバージョンアップ。Windows Terminal も無事にインストールできました。
WSL を導入してない状態だと PowerShell と cmd がタブで起動できます。PowerShell がデフォルトになっているようです。
タブに設定のアイコンがあるので押してみると設定の JSON ファイルがシェル起動するようになっていて、デフォルトのエディタがないため関連付けの画面が出てきました。きっと正式リリースの時は何らか GUI 画面が提供されるのでしょう。
とりあえず JSON ファイルをメモ帳で開き編集。profiles
のプロパティをいじって PowerShell の透明度を変更したりしてみました。
{ "acrylicOpacity" : 0.10000001639127731, "background" : "#012456", "closeOnExit" : true, "colorScheme" : "Campbell", "commandline" : "powershell.exe", "cursorColor" : "#FFFFFF", "cursorShape" : "bar", "fontFace" : "Consolas", "fontSize" : 10, "guid" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "historySize" : 9001, "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png", "name" : "Windows PowerShell", "padding" : "0, 0, 0, 0", "snapOnInput" : true, "startingDirectory" : "%USERPROFILE%", "useAcrylic" : true },
Windows 10 のおなじみの壁紙がかなりポップになっていますね。
次に Git for Windwos の bash の追加に挑戦。icon は png のみのようです。
{ "acrylicOpacity" : 0.44999998807907104, "closeOnExit" : true, "colorScheme" : "Campbell", "commandline" : "C:\\Program Files\\Git\\bin\\bash.exe", "cursorColor" : "#FFFFFF", "cursorShape" : "bar", "fontFace" : "Consolas", "fontSize" : 12, "guid" : "{c0a23c69-addf-41c8-a214-dc4af501d7ec}", "historySize" : 9001, "icon" : "C:\\Program Files\\Git\\git-bash.png", "name" : "bash", "padding" : "0, 0, 0, 0", "snapOnInput" : true, "startingDirectory" : "%USERPROFILE%", "useAcrylic" : true }
ファイルをセーブするとメニューは出ました。
bash の起動には Windows Terminal 自体の再起動が必要でした。
Git の Text UI tig も動きました。
ターミナル上の日本語の表示はできましたが、インラインの日本語入力はできず、文字消去もバイト単位。Vim では日本語表示ができていません。Git for Windows の mintty なみというわけにはまだ行かないようです。
それにしてもタブ付きのターミナルが標準で搭載されるというのは素晴らしいです。正式リリースが期待されます。