Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CodeUI.Core/CodeUI.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<PackageReference Include="Microsoft.EntityFrameworkCore" />
<PackageReference Include="CliWrap" />
<PackageReference Include="System.Reactive" />
<PackageReference Include="Pty.Net" />
</ItemGroup>

</Project>
36 changes: 36 additions & 0 deletions CodeUI.Core/Models/CliProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,42 @@ public enum ProcessState
Failed
}

/// <summary>
/// Represents signals that can be sent to a process.
/// </summary>
public enum ProcessSignal
{
/// <summary>
/// SIGINT - Interrupt signal (Ctrl+C).
/// </summary>
Interrupt = 2,

/// <summary>
/// SIGTERM - Termination signal.
/// </summary>
Terminate = 15,

/// <summary>
/// SIGKILL - Kill signal (cannot be caught or ignored).
/// </summary>
Kill = 9,

/// <summary>
/// SIGQUIT - Quit signal (Ctrl+\).
/// </summary>
Quit = 3,

/// <summary>
/// SIGSTOP - Stop signal (Ctrl+Z).
/// </summary>
Stop = 19,

/// <summary>
/// SIGCONT - Continue signal.
/// </summary>
Continue = 18
}

/// <summary>
/// Represents a line of output from a CLI process.
/// </summary>
Expand Down
Loading