2001-11-24 00:04:58 +01:00
|
|
|
/*
|
|
|
|
* Wine server consoles
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001 Eric Pouech
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2001-11-24 00:04:58 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_SERVER_CONSOLE_H
|
|
|
|
#define __WINE_SERVER_CONSOLE_H
|
|
|
|
|
2001-11-30 19:46:42 +01:00
|
|
|
#include "wincon.h"
|
|
|
|
|
2001-11-24 00:04:58 +01:00
|
|
|
struct screen_buffer;
|
|
|
|
struct console_input_events;
|
|
|
|
|
|
|
|
struct console_input
|
|
|
|
{
|
|
|
|
struct object obj; /* object header */
|
|
|
|
int num_proc; /* number of processes attached to this console */
|
2001-12-04 21:17:43 +01:00
|
|
|
struct thread *renderer; /* console renderer thread */
|
2001-11-24 00:04:58 +01:00
|
|
|
int mode; /* input mode */
|
|
|
|
struct screen_buffer *active; /* active screen buffer */
|
|
|
|
int recnum; /* number of input records */
|
2001-11-30 19:46:42 +01:00
|
|
|
INPUT_RECORD *records; /* input records */
|
2001-11-24 00:04:58 +01:00
|
|
|
struct console_input_events *evt; /* synchronization event with renderer */
|
|
|
|
WCHAR *title; /* console title */
|
|
|
|
WCHAR **history; /* lines history */
|
|
|
|
int history_size; /* number of entries in history array */
|
|
|
|
int history_index; /* number of used entries in history array */
|
|
|
|
int history_mode; /* mode of history (non zero means remove doubled strings */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* console functions */
|
|
|
|
|
2002-05-30 22:12:58 +02:00
|
|
|
extern void inherit_console(struct thread *parent_thread, struct process *process, obj_handle_t hconin);
|
2001-11-24 00:04:58 +01:00
|
|
|
extern int free_console( struct process *process );
|
|
|
|
|
|
|
|
#endif /* __WINE_SERVER_CONSOLE_H */
|