console.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Wine server consoles
  3. *
  4. * Copyright (C) 2001 Eric Pouech
  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
  19. */
  20. #ifndef __WINE_SERVER_CONSOLE_H
  21. #define __WINE_SERVER_CONSOLE_H
  22. #include "wincon.h"
  23. struct screen_buffer;
  24. struct console_input_events;
  25. struct console_input
  26. {
  27. struct object obj; /* object header */
  28. int num_proc; /* number of processes attached to this console */
  29. struct thread *renderer; /* console renderer thread */
  30. int mode; /* input mode */
  31. struct screen_buffer *active; /* active screen buffer */
  32. int recnum; /* number of input records */
  33. INPUT_RECORD *records; /* input records */
  34. struct console_input_events *evt; /* synchronization event with renderer */
  35. WCHAR *title; /* console title */
  36. WCHAR **history; /* lines history */
  37. int history_size; /* number of entries in history array */
  38. int history_index; /* number of used entries in history array */
  39. int history_mode; /* mode of history (non zero means remove doubled strings */
  40. int edition_mode; /* index to edition mode flavors */
  41. struct event *event; /* event to wait on for input queue */
  42. };
  43. /* console functions */
  44. extern void inherit_console(struct thread *parent_thread, struct process *process, obj_handle_t hconin);
  45. extern int free_console( struct process *process );
  46. #endif /* __WINE_SERVER_CONSOLE_H */