diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-08 23:39:10 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-08 23:39:10 +0200 |
| commit | c301a55b88a131f081a844552327c0ab85db017c (patch) | |
| tree | ceff7f5058027bd260d6fe91c9ab705e40688421 /win.h | |
| parent | fe84e69990a9f156a818eb1547384812bc9db41c (diff) | |
connect st term api
Diffstat (limited to 'win.h')
| -rw-r--r-- | win.h | 41 |
1 files changed, 41 insertions, 0 deletions
@@ -0,0 +1,41 @@ +/* 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 wbell(void); +void wclipcopy(void); +void wdrawcursor(int, int, Glyph, int, int, Glyph); +void wdrawline(Line, int, int, int); +void wfinishdraw(void); +void wloadcols(void); +int wsetcolorname(int, const char *); +int wgetcolor(int, unsigned char *, unsigned char *, unsigned char *); +void wseticontitle(char *); +void wsettitle(char *); +int wsetcursor(int); +void wsetmode(int, unsigned int); +void wsetpointermotion(int); +void wsetsel(char *); +int wstartdraw(void); +void wximspot(int, int); |