diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-06-10 14:49:45 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-06-10 14:49:45 -0700 |
commit | e41eb5691417ecacade402759231f64778e3147f (patch) | |
tree | c28606655266f2702a30277f283e83b62f9a2cbb /sys/cmd/dvtm/vt.h | |
parent | 5daf8d56cdf6aecd1b7301c622c3e35eaa47bd42 (diff) |
checkin: massive restructuring of dvtm
Diffstat (limited to 'sys/cmd/dvtm/vt.h')
-rw-r--r-- | sys/cmd/dvtm/vt.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/cmd/dvtm/vt.h b/sys/cmd/dvtm/vt.h index 3b738f6..3d4d129 100644 --- a/sys/cmd/dvtm/vt.h +++ b/sys/cmd/dvtm/vt.h @@ -1,11 +1,13 @@ /* see LICENSE for details */ #pragma once +#include <u.h> +// #include <vendor/curses.h> #include <stdbool.h> #include <sys/types.h> #ifndef NCURSES_MOUSE_VERSION -#define mmask_t unsigned long +#define mmask_t ulong #endif typedef struct Vt Vt; @@ -16,11 +18,11 @@ void vt_init(void); void vt_shutdown(void); void vt_keytable_set(char const * const keytable_overlay[], int count); -void vt_default_colors_set(Vt*, attr_t attrs, short fg, short bg); +void vt_default_colors_set(Vt*, attr_t attrs, int fg, int bg); void vt_title_handler_set(Vt*, vt_title_handler_t); void vt_urgent_handler_set(Vt*, vt_urgent_handler_t); void vt_data_set(Vt*, void *); -void *vt_data_get(Vt*); +void *vt_data_get(Vt*); Vt *vt_create(int rows, int cols, int scroll_buf_sz); void vt_resize(Vt*, int rows, int cols); @@ -35,8 +37,8 @@ ssize_t vt_write(Vt*, const char *buf, size_t len); void vt_mouse(Vt*, int x, int y, mmask_t mask); void vt_dirty(Vt*); void vt_draw(Vt*, WINDOW *win, int startrow, int startcol); -short vt_color_get(Vt*, short fg, short bg); -short vt_color_reserve(short fg, short bg); +int vt_color_get(Vt*, int fg, int bg); +int vt_color_reserve(int fg, int bg); void vt_scroll(Vt*, int rows); void vt_noscroll(Vt*); |