2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Hardware text mode (IBM-compatible) screen console.
8 #include <bootconsole.h>
19 * There's no init function for text mode console.
20 * Just set scr_Framebuffer, scr_Width and scr_Height and you are ready to go.
25 struct scr
*view
= scr_FrameBuffer
;
31 for (i
= 0; i
< scr_Width
* scr_Height
; i
++)
38 void txt_Putc(char chr
)
40 struct scr
*view
= scr_FrameBuffer
;
43 /* Ignore null bytes, they are output by formatting routines as terminators */
47 /* Reached end of line ? New line if so. */
48 if ((chr
== '\n') || (scr_XPos
>= scr_Width
))
54 if (scr_YPos
>= scr_Height
)
56 scr_YPos
= scr_Height
- 1;
58 for (i
= 0; i
< scr_Width
* scr_YPos
; i
++)
59 view
[i
].sign
= view
[i
+80].sign
;
60 for (i
= scr_Width
* scr_YPos
; i
< scr_Width
* scr_Height
; i
++)
67 i
= 80 * scr_YPos
+ scr_XPos
;