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

1995/0330/pc/kbd.c (diff list | history)

1995/0207/sys/src/9/pc/kbd.c:375,3801995/0330/sys/src/9/pc/kbd.c:375,381 (short | long | prev | next)
1991/0703    
	static int ctl; 
	static int num; 
1994/0503    
	static int collecting, nk; 
1995/0330    
	static int alt; 
1991/1211    
	static uchar kc[5]; 
1991/0703    
	int keyup; 
1991/0702    
 
1995/0207/sys/src/9/pc/kbd.c:438,4431995/0330/sys/src/9/pc/kbd.c:439,447
1991/0703    
	 */ 
	if(keyup){ 
		switch(c){ 
1995/0330    
		case Latin: 
			alt = 0; 
			break; 
1991/0703    
		case Shift: 
1992/1020    
			mouseshifted = shift = 0; 
1991/0703    
			break; 
1995/0207/sys/src/9/pc/kbd.c:452,4591995/0330/sys/src/9/pc/kbd.c:456,466
1991/0703    
 	 *  normal character 
	 */ 
	if(!(c & Spec)){ 
		if(ctl) 
1995/0330    
		if(ctl){ 
			if(alt && c == Del) 
				exit(0); 
1991/0703    
			c &= 0x1f; 
1995/0330    
		} 
1994/0503    
		if(!collecting){ 
1993/1113    
			kbdputc(kbdq, c); 
1994/0503    
			return; 
1995/0207/sys/src/9/pc/kbd.c:482,4871995/0330/sys/src/9/pc/kbd.c:489,495
1992/1020    
			mouseshifted = shift = 1; 
1993/1124    
			return; 
1991/0703    
		case Latin: 
1995/0330    
			alt = 1; 
1994/0503    
			collecting = 1; 
			nk = 0; 
1993/1124    
			return; 


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