summaryrefslogtreecommitdiff
path: root/userspace
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2015-05-17 19:43:59 +0200
committerMichal Idziorek <m.i@gmx.at>2015-05-17 19:43:59 +0200
commitd98828d08eb1f6c1394f38a1df69c73fef0cfefa (patch)
tree31df37430733c906b235b88c2cfa14d835af4bec /userspace
parent29ea3208b004f15dafa48ae29a75ba7f0c093a74 (diff)
working on vt52 and some cleanup
Diffstat (limited to 'userspace')
-rw-r--r--userspace/Makefile2
-rw-r--r--userspace/foolshell.c8
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)
{