Commit Graph

23 Commits

Author SHA1 Message Date
Ry
6a9dc85d81 all: Fix incorrect/old file struct size
Surprised this didn't cause more issues :p
2023-07-11 15:54:08 -07:00
Ry
f6ec0dde0b sh: Add echo command 2023-04-02 13:17:54 -07:00
Ry
7a2f96717e sh: Add rdall command 2023-04-02 13:09:32 -07:00
Ry
d3c75a7c9c sh: Add rdnext command
This command redirects the IO stream for the next command to the
specified file or named stream
2023-03-31 16:32:00 -07:00
Ry
8bea7c39b4 kernel + sh: Another stream overhaul
Certain streams can now be opened by name by prefixing the name
with a colon (':'). The only supported named stream at the moment
is :fb, which streams to/from the background framebuffer.

A new syscall called `get_size` was also added, which should be used
instead of `ryfs_get_size`. This new syscall supports getting the size
of streams.
2023-03-30 22:18:23 -07:00
Ry
fa693c71a7 all: Increase file struct size to 32 bytes for both files and streams 2023-03-30 21:46:24 -07:00
Ry
4e0ab3a75d sh/launch: Use ryfs_open directly instead of open for now 2023-03-20 17:32:14 -07:00
Ry
60a322ca53 kernel+apps: Use a more standard filename format (8.3 with no spaces) 2023-03-15 17:53:45 -07:00
Ry
6253b60762 sh: Fix inverted condition in the disk command 2023-03-05 17:39:29 -08:00
Ry
ebbc2fa81e sh: Use the "current" disk id 2023-03-04 23:35:54 -08:00
Ry
8bfd66941d sh/dir: Show file sizes 2023-02-04 17:34:20 -08:00
Ry
6c4790cd5f sh/dir: Add a space between the file name and type, and show a header 2023-02-04 16:37:34 -08:00
Ry
f37c9b37bd sh: Move terminal control character consts to main.asm 2023-02-04 16:29:47 -08:00
Ry
d4afc36f49 sh/help: Use const for setting the color 2023-02-04 16:15:47 -08:00
jn
d03d49ac44 Move scancode-to-ASCII conversion into the terminal 2023-02-02 04:07:57 +01:00
jn
ffdda5eaca Make use of data.strz
The filesystem image is the same before and after this commit:

$ sha256sum fox32os-orig.img fox32os.img
abc77bd6310b8eb6bcde0a8a442ca8bab071307a6cf5155ea606578435f77d27  fox32os-orig.img
abc77bd6310b8eb6bcde0a8a442ca8bab071307a6cf5155ea606578435f77d27  fox32os.img


The conversion was performed with a few sed commands:

find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0$/data.strz \1/g'
find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0 /data.strz \1 /g'
find -name '*.asm' | xargs sed -i -e 's/data.str \("[^"]*"\) data.8 0x00 /data.strz \1 /g'
2023-02-02 03:03:07 +01:00
jn
8fe903a9ff kernel/vfs: Don't ignore buffer length in read(stream) 2023-02-02 00:00:37 +01:00
jn
73eee3e599 kernel/vfs: Don't ignore buffer length in write(stream) 2023-02-02 00:00:37 +01:00
Ry
5b355a34b9 sh: help should list commands in alphabetical order 2023-01-31 22:38:14 -08:00
Ry
652c3b70c2 sh: Make help have a little bit of color 2023-01-31 22:03:40 -08:00
Ry
2a8eb5b267 sh: Properly handle dir on an empty disk
Fixes issue #8.
2023-01-30 14:16:59 -08:00
jn
5641fc6987 sh: Add shutdown command 2023-01-30 18:56:50 +01:00
Ry
9e256a7e3c sh: Move to an application outside of the kernel
Fixes issue #3
2023-01-21 00:17:10 -08:00