RosettaCodeData/Task/Keyboard-input-Flush-the-keyboard-buffer/PowerShell/keyboard-input-flush-the-keyboard-buffer-1.ps1
2026-04-30 12:34:36 -04:00

3 lines
80 B
PowerShell

while ($Host.UI.RawUI.KeyAvailable) {
$Host.UI.RawUI.ReadKey() | Out-Null
}