summaryrefslogtreecommitdiff
path: root/st-0.8.5/st.h
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-05-26 20:55:41 +0000
committerstkhan <personal@slickd.xyz>2022-05-26 20:55:41 +0000
commitc9a6277b4c5a08d587396c7bf597286d7b6efdaa (patch)
treef1f5fdfd9656f8f5e93bd7715e73fe51e0a05d93 /st-0.8.5/st.h
parent2016aeaa085bc37b4c5d01d6bcf12cdfd2235ca1 (diff)
Added graphics patch
Diffstat (limited to 'st-0.8.5/st.h')
-rw-r--r--st-0.8.5/st.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/st-0.8.5/st.h b/st-0.8.5/st.h
index f82bbdd..f425fb6 100644
--- a/st-0.8.5/st.h
+++ b/st-0.8.5/st.h
@@ -60,6 +60,10 @@ typedef unsigned short ushort;
typedef uint_least32_t Rune;
+typedef struct TTYConn {
+ int cmdfd, pipefd;
+} TTYConn;
+
#define Glyph Glyph_
typedef struct {
Rune u; /* character code */
@@ -92,7 +96,7 @@ void tnew(int, int);
void tresize(int, int);
void tsetdirtattr(int);
void ttyhangup(void);
-int ttynew(const char *, char *, const char *, char **);
+TTYConn ttynew(const char *, char *, const char *, char **);
size_t ttyread(void);
void ttyresize(int, int);
void ttywrite(const char *, size_t, int);