Author Topic: rshell - A simple RS232 shell for the Nspire  (Read 14891 times)

0 Members and 1 Guest are viewing this topic.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: rshell - A simple RS232 shell for the Nspire
« Reply #15 on: August 22, 2011, 01:08:32 am »
The rs232 is stdout, using printf in ndless programs outputs to there.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: rshell - A simple RS232 shell for the Nspire
« Reply #16 on: August 22, 2011, 04:28:48 pm »
Nice compu :)

I really should export Ndless's program launcher to let you call it instead of replicating it in your shell. This would avoid:
- bugs duplication such as the missing clear_cache() in your code which may make the launch crash in some conditions
- breaking your shell if the program format changes, which may happen when new features are included (such as compatibility flags or other programs metadata)
Ndless.me with the finest TI-Nspire programs

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: rshell - A simple RS232 shell for the Nspire
« Reply #17 on: September 10, 2011, 03:14:36 pm »
Update :)

- Using on-screen console instead of RS232
- Launched programs can use Nspire I/O to write to (and read from) rshell's console
- Programs that need to be run with rshell have the header "RSH\0" instead of "PRG\0" to prevent errors when launching with the standard loader
- Included program rshell_header.exe to replace "PRG\0" with "RSH\0"
- Launching a program does not require the .tns ending anymore
  (for example you can type "ls" instead of "ls.tns")

My solution isn't very memory-efficient yet, because I didn't get shared variables/functions to work.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: rshell - A simple RS232 shell for the Nspire
« Reply #18 on: September 10, 2011, 11:48:28 pm »
Is that a run indicator I see in the corner?

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: rshell - A simple RS232 shell for the Nspire
« Reply #19 on: September 11, 2011, 06:21:53 am »
Unfortunately not, it is a bug. :P

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: rshell - A simple on-screen console for Nspire
« Reply #20 on: April 15, 2012, 10:42:29 am »
Update:

Made compatible with Nspire I/O 2.0.
+ I have ported argtable2 which allows us to have fancy command-line arguments, and therefore to create powerful console applications :)

Download can be found at http://nspforge.unsads.com/p/rshell/downloader

And a screenshot of what argtable2 can do: