Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | \ ========== Copyright Header Begin ========================================== |
2 | \ | |
3 | \ Hypervisor Software File: framebuf.fth | |
4 | \ | |
5 | \ Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. | |
6 | \ | |
7 | \ - Do no alter or remove copyright notices | |
8 | \ | |
9 | \ - Redistribution and use of this software in source and binary forms, with | |
10 | \ or without modification, are permitted provided that the following | |
11 | \ conditions are met: | |
12 | \ | |
13 | \ - Redistribution of source code must retain the above copyright notice, | |
14 | \ this list of conditions and the following disclaimer. | |
15 | \ | |
16 | \ - Redistribution in binary form must reproduce the above copyright notice, | |
17 | \ this list of conditions and the following disclaimer in the | |
18 | \ documentation and/or other materials provided with the distribution. | |
19 | \ | |
20 | \ Neither the name of Sun Microsystems, Inc. or the names of contributors | |
21 | \ may be used to endorse or promote products derived from this software | |
22 | \ without specific prior written permission. | |
23 | \ | |
24 | \ This software is provided "AS IS," without a warranty of any kind. | |
25 | \ ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, | |
26 | \ INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A | |
27 | \ PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN | |
28 | \ MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR | |
29 | \ ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR | |
30 | \ DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN | |
31 | \ OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR | |
32 | \ FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE | |
33 | \ DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, | |
34 | \ ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF | |
35 | \ SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. | |
36 | \ | |
37 | \ You acknowledge that this software is not designed, licensed or | |
38 | \ intended for use in the design, construction, operation or maintenance of | |
39 | \ any nuclear facility. | |
40 | \ | |
41 | \ ========== Copyright Header End ============================================ | |
42 | id: @(#)framebuf.fth 3.4 01/04/06 | |
43 | purpose: Variables and defer words used by many frame buffers drivers | |
44 | copyright: Copyright 1990-2001 Sun Microsystems, Inc. All Rights Reserved | |
45 | ||
46 | \ Variables that are useful for most kinds of frame buffers. | |
47 | headers | |
48 | ||
49 | \ The definition of frame-buffer-adr has been moved to devtree.fth, as | |
50 | \ frame-buffer-adr is now a fixed instance value. This was done as a | |
51 | \ workaround for a problem with old FCode display drivers, some of which | |
52 | \ use frame-buffer-adr for their selftest routines. With multiple frame | |
53 | \ buffers on the same machine, a "test" command directed to a frame buffer | |
54 | \ can screw up the console device. | |
55 | \ 0 termemu-value frame-buffer-adr | |
56 | ||
57 | 0 termemu-value column# \ Cursor column number | |
58 | 0 termemu-value line# \ Cursor line number | |
59 | ||
60 | d# 1152 termemu-value screen-width | |
61 | d# 900 termemu-value screen-height | |
62 | ||
63 | 0 termemu-value window-top \ Pixel position of top of text area | |
64 | 0 termemu-value window-left \ Pixel position of left of text area | |
65 | ||
66 | 0 termemu-value emu-bytes/line | |
67 | ||
68 | \ Interfaces to device-dependent graphics primitives: | |
69 | d# 34 termemu-value #lines | |
70 | d# 80 termemu-value #columns | |
71 | ||
72 | termemu-defer draw-character | |
73 | termemu-defer insert-characters | |
74 | termemu-defer delete-characters | |
75 | termemu-defer insert-lines | |
76 | termemu-defer delete-lines | |
77 | termemu-defer blink-screen | |
78 | termemu-defer invert-screen | |
79 | termemu-defer reset-screen | |
80 | termemu-defer erase-screen | |
81 | termemu-defer toggle-cursor | |
82 | ||
83 | termemu-defer draw-logo | |
84 | ||
85 | \ These values are available to the device-dependent routines. | |
86 | \ The behavior of the device-dependent routines implicitly depends | |
87 | \ on their values. | |
88 | ||
89 | true termemu-value showing-cursor? \ True to display text cursor | |
90 | false termemu-value inverse-screen? \ True for overall black background | |
91 | false termemu-value inverse? \ True for white characters on black background | |
92 | headerless | |
93 | \ true value frame-buffer-busy? \ If true, drivers must assume that the frame | |
94 | \ \ buffer is in use by another program, which | |
95 | \ \ may require extra action to ensure the | |
96 | \ \ visibility of the displayed text. | |
97 | \ \ For example, a frame buffer with an enable plane might require | |
98 | \ \ that the enable plane be written to expose the character. | |
99 | \ | |
100 | ||
101 | termemu-defer ansi-emit | |
102 | false termemu-value pending-newline? | |
103 | \ True if the cursor is at the rightmost column but the next character | |
104 | \ should be displayed on the next line | |
105 | ||
106 | 1 termemu-value #scroll-lines \ Number of lines to scroll | |
107 | ||
108 | warning @ warning off | |
109 | \ next-arg duplicate definition in fm/kernel/cmdline.fth | |
110 | \ | |
111 | \ These variables are used to accumulate the optional numeric | |
112 | \ argument or arguments of the escape sequence. | |
113 | 4 termemu-array arg | |
114 | 0 termemu-value next-arg | |
115 | 0 termemu-value arginit \ Remembers the "real" value of argument 0. | |
116 | \ If arg0 is 0, it is changed to 1. | |
117 | warning ! | |
118 | ||
119 | 0 termemu-value foreground-color \ Color index for foreground | |
120 | d# 15 termemu-value background-color \ Color index for background | |
121 | false termemu-value 16-color? \ True if 16-color text is enabled | |
122 |