aboutsummaryrefslogtreecommitdiff
path: root/teco.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-22 04:49:35 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-23 06:51:22 +0300
commit522d0aafc73e4412439921e2dcd10f698984a94f (patch)
tree07c2c594182e8b502d70916019f49ce8791a3e03 /teco.h
parent21a986f52bd2fb1e6522503cc9796adf71b29a37 (diff)
downloadvideoteco-fork-522d0aafc73e4412439921e2dcd10f698984a94f.tar.gz
DOS: implemented console size detection
This is done via 10h interrupts and special memory regions. The alternative would have been to use set the cursor to 9999,9999 and query the cursor position via ANSI escape sequences.
Diffstat (limited to 'teco.h')
-rw-r--r--teco.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/teco.h b/teco.h
index c72fb03..c5cc417 100644
--- a/teco.h
+++ b/teco.h
@@ -477,6 +477,10 @@ typedef unsigned long teco_ptrint_t;
#include <direct.h>
#endif
+#if HAVE_I86_H
+#include <i86.h>
+#endif
+
#if HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif