aboutsummaryrefslogtreecommitdiff
path: root/src/signal
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-12 07:15:46 +0000
committer_ov4 <ov4@ov4.org>2026-10-12 07:15:46 +0000
commitf23f6b9ea8204a63d17baa712db06aac1ea1c3ad (patch)
tree61576744c514476be276f035f16122fe4118924c /src/signal
parent7ae4c2d4b67ce40a5434b5195e14085cadf6e22f (diff)
add terminal window size update
Diffstat (limited to 'src/signal')
-rw-r--r--src/signal/sigwinch_handler.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/signal/sigwinch_handler.cc b/src/signal/sigwinch_handler.cc
new file mode 100644
index 0000000..4b692ed
--- /dev/null
+++ b/src/signal/sigwinch_handler.cc
@@ -0,0 +1,13 @@
+#include "signal_handler.h"
+
+#include "line/getter.h"
+
+namespace ov4
+{
+
+void sigwinch_handler([[maybe_unused]] int sig)
+{
+ windows_size_changed = true;
+}
+
+} \ No newline at end of file