Debian Codegraph @

terps/tads/tads3/vmconnom.cpp

raw symbols SCIP
1 #ifdef RCSID
2 static char RCSid[] =
3 "$Header$";
4 #endif
5
6 /*
7 * Copyright (c) 1999, 2002 Michael J. Roberts. All Rights Reserved.
8 *
9 * Please see the accompanying license file, LICENSE.TXT, for information
10 * on using and copying this software.
11 */
12 /*
13 Name
14 vmconnom.cpp - TADS 3 console input/output - OS-level MORE/text-only version
15 Function
16 There are three possible configurations for the output formatter.
17 For each configuration, there is one extra file that must be linked
18 into the system when building an application; the choice of this
19 file determines the configuration of the system. The three choices
20 are:
21
22 Text only, MORE mode enabled - vmconmor.cpp
23 Text only, OS-level MORE handling - vmconnom.cpp
24 HTML mode - vmconhtm.cpp
25 Notes
26
27 Modified
28 09/06/99 MJRoberts - Creation
29 */
30
31 #include "os.h"
32 #include "t3std.h"
33 #include "vmconsol.h"
34
35
36 /* ------------------------------------------------------------------------ */
37 /*
38 * This version uses OS-level MORE prompting, so indicate that we do not
39 * handle the MORE prompt in the output formatter
40 */
41 int CVmFormatter::formatter_more_mode() const
42 {
43 return FALSE;
44 }
45
46 /* ------------------------------------------------------------------------ */
47 /*
48 * This is a non-HTML version, so we turn off the HTML-target flag
49 */
50 int CVmFormatter::get_init_html_target() const
51 {
52 return FALSE;
53 }
54
55 /* ------------------------------------------------------------------------ */
56 /*
57 * This is a text-only (non-HTML) version, so the HTML start/end functions
58 * do nothing
59 */
60 void CVmFormatterMain::start_html_in_os()
61 {
62 }
63
64 void CVmFormatterMain::end_html_in_os()
65 {
66 }
67
68 /*
69 * The OS layer handles line wrapping in this version
70 */
71 int CVmFormatterMain::get_os_line_wrap()
72 {
73 return TRUE;
74 }
75
76 /* ------------------------------------------------------------------------ */
77 /*
78 * This version handles MORE prompting in the OS code, so call the OS
79 * code when we need to display a MORE prompt
80 */
81 void CVmConsole::show_con_more_prompt(VMG0_)
82 {
83 os_more_prompt();
84 }
85