Set the class hints for managed windows.
[wine/multimedia.git] / console / tty.c
blob7225cf1dbaa6d4af6665d8a0c46e093bc8ed86cc
1 /* tty.c */
3 /* This is the console driver for TTY-based consoles, i.e. consoles
4 without cursor placement, etc. It's also a pretty decent starting
5 point for other driers.
6 */
8 /* When creating new drivers, you need to assign all the functions that
9 that driver supports into the driver struct. If it is a supplementary
10 driver, it should make sure to perserve the old values. */
12 #include <stdio.h>
13 #include "console.h"
14 #include "config.h"
15 #include "wintypes.h" /* FALSE */
16 #include "windows.h" /* _lread16() */
17 void TTY_Start()
19 /* This should be the root driver so we can ignore anything
20 already in the struct. */
22 driver.norefresh = FALSE;
24 driver.write = TTY_Write;
25 driver.getKeystroke = TTY_GetKeystroke;
28 void TTY_Write(char output, int fg, int bg, int attribute)
30 /* We can discard all extended information. */
31 fprintf(driver.console_out, "%c", output);
34 void TTY_GetKeystroke(char *ch, char *scan)
36 /* All we have are character input things, nothing for extended */
37 /* This is just the TTY driver, after all. We'll cope. */
38 *ch = fgetc(driver.console_in);