Initialize cursor.
[rsc] --rw-rw-r-- M 67200 glenda sys 9725 Nov 11 15:46 sys/src/cmd/aux/vga/main.c
/n/sourcesdump/2005/1111/plan9/sys/src/cmd/aux/vga/main.c:153,159 -
/n/sourcesdump/2005/1112/plan9/sys/src/cmd/aux/vga/main.c:153,159
{
char *bios, buf[256], sizeb[256], *p, *vsize, *psize;
char *type, *vtype;
- int virtual, len;
+ int fd, virtual, len;
Ctlr *ctlr;
Vga *vga;
/n/sourcesdump/2005/1111/plan9/sys/src/cmd/aux/vga/main.c:458,463 -
/n/sourcesdump/2005/1112/plan9/sys/src/cmd/aux/vga/main.c:458,469
vgactlw("hwgc", "soft");
else
vgactlw("hwgc", vga->hwgc->name);
+
+ /* might as well initialize the cursor */
+ if((fd = open("/dev/cursor", OWRITE)) >= 0){
+ write(fd, buf, 0);
+ close(fd);
+ }
if(vga->virtx != vga->mode->x || vga->virty != vga->mode->y){
sprint(buf, "%dx%d", vga->mode->x, vga->mode->y);
|