summaryrefslogtreecommitdiff
path: root/src/renderer/message.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2024-09-01 21:00:12 -0700
committerMitchell Hashimoto <m@mitchellh.com>2024-09-02 09:44:35 -0700
commitd499f7795bf9608e6aa0ec700fbd0879f0daeb4f (patch)
treee7b8708d7476870b3f32e063b0142e91881ee0aa /src/renderer/message.zig
parent8f477b00da8a503ef597099119e6957f663587d9 (diff)
input: crash binding can configure which thread to crash
Diffstat (limited to 'src/renderer/message.zig')
-rw-r--r--src/renderer/message.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/renderer/message.zig b/src/renderer/message.zig
index c2444b3c9..18b4d916f 100644
--- a/src/renderer/message.zig
+++ b/src/renderer/message.zig
@@ -8,6 +8,10 @@ const terminal = @import("../terminal/main.zig");
/// The messages that can be sent to a renderer thread.
pub const Message = union(enum) {
+ /// Purposely crash the renderer. This is used for testing and debugging.
+ /// See the "crash" binding action.
+ crash: void,
+
/// A change in state in the window focus that this renderer is
/// rendering within. This is only sent when a change is detected so
/// the renderer is expected to handle all of these.