Author Topic: Ndless Commander 0.4 -- TI-Nspire File Browser  (Read 31230 times)

0 Members and 2 Guests are viewing this topic.

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Ndless Commander 0.4 -- TI-Nspire File Browser
« on: June 02, 2012, 05:16:10 pm »
I'm dumping here one quick hack I put together one night for whoever who might find it interesting. It's called Ndless Commander (à la Midnight Commander), a Ndless file browser. Well actually browsing files and having a preview of the file is the only thing it can do, as I never really finished it. If anyone's up for the task, be my guest. You can basically venture into the dark abyss of your TI-Nspire's memory.

Screenshots, as usual:







Download's attached (TNS & source code). (oh and it uses nSDL for those who want to play around with the source)
« Last Edit: December 04, 2024, 07:57:19 am by hoffa »

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #1 on: June 02, 2012, 05:17:09 pm »
Very nice!

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #2 on: June 02, 2012, 05:19:27 pm »
Indeed, thanks :D

The preview feature is awesome \o/
« Last Edit: June 02, 2012, 05:19:35 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #3 on: June 02, 2012, 05:19:43 pm »
hmm, those screenshots are from the nspire prototype? or does it work for every version? i'll try it soon :)
« Last Edit: June 02, 2012, 05:19:56 pm by Nick »

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #4 on: June 02, 2012, 05:21:53 pm »
hmm, those screenshots are from the nspire prototype? or does it work for every version? i'll try it soon :)
Works on every version. You can access the TI-Nspire's root directory using the program, that's what's lurking there.

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #5 on: June 02, 2012, 07:57:27 pm »
There's CX compatibility right? (just double-checking)
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #6 on: June 02, 2012, 08:27:09 pm »
Looks nice, can't wait to download! :)
« Last Edit: June 02, 2012, 08:27:23 pm by apcalc »


Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #7 on: June 02, 2012, 09:23:47 pm »
Bug: on a CX CAS, OS 3.1.0.392; went to /phoenix/syst/poweroff and got a reboot...

EDIT: Wait, maybe it's supposed to do that? idk
« Last Edit: June 02, 2012, 10:32:27 pm by TheNlightenedOne »
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #8 on: June 03, 2012, 05:22:45 am »
Bug: on a CX CAS, OS 3.1.0.392; went to /phoenix/syst/poweroff and got a reboot...

EDIT: Wait, maybe it's supposed to do that? idk
Did you move the cursor on a certain file or did it reboot right after opening the directory?

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #9 on: June 03, 2012, 06:57:31 am »
Also a bug report, only on the /ndless/ folder tho (so far), when I go down the list of files, the list doenst follow (I mean, it doesnt scroll), so we don't see the cursos anymore, since it's offscreen.
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #10 on: June 03, 2012, 07:10:31 am »
Also a bug report, only on the /ndless/ folder tho (so far), when I go down the list of files, the list doenst follow (I mean, it doesnt scroll), so we don't see the cursos anymore, since it's offscreen.
I didn't bother to implement scrolling because of lack of time. The code is very short and it shouldn't be that hard to implement however. As I mentioned up there, it's an unfinished work, and it's nowhere near being a fully functional file browser (and something I won't be updating myself).
« Last Edit: December 04, 2024, 07:57:04 am by hoffa »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #11 on: June 03, 2012, 12:49:23 pm »
OK :)
Too bad you won't be continuing..
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #12 on: June 06, 2012, 02:44:53 pm »
Unfortunately fgetc() (and consequently, fgets() & co.) is buggy and so I couldn't finish writing the full screen file content viewer. Deleting folders worked well (assuming the folder was empty) but it for some reason did not let me remove any files except a few (themes.csv?) so I left that also out. So at the end I only implemented file list scrolling and used some quick hacks to get around the fgets() bug, so it shouldn't reboot anymore.

Screenshot as usual:
« Last Edit: December 04, 2024, 07:56:17 am by hoffa »

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: Ndless Commander -- TI-Nspire File Browser
« Reply #13 on: June 07, 2012, 08:58:14 am »
New version. This one allows you to copy a file to your My Documents folder by pressing Tab. That means you can copy and files inside the drive to your computer and check them out there. (\exammode\syst\savedsettings.data, I'm looking at you)


Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: Ndless Commander 0.4 -- TI-Nspire File Browser
« Reply #14 on: June 07, 2012, 10:02:09 am »
Aaand, in less than an hour, another quick update. In the preview it showed some weird character at the end of every line, that's gone. I also removed the message box as it caused some weird behavior (or inconvenient) so I replaced it with a home-made message box. There's also some colors because everybody loves colors:



Download in first post (I removed the older ones).

(Please don't behead me for the double post)