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

1990/0918/gnot/devcons.c (diff list | history)

1990/0914/sys/src/9/gnot/devcons.c:285,3001990/0918/sys/src/9/gnot/devcons.c:285,315 (short | long | prev | next)
1990/03091    
echo(int c) 
{ 
	char ch; 
1990/0918    
	static int ctrlt; 
1990/03091    
 
	/* 
	 * ^t hack BUG 
	 */ 
	if(c == 0x14) 
		DEBUG(); 
1990/0707    
	if(c == 0x16) 
1990/0629    
		dumpqueues(); 
1990/0911    
	if(c == 0x1A) 
1990/0707    
		mntdump(); 
1990/0918    
	if(ctrlt == 2){ 
		ctrlt = 0; 
		switch(c){ 
		case 0x14: 
			break;	/* pass it on */ 
		case 'p': 
			DEBUG(); 
			return; 
		case 'q': 
			dumpqueues(); 
			return; 
		case 'm': 
			mntdump(); 
			return; 
		} 
	}else if(c == 0x14){ 
		ctrlt++; 
		return; 
	} 
	ctrlt = 0; 
1990/0515    
	if(raw.ref) 
		return; 
1990/03091    
	if(c == 0x15) 


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