Hacker News new | ask | show | jobs
by CrowderSoup 3883 days ago
This is awesome, just a shame there isn't anything like this for MS PowerShell.
1 comments

   function color ($name) { $Host.UI.RawUI.ForegroundColor = $name }
   function sayhello { 'pardon me do you have any grey poupon?' }
   echo $(color yellow) $(sayhello)
The other stuff (bold, pictures) requires host support (more than regular powershell.exe provides).
> The other stuff (bold, pictures) requires host support (more than regular powershell.exe provides).

PoshConsole made a nice stab at it. Sadly it is no longer developed, I think.

Simple unicode characters (the smilies etc as used in OP) does work in powershell ISE.

[1] https://poshconsole.codeplex.com/