LinuxServerConsole
A class in Root.Township, the global namespace.
Server console for Linux builds: reads commands from standard input on a background thread, prints coloured log lines, and turns SIGINT and SIGTERM into a clean server shutdown.
- Listed in Global namespace: I to L
- Inherits or implements
ServerConsole
Constructors
| Member | What it is |
|---|---|
LinuxServerConsole() | Creates a LinuxServerConsole with default values. |
Fields
2 private and internal fields
Methods
3 private and internal methods
| Member | What it is |
|---|---|
private void HandleInteruptSignal(object sender, ConsoleCancelEventArgs e) | SIGINT (Ctrl+C) handler: cancels the default kill and asks ApplicationManager to quit with an expected shutdown reason. |
private void HandleTerminateSignal(object sender, EventArgs e) | Process exit (SIGTERM) handler: asks ApplicationManager to quit with a SIGTERM Received reason. |
private void RunConsole() | Background thread loop that reads lines from standard input and passes each to OnTextEntered as a command. |