aboutsummaryrefslogtreecommitdiffstats
path: root/src/ffi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffi.c')
-rw-r--r--src/ffi.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ffi.c b/src/ffi.c
new file mode 100644
index 0000000..a4af5ba
--- /dev/null
+++ b/src/ffi.c
@@ -0,0 +1,12 @@
+#include <stdlib.h>
+#include "../libvt100/src/vt100.h"
+
+int vt100_wrapper_rows(VT100Screen *vt)
+{
+ return vt->grid->max.row;
+}
+
+int vt100_wrapper_cols(VT100Screen *vt)
+{
+ return vt->grid->max.col;
+}