diff options
Diffstat (limited to 'st-0.8.5/st.h')
| -rw-r--r-- | st-0.8.5/st.h | 6 |
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); |