annotate src/console-msw.c @ 242:fc816b73a05f

Added tag r20-5b19 for changeset f955c73f5258
author cvs
date Mon, 13 Aug 2007 10:16:17 +0200
parents 78f53ef88e17
children 83b3d10dcba9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1 /* Console functions for mswindows.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
2 Copyright (C) 1996 Ben Wing.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
3
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
4 This file is part of XEmacs.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
5
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
9 later version.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
10
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
14 for more details.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
15
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
20
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
21 /* Synched up with: Not in FSF. */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
22
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
23 /* Authorship:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
24
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
25 Ben Wing: January 1996, for 19.14.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
26 Rewritten for mswindows by Jonathan Harris, November 1997 for 20.4.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
27 */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
28
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
29 #include <config.h>
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
30 #include "lisp.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
31
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
32 #include "console-msw.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
33
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
34 DEFINE_CONSOLE_TYPE (mswindows);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
35
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
36
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
37 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
38 mswindows_initially_selected_for_input (struct console *con)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
39 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
40 return 1;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
41 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
42
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
43
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
44
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
45
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
46 /************************************************************************/
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
47 /* initialization */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
48 /************************************************************************/
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
49
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
50 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
51 syms_of_console_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
52 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
53 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
54
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
55 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
56 console_type_create_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
57 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
58 INITIALIZE_CONSOLE_TYPE (mswindows, "mswindows", "console-mswindows-p");
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
59
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
60 /* console methods */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
61 /* CONSOLE_HAS_METHOD (mswindows, init_console); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
62 /* CONSOLE_HAS_METHOD (mswindows, mark_console); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
63 CONSOLE_HAS_METHOD (mswindows, initially_selected_for_input);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
64 /* CONSOLE_HAS_METHOD (mswindows, delete_console); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
65 /* CONSOLE_HAS_METHOD (mswindows, canonicalize_console_connection); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
66 /* CONSOLE_HAS_METHOD (mswindows, canonicalize_device_connection); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
67 /* CONSOLE_HAS_METHOD (mswindows, semi_canonicalize_console_connection); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
68 /* CONSOLE_HAS_METHOD (mswindows, semi_canonicalize_device_connection); */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
69 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
70
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
71 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
72 vars_of_console_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
73 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
74 Fprovide (Qmswindows);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
75 }