basic sti cursor patch
Hi Helge,
Here is a patch to get the cursor working on STI..
Of course it's not perfect, but already quite useful as is. As you can see, this basic cursor is the character on the screen, with some color attribute (black fg, white bg).
Now we can use vi & emacs, knowing where we are :-)
Xavier.
ESIEE Team.
http://www.esiee.fr/puffin
drivers/video/sti/sticon.c +20 -1
@@ -94,7 +94,26 @@static void sticon_cursor (struct vc_data *conp,int mode) { -} +unsigned short car1; + car1 = conp->vc_screenbuf[conp->vc_x+conp->vc_y*conp->vc_cols]; +switch (mode) { +case CM_ERASE : +sti_putc (&default_sti,car1,conp->vc_y,conp->vc_x); +break ; +case CM_MOVE : +case CM_DRAW : +switch (conp->vc_cursor_type &0x0f ) { +case CUR_UNDERLINE : +case CUR_LOWER_THIRD : +case CUR_LOWER_HALF : +case CUR_TWO_THIRDS : +case CUR_BLOCK : +sti_putc (&default_sti,(car1&255 )+(0 <<8 )+(7 <<11 ),conp->vc_y,conp->vc_x); +break ; + } +break ; + } +}static int sticon_scroll (struct vc_data *conp,int t,int b,int dir,int count)
Helge Deller
maintainerQuoted 7 lines · Xavier Debacker
Hi Helge,
Here is a patch to get the cursor working on STI..
Of course it's not perfect, but already quite useful as is. As you can see, this basic cursor is the character on the screen, with some color attribute (black fg, white bg).
Quoted 5 lines
Now we can use vi & emacs, knowing where we are :-)
Xavier.
ESIEE Team.
http://www.esiee.fr/puffin
Xavier, thanks a lot for your patch.
I'll check it in into CVS in a few minutes.
Helge.