plan 9 kernel history: overview | file list | diff list

1998/0417/pc/mouse.c (diff list | history)

1997/1101/sys/src/9/pc/mouse.c:101,1121998/0417/sys/src/9/pc/mouse.c:101,108 (short | long | prev | next)
Change mousectl to accept list of fields.
rsc Fri Mar 4 12:44:25 2005
1997/0327    
} 
 
void 
mousectl(char* arg) 
1998/0417    
mousectl(char* field[], int n) 
1997/0327    
{ 
	int n; 
	char *field[3]; 
                 
	n = parsefields(arg, field, 3, " "); 
	if(strncmp(field[0], "serial", 6) == 0){ 
		switch(n){ 
		case 1: 
1997/1101/sys/src/9/pc/mouse.c:154,1611998/0417/sys/src/9/pc/mouse.c:150,156
1997/0327    
			i8042auxcmd(n); 
			break; 
		} 
	} else if(strcmp(field[0], "swap") == 0) 
		mouseswap ^= 1; 
1998/0417    
	} 
1997/0327    
	else 
		error(Ebadctl); 
} 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)