uint8_t vtattr_cap;
-
+uint8_t curattr;
#define tbuf1 (uint8_t *)(0x2000+TTYSIZ*0)
#define tbuf2 (uint8_t *)(0x2000+TTYSIZ*1)
void vtattr_notify(void)
{
- curpty->attr = ((vtink&7)<<3) + (vtpaper&7);
+ curattr = ((vtink&7)<<3) + (vtpaper&7);
}
int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr)
unsigned char right; /* right most coord */
unsigned char bottom; /* bottom most coord */
struct display *fdisp; /* ptr to struct for ioctl */
- uint8_t attr; /* attribute byte to apply */
};
extern struct pty *curpty;
+extern uint8_t curattr;
int my_tty_close( uint8_t minor ); /* wrapper call to close DW ports */
int gfx_ioctl(uint8_t minor, uarg_t arg, char *ptr);
#include <kernel.h>
+#include <vt.h>
#include <devtty.h>
#include <video.h>
unsigned char *p=char_addr(y,x);
map_for_video();
*p++ = VT_MAP_CHAR(c);
- *p = curpty->attr;
+ *p = curattr;
map_for_kernel();
}
uint16_t wc= ct * VT_WIDTH;
map_for_video();
uint16_t *s = (uint16_t *)char_addr(y, 0);
- uint16_t w = ' ' * 0x100 + curpty->attr;
+ uint16_t w = ' ' * 0x100 + curattr;
while( wc-- )
*s++=w;
map_for_kernel();
{
map_for_video();
uint16_t *s = (uint16_t *)char_addr(y, x);
- uint16_t w=' ' * 0x100 + curpty->attr;
+ uint16_t w=' ' * 0x100 + curattr;
while( l-- )
*s++=w;
map_for_kernel();