我可以替换`ghci`窗口标题中的文本(即PowerShell.exe或cmd.exe窗口标题)吗?

And*_*man 3 haskell ghci

我可以替换ghci窗口标题中的文本(即PowerShell.execmd.exe窗口标题)吗?

在此输入图像描述

bhe*_*ilr 7

System.Process.callCommandprocess包中使用,您可以调用title可执行文件:

> :m System.Process
> callCommand "title A new title for the console window"
Run Code Online (Sandbox Code Playgroud)


Eug*_*Sh. 5

与执行任何shell命令的方式相同 - 使用:!.

> :!Title NewTitle
Run Code Online (Sandbox Code Playgroud)