示例#1
0
文件: OZGETL.C 项目: arpruss/ozdev
static void xorcursor()
{
    static byte store_x,store_lh;
    static unsigned store_lhb;
    static byte state=0;
    extern byte display_x;
    store_x=display_x;
    store_lh=line_height;
    store_lhb=line_height_bytes;
    display_x=x;
    cursor_y=y1;
    line_height=ozgetfontheight(ozgetfont());
    line_height_bytes=30*line_height;
    if(state^=1)
        do_cursor_on();
    else
        cursor_off();
    display_x=store_x;
    line_height=store_lh;
    line_height_bytes=store_lhb;
}
示例#2
0
文件: vt.c 项目: davidgiven/FUZIX
void cursor_on(int8_t y, int8_t x)
{
	char_addr(y,x);
	do_cursor_on();
}