Skip to content

Commit

Permalink
Throw PlatformNotSupportedException when a signal can't be synthesized.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jan 4, 2022
1 parent b898186 commit db81ecf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/Terminals/Windows/WindowsVirtualTerminal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ protected override void SendSignal(int pid, TerminalSignal signal)
{
TerminalSignal.Close => CTRL_CLOSE_EVENT,
TerminalSignal.Interrupt => CTRL_C_EVENT,
TerminalSignal.Quit => CTRL_BREAK_EVENT,
TerminalSignal.Terminate => CTRL_SHUTDOWN_EVENT,
TerminalSignal.Quit or TerminalSignal.Terminate => throw new PlatformNotSupportedException(),
_ => throw new ArgumentOutOfRangeException(nameof(signal)),
},
(uint)pid);
Expand Down

0 comments on commit db81ecf

Please sign in to comment.