Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
21 May, 2013, 16:03:59 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2]   Go Down
  Print  
Author Topic: rshell - A simple RS232 shell for the Nspire -  (Read 2686 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
t0xic_kitt3n
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 13 May, 2013, 01:56:35
Date Registered: 16 June, 2010, 20:46:00
Location: w,x,y,z
Posts: 1583


Total Post Ratings: +32

View Profile
« Reply #15 on: 22 August, 2011, 07:08:32 »
0

The rs232 is stdout, using printf in ndless programs outputs to there.
Logged




██████  ██  ██  ███████           ████    ██    ██   ██ ███████
█ ██ █  ██  ██   ██   █          ██  ██  ████   ███ ███  ██   █
  ██    ██  ██   ██             ██   ██ ██  ██  ███████  ██    
  ██    ██  ██   ██  █         ██       ██  ██  ███████  ██  █
  ██    ██████   █████         ██       ██  ██  ██ █ ██  █████ 
  ██    ██  ██   ██  █         ██   ███ ██████  ██   ██  ██  █
  ██    ██  ██   ██             ██   ██ ██  ██  ██   ██  ██    
  ██    ██  ██   ██   █          ██  ██ ██  ██  ██   ██  ██   █
 ████   ██  ██  ███████           █████ ██  ██  ██   ██ ███████

ExtendeD
Coder Of Tomorrow
LV8 Addict (Next: 1000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 19:47:13
Date Registered: 02 January, 2010, 13:03:41
Location: France
Posts: 765

Total Post Ratings: +151

View Profile
« Reply #16 on: 22 August, 2011, 22:28:48 »
0

Nice compu Smiley

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)
Logged

ndlessly - Progress and insights on Ndless
Ndless / Hackspire - Third-party TI-Nspire development
compu
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: Today at 15:04:08
Date Registered: 09 January, 2011, 22:45:52
Location: Germany
Posts: 226

Topic starter
Total Post Ratings: +53

View Profile
« Reply #17 on: 10 September, 2011, 21:14:36 »
0

Update Smiley

- 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.


* rshell_screen.png (4.87 KB, 320x240 - viewed 1156 times.)
* rshell.zip (41.92 KB - downloaded 27 times.)
Logged

Nspire I/O Discussion|Website - cross-compatible with Prizm!
TI-Nspire Programming Statistics
t0xic_kitt3n
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 13 May, 2013, 01:56:35
Date Registered: 16 June, 2010, 20:46:00
Location: w,x,y,z
Posts: 1583


Total Post Ratings: +32

View Profile
« Reply #18 on: 11 September, 2011, 05:48:28 »
0

Is that a run indicator I see in the corner?
Logged




██████  ██  ██  ███████           ████    ██    ██   ██ ███████
█ ██ █  ██  ██   ██   █          ██  ██  ████   ███ ███  ██   █
  ██    ██  ██   ██             ██   ██ ██  ██  ███████  ██    
  ██    ██  ██   ██  █         ██       ██  ██  ███████  ██  █
  ██    ██████   █████         ██       ██  ██  ██ █ ██  █████ 
  ██    ██  ██   ██  █         ██   ███ ██████  ██   ██  ██  █
  ██    ██  ██   ██             ██   ██ ██  ██  ██   ██  ██    
  ██    ██  ██   ██   █          ██  ██ ██  ██  ██   ██  ██   █
 ████   ██  ██  ███████           █████ ██  ██  ██   ██ ███████

compu
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: Today at 15:04:08
Date Registered: 09 January, 2011, 22:45:52
Location: Germany
Posts: 226

Topic starter
Total Post Ratings: +53

View Profile
« Reply #19 on: 11 September, 2011, 12:21:53 »
0

Unfortunately not, it is a bug. Tongue
Logged

Nspire I/O Discussion|Website - cross-compatible with Prizm!
TI-Nspire Programming Statistics
compu
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: Today at 15:04:08
Date Registered: 09 January, 2011, 22:45:52
Location: Germany
Posts: 226

Topic starter
Total Post Ratings: +53

View Profile
« Reply #20 on: 15 April, 2012, 16:42:29 »
0

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 Smiley

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

And a screenshot of what argtable2 can do:


* argtable2.png (9.3 KB, 320x240 - viewed 1934 times.)
Logged

Nspire I/O Discussion|Website - cross-compatible with Prizm!
TI-Nspire Programming Statistics
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.173 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.