Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Wine server consoles |
| 3 | * |
| 4 | * Copyright (C) 2001 Eric Pouech |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 5 | * |
| 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 Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #ifndef __WINE_SERVER_CONSOLE_H |
| 22 | #define __WINE_SERVER_CONSOLE_H |
| 23 | |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 24 | #include "wincon.h" |
| 25 | |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 26 | struct screen_buffer; |
| 27 | struct console_input_events; |
| 28 | |
| 29 | struct console_input |
| 30 | { |
| 31 | struct object obj; /* object header */ |
| 32 | int num_proc; /* number of processes attached to this console */ |
Eric Pouech | 3940d8a | 2001-12-04 20:17:43 +0000 | [diff] [blame] | 33 | struct thread *renderer; /* console renderer thread */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 34 | int mode; /* input mode */ |
| 35 | struct screen_buffer *active; /* active screen buffer */ |
| 36 | int recnum; /* number of input records */ |
Alexandre Julliard | 9caa71e | 2001-11-30 18:46:42 +0000 | [diff] [blame] | 37 | INPUT_RECORD *records; /* input records */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 38 | 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 Pouech | fa8b85a | 2003-01-09 06:01:32 +0000 | [diff] [blame] | 44 | int edition_mode; /* index to edition mode flavors */ |
Eric Pouech | a86a289 | 2003-06-23 03:37:14 +0000 | [diff] [blame] | 45 | struct event *event; /* event to wait on for input queue */ |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 46 | }; |
| 47 | |
| 48 | /* console functions */ |
| 49 | |
Alexandre Julliard | 5188574 | 2002-05-30 20:12:58 +0000 | [diff] [blame] | 50 | extern void inherit_console(struct thread *parent_thread, struct process *process, obj_handle_t hconin); |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 51 | extern int free_console( struct process *process ); |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 52 | |
| 53 | #endif /* __WINE_SERVER_CONSOLE_H */ |