~kris/9p

9hist

5b3a5232d11e87a5526bc3a195ffe9c1fcf8c76a — David du Colombier 31 years ago 2976790
Plan 9 from Bell Labs 1995-03-30
2 files changed, 14 insertions(+), 1 deletions(-)

M pc/kbd.c
M port/devns16552.c
M pc/kbd.c => pc/kbd.c +9 -1
@@ 375,6 375,7 @@ kbdintr(Ureg *ur, void *arg)
	static int ctl;
	static int num;
	static int collecting, nk;
	static int alt;
	static uchar kc[5];
	int keyup;



@@ 438,6 439,9 @@ kbdintr(Ureg *ur, void *arg)
	 */
	if(keyup){
		switch(c){
		case Latin:
			alt = 0;
			break;
		case Shift:
			mouseshifted = shift = 0;
			break;


@@ 452,8 456,11 @@ kbdintr(Ureg *ur, void *arg)
 	 *  normal character
	 */
	if(!(c & Spec)){
		if(ctl)
		if(ctl){
			if(alt && c == Del)
				exit(0);
			c &= 0x1f;
		}
		if(!collecting){
			kbdputc(kbdq, c);
			return;


@@ 482,6 489,7 @@ kbdintr(Ureg *ur, void *arg)
			mouseshifted = shift = 1;
			return;
		case Latin:
			alt = 1;
			collecting = 1;
			nk = 0;
			return;

M port/devns16552.c => port/devns16552.c +5 -0
@@ 332,6 332,11 @@ ns16552enable(Uart *p)
	p->cts = 1;
	p->blocked = 0;

	/*
	 *  set baud rate to the last used
	 */
	ns16552setbaud(p, p->baud);

	lock(&uartalloc);
	for(l = &uartalloc.elist; *l; l = &(*l)->elist){
		if(*l == p)