diff options
author | June McEnroe <june@causal.agency> | 2020-02-01 02:55:07 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-01 02:55:07 -0500 |
commit | e289ff6b18e643eea4c72e04f7c0dc6ff768a335 (patch) | |
tree | d8f515192ac7756ffb908b8171787d7f3924637b /chat.h | |
parent | Add IDs and names (diff) | |
download | catgirl-e289ff6b18e643eea4c72e04f7c0dc6ff768a335.tar.gz catgirl-e289ff6b18e643eea4c72e04f7c0dc6ff768a335.zip |
Add term stuff
Copied almost verbatim from existing catgirl... I think I did a better job on that state machine this time tbh.
Diffstat (limited to 'chat.h')
-rw-r--r-- | chat.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chat.h b/chat.h index 8c13d49..93014ef 100644 --- a/chat.h +++ b/chat.h @@ -91,6 +91,23 @@ void ircFormat(const char *format, ...) void handle(struct Message msg); +enum TermMode { + TermFocus, + TermPaste, +}; +enum TermEvent { + TermNone, + TermFocusIn, + TermFocusOut, + TermPasteStart, + TermPasteEnd, +}; +void termInit(void); +void termNoFlow(void); +void termTitle(const char *title); +void termMode(enum TermMode mode, bool set); +enum TermEvent termEvent(char ch); + #define BASE64_SIZE(len) (1 + ((len) + 2) / 3 * 4) static const char Base64[64] = { |