aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/term/win.h
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-06-06 12:31:12 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-06-06 12:31:12 -0700
commit7b5b105d84103d4320de510f0fdab345b5d2f477 (patch)
tree79f2dc2b08f83e2fc52f3a9cd294e79b36951b86 /sys/cmd/term/win.h
parente02e1403b432f8cd6d07ebbdd235627f20f01cfb (diff)
added fork of st
Diffstat (limited to 'sys/cmd/term/win.h')
-rw-r--r--sys/cmd/term/win.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/sys/cmd/term/win.h b/sys/cmd/term/win.h
new file mode 100644
index 0000000..7202ef3
--- /dev/null
+++ b/sys/cmd/term/win.h
@@ -0,0 +1,39 @@
+/* See LICENSE for license details. */
+
+enum win_mode {
+ MODE_VISIBLE = 1 << 0,
+ MODE_FOCUSED = 1 << 1,
+ MODE_APPKEYPAD = 1 << 2,
+ MODE_MOUSEBTN = 1 << 3,
+ MODE_MOUSEMOTION = 1 << 4,
+ MODE_REVERSE = 1 << 5,
+ MODE_KBDLOCK = 1 << 6,
+ MODE_HIDE = 1 << 7,
+ MODE_APPCURSOR = 1 << 8,
+ MODE_MOUSESGR = 1 << 9,
+ MODE_8BIT = 1 << 10,
+ MODE_BLINK = 1 << 11,
+ MODE_FBLINK = 1 << 12,
+ MODE_FOCUS = 1 << 13,
+ MODE_MOUSEX10 = 1 << 14,
+ MODE_MOUSEMANY = 1 << 15,
+ MODE_BRCKTPASTE = 1 << 16,
+ MODE_NUMLOCK = 1 << 17,
+ MODE_MOUSE = MODE_MOUSEBTN|MODE_MOUSEMOTION|MODE_MOUSEX10\
+ |MODE_MOUSEMANY,
+};
+
+void xbell(void);
+void xclipcopy(void);
+void xdrawcursor(int, int, Glyph, int, int, Glyph);
+void xdrawline(Line, int, int, int);
+void xfinishdraw(void);
+void xloadcols(void);
+int xsetcolorname(int, char *);
+void xsettitle(char *);
+int xsetcursor(int);
+void xsetmode(int, uint);
+void xsetpointermotion(int);
+void xsetsel(char *);
+int xstartdraw(void);
+void xximspot(int, int);