Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / obp / obp / pkg / termemu / framebuf.fth
CommitLineData
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 ============================================
42id: @(#)framebuf.fth 3.4 01/04/06
43purpose: Variables and defer words used by many frame buffers drivers
44copyright: Copyright 1990-2001 Sun Microsystems, Inc. All Rights Reserved
45
46\ Variables that are useful for most kinds of frame buffers.
47headers
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
570 termemu-value column# \ Cursor column number
580 termemu-value line# \ Cursor line number
59
60d# 1152 termemu-value screen-width
61d# 900 termemu-value screen-height
62
630 termemu-value window-top \ Pixel position of top of text area
640 termemu-value window-left \ Pixel position of left of text area
65
660 termemu-value emu-bytes/line
67
68\ Interfaces to device-dependent graphics primitives:
69d# 34 termemu-value #lines
70d# 80 termemu-value #columns
71
72termemu-defer draw-character
73termemu-defer insert-characters
74termemu-defer delete-characters
75termemu-defer insert-lines
76termemu-defer delete-lines
77termemu-defer blink-screen
78termemu-defer invert-screen
79termemu-defer reset-screen
80termemu-defer erase-screen
81termemu-defer toggle-cursor
82
83termemu-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
89true termemu-value showing-cursor? \ True to display text cursor
90false termemu-value inverse-screen? \ True for overall black background
91false termemu-value inverse? \ True for white characters on black background
92headerless
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
101termemu-defer ansi-emit
102false 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
1061 termemu-value #scroll-lines \ Number of lines to scroll
107
108warning @ 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.
1134 termemu-array arg
1140 termemu-value next-arg
1150 termemu-value arginit \ Remembers the "real" value of argument 0.
116 \ If arg0 is 0, it is changed to 1.
117warning !
118
119 0 termemu-value foreground-color \ Color index for foreground
120d# 15 termemu-value background-color \ Color index for background
121false termemu-value 16-color? \ True if 16-color text is enabled
122