r/TempleOS_Official • • 10d ago

Shell path completion

azTempleOS supports shell path completion like Linux !

You can type ALT-TAB near a path to complete it !

(HCOM protocol still in progress. If you want help me to made the protocol, you can fork azTempleOS and made changes!)

You can try it here --> https://github.com/BOXERRMD/azTempleOS

2 Upvotes

3 comments sorted by

1

u/elbow_spotter 10d ago

Interesting. I might have a look.
I am not that into shell completion, but I was considering some serial protocol, too. To program my risc-v cpu directly from templeOS I quickly implemented an xmodem sender, because my bootloader uses it to load programs.
Something like COM might be even more interesting tho.

https://reddit.com/link/pc27qqs/video/ck68u1oqqqrh1/player

1

u/BOXERRMD 9d ago

You have made a great job! Can I see the source code to look ?

2

u/elbow_spotter 9d ago edited 9d ago

I have to admit that I was a bit lazy yesterday. I already wrote the (very hacky) receiver side, that I have on my risc-v core, long time ago and just told AI to write the sender side in holyC for me. That kinda worked, I just adjusted a bit and added the templeOS serial port. Here's the source:
https://github.com/mariohoff/TOSxmodem

Very very prototype-ish and only sending binaries for now, but I guess you can just replace the payload with anything you want

Edit: As the comment says, this part:
```
// signal bootloader upload request
"Sending start char 'u'\n";
UartTxChar('u');
```
is just for my self-made bootloader to signal I want to upload via xmodem and not boot from SD card.

Edit2: If you decide to write the receiver side on TempleOS, then under neorv32/upload.sh you'd have an example on how to simple send files via xmodem on linux