diff options
Diffstat (limited to 'userspace')
| -rw-r--r-- | userspace/Makefile | 2 | ||||
| -rw-r--r-- | userspace/foolshell.c | 8 |
2 files changed, 9 insertions, 1 deletions
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) { |
