irssi core: add window console set active support

We can't go to the console window easily right now, we'll
want this in case irssi needs to prompt the user for something
sensitive such as a password.

Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
This commit is contained in:
Luis R. Rodriguez 2014-08-15 16:01:35 -04:00
commit ea7476addf
3 changed files with 28 additions and 0 deletions

View file

@ -35,6 +35,7 @@ struct _WINDOW_REC {
unsigned int immortal:1;
unsigned int sticky_refnum:1;
unsigned int destroying:1;
unsigned int console:1;
/* window-specific command line history */
HISTORY_REC *history;
@ -75,6 +76,7 @@ const char *window_get_active_name(WINDOW_REC *window);
WINDOW_REC *window_find_level(void *server, int level);
WINDOW_REC *window_find_closest(void *server, const char *name, int level);
WINDOW_REC *window_find_refnum(int refnum);
WINDOW_REC *window_find_console(void);
WINDOW_REC *window_find_name(const char *name);
WINDOW_REC *window_find_item(SERVER_REC *server, const char *name);