From 2a6690e9fd53a02613796764248006e06ac482d6 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 14 Oct 2018 22:36:16 +0200 Subject: ported vim et al --- userspace/echoapp.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 userspace/echoapp.c (limited to 'userspace/echoapp.c') diff --git a/userspace/echoapp.c b/userspace/echoapp.c new file mode 100644 index 0000000..4ff75e6 --- /dev/null +++ b/userspace/echoapp.c @@ -0,0 +1,17 @@ +#include + +int main() +{ + printf("echo app -- press Q to quit\n"); + + while(1) + { + uint8_t c; + _read(0,&c,1); + printf("%d",c); + fflush(stdout); + + if(c=='q')break; + } +} + -- cgit v1.2.3