blob: 2fdb9d56229f42ad548337ac4de72a9cb46bbc78 [file] [log] [blame]
Eric Pouech0b83d4c2001-11-23 23:04:58 +00001/*
2 * Wine server consoles
3 *
4 * Copyright (C) 2001 Eric Pouech
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00005 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Eric Pouech0b83d4c2001-11-23 23:04:58 +000019 */
20
21#ifndef __WINE_SERVER_CONSOLE_H
22#define __WINE_SERVER_CONSOLE_H
23
Alexandre Julliard9caa71e2001-11-30 18:46:42 +000024#include "wincon.h"
25
Eric Pouech0b83d4c2001-11-23 23:04:58 +000026struct screen_buffer;
27struct console_input_events;
28
29struct console_input
30{
31 struct object obj; /* object header */
32 int num_proc; /* number of processes attached to this console */
Eric Pouech3940d8a2001-12-04 20:17:43 +000033 struct thread *renderer; /* console renderer thread */
Eric Pouech0b83d4c2001-11-23 23:04:58 +000034 int mode; /* input mode */
35 struct screen_buffer *active; /* active screen buffer */
36 int recnum; /* number of input records */
Alexandre Julliard9caa71e2001-11-30 18:46:42 +000037 INPUT_RECORD *records; /* input records */
Eric Pouech0b83d4c2001-11-23 23:04:58 +000038 struct console_input_events *evt; /* synchronization event with renderer */
39 WCHAR *title; /* console title */
40 WCHAR **history; /* lines history */
41 int history_size; /* number of entries in history array */
42 int history_index; /* number of used entries in history array */
43 int history_mode; /* mode of history (non zero means remove doubled strings */
Eric Pouechfa8b85a2003-01-09 06:01:32 +000044 int edition_mode; /* index to edition mode flavors */
Eric Pouecha86a2892003-06-23 03:37:14 +000045 struct event *event; /* event to wait on for input queue */
Eric Pouech0b83d4c2001-11-23 23:04:58 +000046};
47
48/* console functions */
49
Alexandre Julliard51885742002-05-30 20:12:58 +000050extern void inherit_console(struct thread *parent_thread, struct process *process, obj_handle_t hconin);
Eric Pouech0b83d4c2001-11-23 23:04:58 +000051extern int free_console( struct process *process );
Eric Pouech0b83d4c2001-11-23 23:04:58 +000052
53#endif /* __WINE_SERVER_CONSOLE_H */