#pragma once #include struct console { int master; int isesc; }; extern int console_init(struct console *cons); extern int console_deinit(struct console *cons); extern void console_enter(struct console *cons, PANEL *pan); extern void console_leave(struct console *cons, PANEL *pan); extern int console_update(struct console *cons, PANEL *pan); extern void console_input(struct console *cons, int ch); extern int console_configslave(struct console *cons);