Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1111/1

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


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);


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.