aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/term/term.h
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-06-06 13:59:25 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-06-06 13:59:25 -0700
commit254258b48b4ba761eae0a1563549e4f324564456 (patch)
tree721a3ca12d87da563a9f9bb5aed85398c629ddfb /sys/cmd/term/term.h
parentb3ea2b804fbd35babac86c83c718a5491542db7c (diff)
opacity
Diffstat (limited to 'sys/cmd/term/term.h')
-rw-r--r--sys/cmd/term/term.h33
1 files changed, 24 insertions, 9 deletions
diff --git a/sys/cmd/term/term.h b/sys/cmd/term/term.h
index a155bbe..deb494c 100644
--- a/sys/cmd/term/term.h
+++ b/sys/cmd/term/term.h
@@ -157,14 +157,6 @@ struct Letter {
uint32_t bg; /* background */
};
-union Arg {
- int i;
- uint ui;
- float f;
- void *v;
- char *s;
-};
-
struct Dot {
Letter attr; /* current char attributes */
int x;
@@ -233,7 +225,29 @@ typedef struct {
int narg; /* nb of args */
} STREscape;
+/* x.c */
+typedef struct TermWindow TermWindow;
+
+struct TermWindow {
+ int tw, th; /* tty width and height */
+ int w, h; /* window width and height */
+ int ch; /* char height */
+ int cw; /* char width */
+ int mode; /* window state/mode flags */
+ int cursor; /* cursor style */
+};
+/* used for user hooks */
+union Arg {
+ int i;
+ uint ui;
+ float f;
+ void *v;
+ char *s;
+};
+
+// -----------------------------------------------------------------------
+// x.c (backend functions)
void xbell(void);
void xclipcopy(void);
@@ -250,7 +264,7 @@ void xsetsel(char *);
int xstartdraw(void);
void xximspot(int, int);
-void die( char *, ...);
+void fatal( char *, ...);
void redraw(void);
void draw(void);
@@ -294,3 +308,4 @@ extern char *termname;
extern uint tabspaces;
extern uint defaultfg;
extern uint defaultbg;
+extern float alpha;