A couple of additions.
[wine/wine-kai.git] / server / console.h
blob9daed7198ef184fcdc57acc06c30fa10147de700
1 /*
2 * Wine server consoles
4 * Copyright (C) 2001 Eric Pouech
5 */
7 #ifndef __WINE_SERVER_CONSOLE_H
8 #define __WINE_SERVER_CONSOLE_H
10 #include "wincon.h"
12 struct screen_buffer;
13 struct console_input_events;
15 struct console_input
17 struct object obj; /* object header */
18 int num_proc; /* number of processes attached to this console */
19 struct thread *renderer; /* console renderer thread */
20 int mode; /* input mode */
21 struct screen_buffer *active; /* active screen buffer */
22 int recnum; /* number of input records */
23 INPUT_RECORD *records; /* input records */
24 struct console_input_events *evt; /* synchronization event with renderer */
25 WCHAR *title; /* console title */
26 WCHAR **history; /* lines history */
27 int history_size; /* number of entries in history array */
28 int history_index; /* number of used entries in history array */
29 int history_mode; /* mode of history (non zero means remove doubled strings */
32 /* console functions */
34 extern void inherit_console(struct thread *parent_thread, struct process *process, handle_t hconin);
35 extern int free_console( struct process *process );
37 #endif /* __WINE_SERVER_CONSOLE_H */