ref: 94161e0468b38fd44affe58bf000825161df1eb7
parent: 65d683ba937ab076b094d50266cd159ce11c5387
author: cinap_lenrek <[email protected]>
date: Sat May 28 16:29:53 EDT 2016
just read stdin for readcons() until i figured out tty raw processing
--- a/kern/devcons.c
+++ b/kern/devcons.c
@@ -11,16 +11,6 @@
#undef write
#undef read
-#ifndef WINDOWS
-/* get raw character from console without echo */
-static int
-_getch(void)
-{
- /* TODO */
- return -1;
-}
-#endif
-
void (*consdebug)(void) = 0;
void (*screenputs)(char*, int) = 0;
@@ -582,15 +572,8 @@
static int
readcons(Queue *q, char *buf, int n)
{
- while(screenputs==0 && !qcanread(q)){
- int c;
-
- if((c = _getch()) == -1)
- return read(0, buf, n);
- if(c == '\r')
- c = '\n';
- kbdputc(q, c);
- }
+ if(screenputs==0 && !qcanread(q))
+ return read(0, buf, n);
return qread(q, buf, n);
}