aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/dvtm/vt.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/dvtm/vt.h')
-rw-r--r--sys/cmd/dvtm/vt.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/sys/cmd/dvtm/vt.h b/sys/cmd/dvtm/vt.h
deleted file mode 100644
index dfc94b3..0000000
--- a/sys/cmd/dvtm/vt.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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 ulong
-#endif
-
-typedef struct Vt Vt;
-typedef void (*vt_title_handler_t)(Vt*, const char *title);
-typedef void (*vt_urgent_handler_t)(Vt*);
-
-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_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*);
-
-Vt *vt_create(int rows, int cols, int scroll_buf_sz);
-void vt_resize(Vt*, int rows, int cols);
-void vt_destroy(Vt*);
-pid_t vt_forkpty(Vt*, const char *p, const char *argv[], const char *cwd, const char *env[], int *to, int *from);
-int vt_pty_get(Vt*);
-bool vt_cursor_visible(Vt*);
-
-int vt_process(Vt *);
-void vt_keypress(Vt *, int keycode);
-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);
-int vt_color_get(Vt*, short fg, short bg);
-int vt_color_reserve(short fg, short bg);
-
-void vt_scroll(Vt*, int rows);
-void vt_noscroll(Vt*);
-
-pid_t vt_pid_get(Vt*);
-size_t vt_content_get(Vt*, char **s, bool colored);
-int vt_content_start(Vt*);