From d98828d08eb1f6c1394f38a1df69c73fef0cfefa Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Sun, 17 May 2015 19:43:59 +0200 Subject: working on vt52 and some cleanup --- userspace/Makefile | 2 +- userspace/foolshell.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'userspace') diff --git a/userspace/Makefile b/userspace/Makefile index b591280..48d9b1f 100644 --- a/userspace/Makefile +++ b/userspace/Makefile @@ -30,7 +30,7 @@ ext2.img: $(PROGS) ../mp/mp.bin cp $^ mnt/bin echo "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++." > mnt/home/miguel/hello.brain # cp ~/temp/fool-os-stuff/binutils-build-host-foolos/binutils/readelf mnt/bin - cp ../font/binfont.bin mnt/ +# cp ../font/binfont.bin mnt/ cp ~/temp/fool-os-stuff/ncurses-5.9/progs/tput mnt/bin cp ../mp/mp.bin mnt/boot/ mkdir -p mnt/etc diff --git a/userspace/foolshell.c b/userspace/foolshell.c index da05e96..84d24b0 100644 --- a/userspace/foolshell.c +++ b/userspace/foolshell.c @@ -46,6 +46,14 @@ int main(int argc, char **argv) char *buf=malloc(256); // printf("malloc returned: 0x%08X\n",buf); + // + while(1) + { + fgets(buf,2,stdin); + buf[1]=0; + puts(buf); + } + while(1) { -- cgit v1.2.3