diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-17 23:01:12 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-17 23:01:12 +0000 |
commit | e46446e95072713c077253b1dd8443e31a232876 (patch) | |
tree | b319d8f73ae465384b7f53f9e6ca472a45522482 /src/fe-text/term.h | |
parent | ba09b3f29972dc8812eb63c544f37f5df40a8b9c (diff) | |
download | irssi-e46446e95072713c077253b1dd8443e31a232876.zip |
Since I accidentally already committed some of the detach-code, here's the
rest of it. It doesn't really work, you can make irssi detached but you
can't attach to it anymore :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2268 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/term.h')
-rw-r--r-- | src/fe-text/term.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-text/term.h b/src/fe-text/term.h index 1e771932..9cd1b153 100644 --- a/src/fe-text/term.h +++ b/src/fe-text/term.h @@ -23,7 +23,7 @@ typedef struct _TERM_WINDOW TERM_WINDOW; #endif extern TERM_WINDOW *root_window; -extern int term_width, term_height, term_use_colors; +extern int term_width, term_height, term_use_colors, term_detached; /* Initialize / deinitialize terminal */ int term_init(void); @@ -72,6 +72,11 @@ void term_refresh_freeze(void); void term_refresh_thaw(void); void term_refresh(TERM_WINDOW *window); +/* Automatically detach irssi when terminal is lost */ +void term_auto_detach(int set); +void term_detach(void); +void term_attach(FILE *in, FILE *out); + void term_stop(void); int term_gets(unsigned char *buffer, int size); |