From 5890e59dbc90e6ed1ae9ccec173006655895918e Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 Aug 2014 22:13:10 +0200 Subject: terminal: some cleanups In particular, remove all the stupid debug printfs from the win code. --- osdep/terminal.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'osdep/terminal.h') diff --git a/osdep/terminal.h b/osdep/terminal.h index 491d76975b..dea92ba6d3 100644 --- a/osdep/terminal.h +++ b/osdep/terminal.h @@ -29,25 +29,20 @@ struct input_ctx; -/* Screen size. Initialized by load_termcap() and get_screen_size() */ -extern int screen_width; -extern int screen_height; - /* Global initialization for terminal output. */ int terminal_init(void); /* Setup ictx to read keys from the terminal */ void terminal_setup_getch(struct input_ctx *ictx); +/* Undo terminal_init(), and also terminal_setup_getch() */ +void terminal_uninit(void); + /* Return whether the process has been backgrounded. */ bool terminal_in_background(void); -/* Get screen-size using IOCTL call. */ -void get_screen_size(void); - -/* Initialize getch2 */ -void getch2_enable(void); -void getch2_disable(void); +/* Get terminal-size in columns/rows. */ +void terminal_get_size(int *w, int *h); /* Enable and disable STDIN line-buffering */ void getch2_poll(void); -- cgit v1.2.3