shithub: riscv

Download patch

ref: 4e9e86077647d59d864e82e7e647a64b77f1fbbf
parent: 480d8a19b1faca90f8c4eb2df2d085c00927697e
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Sat May 28 04:23:32 EDT 2011

rio: fix kbdin

--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -361,10 +361,8 @@
 		r = runemalloc(cnt);
 		cvttorunes(s, cnt, r, &nb, &nr, nil);
 		for(i=0; i<nr; i++){
-			if(r[i]){
-				chanprint(kbdchan, "%C", r[i]);
-				chanprint(kbdchan, "");
-			}
+			if(r[i])
+				chanprint(kbdchan, "c%C", r[i]);
 		}
 		free(r);
 	}