Keyboard input/Flush the keyboard buffer: Difference between revisions

m
Line 244:
$Host.UI.RawUI.ReadKey() | Out-Null
}</lang>
 
To flush the keyboard buffer use:
<lang powershell>
$Host.UI.RawUI.FlushInputBuffer()
</lang>
 
=={{header|PureBasic}}==
Anonymous user