Can I replace the text in the "ghci" window title (ie the PowerShell.exe or cmd.exe title)?

Is it possible to replace the text in the window title ghci

(i.e. the window title of PowerShell.exe or cmd.exe)?

enter image description here

+3


source to share


2 answers


Likewise, you execute any shell command - using :!

.



> :!Title NewTitle

      

+5


source


Using System.Process.callCommand

from a package process

, you can call the executable title

:



> :m System.Process
> callCommand "title A new title for the console window"

      

+7


source







All Articles