summaryrefslogtreecommitdiff
path: root/Source/Applications/Shell
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-12-23 19:19:55 +0100
committerAlexis211 <alexis211@gmail.com>2009-12-23 19:19:55 +0100
commite2d5d79bbc90d73f709953f04b2b0d1faac4d43e (patch)
treebde6f928e3a45ef66f4056cbc932bc21fe44cb31 /Source/Applications/Shell
parent7ede286ebcb845fe4bfdfb948c6073573b01c3cb (diff)
downloadMelon-e2d5d79bbc90d73f709953f04b2b0d1faac4d43e.tar.gz
Melon-e2d5d79bbc90d73f709953f04b2b0d1faac4d43e.zip
Changed the way virtual terminal commands are handled
These commands include those for moving the cursor, showing/hiding it, changing the color, ...
Diffstat (limited to 'Source/Applications/Shell')
-rwxr-xr-xSource/Applications/Shell/Applets/rot13bin73404 -> 0 bytes
-rw-r--r--Source/Applications/Shell/Makefile6
-rw-r--r--Source/Applications/Shell/Shell-fs.class.cpp10
3 files changed, 7 insertions, 9 deletions
diff --git a/Source/Applications/Shell/Applets/rot13 b/Source/Applications/Shell/Applets/rot13
deleted file mode 100755
index 0399a6f..0000000
--- a/Source/Applications/Shell/Applets/rot13
+++ /dev/null
Binary files differ
diff --git a/Source/Applications/Shell/Makefile b/Source/Applications/Shell/Makefile
index e972dfb..4efe01e 100644
--- a/Source/Applications/Shell/Makefile
+++ b/Source/Applications/Shell/Makefile
@@ -4,7 +4,7 @@ CXX = g++
CXXFLAGS = -nostartfiles -nostdlib -ffreestanding -fno-exceptions -fno-rtti -I ../../Library/Common -I ../../Library/Interface -I ../../Library/Userland -D THIS_IS_MELON_USERLAND
LD = ld
-LDFLAGS = -T ../../Library/Link.ld -L ../../Library
+LDFLAGS = -T ../../Library/App.ld -L ../../Library
Objects = Shell.class.o \
Shell-fs.class.o
@@ -31,8 +31,8 @@ Applets/%: Applets/%.o
clean:
echo "* Removing object files..."
- rm -rf *.o
+ rm -rf *.o Applets/*.o
mrproper: clean
echo "* Removing applications..."
- rm -rf $(OutFile)
+ rm -rf $(OutFile) $(Applets)
diff --git a/Source/Applications/Shell/Shell-fs.class.cpp b/Source/Applications/Shell/Shell-fs.class.cpp
index 30faaf7..23af339 100644
--- a/Source/Applications/Shell/Shell-fs.class.cpp
+++ b/Source/Applications/Shell/Shell-fs.class.cpp
@@ -28,13 +28,11 @@ void Shell::ls(Vector<String>& args) {
if (((p >> i) & 1) == 0) perm[8 - i] = "-";
}
if (n.type() == NT_FILE) {
- outvt << " FILE " << perm << " " << n.getName() << FLUSH;
- outvt.setCsrCol(30);
- outvt << (s32int)n.getLength() << " bytes.\n";
+ outvt << " FILE " << perm << " " << n.getName();
+ outvt << MVT::setcsrcol(35) << (s32int)n.getLength() << " bytes.\n";
} else if (n.type() == NT_DIRECTORY) {
- outvt << " DIR " << perm << " " << n.getName() << "/" << FLUSH;
- outvt.setCsrCol(30);
- outvt << (s32int)n.getLength() << " items.\n";
+ outvt << " DIR " << perm << " " << n.getName() << "/";
+ outvt << MVT::setcsrcol(35) << (s32int)n.getLength() << " items.\n";
}
}
}