【发布时间】:2014-03-26 11:05:18
【问题描述】:
我想在运行此命令时一次获得一行输出。
Invoke-RestMethod -Uri http://blogs.msdn.com/powershell/rss.aspx | Format-Table -Property Title, pubDate
所以我想得到一行输出,然后按Enter 或Any key 得到下一行输出或按Ctrl+C 中断命令。
我无法通过$Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') 实现它
【问题讨论】:
标签: powershell output-buffering powershell-ise powershell-4.0