diff options
author | wm4 <wm4@nowhere> | 2014-08-21 22:13:10 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-21 22:45:58 +0200 |
commit | 5890e59dbc90e6ed1ae9ccec173006655895918e (patch) | |
tree | 86c0c880e40ce1726ba93d9fd2ac896742f7341b /osdep/terminal.h | |
parent | 070c54dff4afe890a7e2a916698d9910b5aa0662 (diff) | |
download | mpv-5890e59dbc90e6ed1ae9ccec173006655895918e.tar.bz2 mpv-5890e59dbc90e6ed1ae9ccec173006655895918e.tar.xz |
terminal: some cleanups
In particular, remove all the stupid debug printfs from the win code.
Diffstat (limited to 'osdep/terminal.h')
-rw-r--r-- | osdep/terminal.h | 15 |
1 files changed, 5 insertions, 10 deletions
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); |