aboutsummaryrefslogtreecommitdiff
path: root/src/line/mode.cc
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/line/mode.cc
parent7ae4c2d4b67ce40a5434b5195e14085cadf6e22f (diff)
add terminal window size update
Diffstat (limited to 'src/line/mode.cc')
-rw-r--r--src/line/mode.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/line/mode.cc b/src/line/mode.cc
index 06f1727..208465b 100644
--- a/src/line/mode.cc
+++ b/src/line/mode.cc
@@ -8,6 +8,7 @@
#include "line/cursor.h"
#include "line/getter.h"
#include "history.h"
+#include "signal_handler.h"
using namespace std;
@@ -57,6 +58,8 @@ void enable_raw()
atexit(disable_raw);
+ Signal(SIGWINCH, sigwinch_handler);
+
// TCSAFLUSH
// the change shall occur after all output written to fildes is transmitted
// and all input so far received but not read shall be discarded before the change is made