Initial git import
[sxemacs] / src / ui / console-stream.h
1 /* Define stream specific console, device, and frame object for XEmacs.
2    Copyright (C) 1995 Board of Trustees, University of Illinois.
3    Copyright (C) 1995 Free Software Foundation, Inc.
4
5 This file is part of SXEmacs
6
7 SXEmacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 SXEmacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
19
20
21 /* Synched up with: Not in FSF. */
22
23 /* Written by Ben Wing. */
24
25 #ifndef INCLUDED_console_stream_h_
26 #define INCLUDED_console_stream_h_
27
28 #include "console.h"
29
30 DECLARE_CONSOLE_TYPE(stream);
31
32 struct stream_console {
33         FILE *in;
34         FILE *out;
35         FILE *err;
36         int needs_newline;
37 };
38
39 #define CONSOLE_STREAM_DATA(con) CONSOLE_TYPE_DATA (con, stream)
40
41 extern Lisp_Object Vterminal_console, Vterminal_frame, Vterminal_device;
42
43 Lisp_Object stream_semi_canonicalize_console_connection(Lisp_Object,
44                                                         Error_behavior);
45 Lisp_Object stream_canonicalize_console_connection(Lisp_Object, Error_behavior);
46 Lisp_Object stream_semi_canonicalize_device_connection(Lisp_Object,
47                                                        Error_behavior);
48 Lisp_Object stream_canonicalize_device_connection(Lisp_Object, Error_behavior);
49 #endif                          /* INCLUDED_console_stream_h_ */