Author Topic: notepad for the nspire  (Read 42000 times)

0 Members and 1 Guest are viewing this topic.

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
notepad for the nspire
« on: January 09, 2011, 04:42:28 am »
"Very" long ago I wrote a program in basic with which you could write letters on the graphscreen.
Since I had not to much to do the last week, I ported it to C.

Even with all what I added to the C version there are still some limits for the moment:
-I have just defined the "symbols" for upper-case letters an numbers
-you can only write 53*26 letters

But this you can already:
-deleting the last symbol written
-saving temporary
-saving to a file (for now only to "writer.txt.tns", also writer.tns and the file need to be at the root of your file system (/My Documents) to work as they should)
-reloading from this file (which can as well be written on a Pc, you have only to append a null character and the .tns extension at a regular .txt file)

I will add asap these features:
-code the rest of the characters (lowercase+punctuation)
-saving and reloading from/to different files
-add the possibility to reverse the  screen colour
-make it possible to write more than what fits on one screen
 and to navigate with the arrow keys (or even mouse pointer if it gets accessible)

And if that all goes I may try to add the possibility to format the text a bit, but that could take a while...

So here it is (Source included) what do you think?
« Last Edit: January 09, 2011, 08:54:14 am by shrear »

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: notepad for the nspire
« Reply #1 on: January 09, 2011, 05:46:59 am »
Great! Nice to see you are using some features of Ndless 2.0 successfully.
Ndless.me with the finest TI-Nspire programs

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: notepad for the nspire
« Reply #2 on: January 09, 2011, 05:47:52 am »
thx ExtendeD

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: notepad for the nspire
« Reply #3 on: January 09, 2011, 05:48:47 am »
Hum. So this is a text editor on-calc for the NSpire? Nice, all we need now is a C Compiler ;D

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: notepad for the nspire
« Reply #4 on: January 09, 2011, 05:52:24 am »
Nice, all we need now is a C Compiler ;D
yea :)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: notepad for the nspire
« Reply #5 on: January 09, 2011, 05:54:04 am »
We could then do on-calc programming, but it's not easy to make a C Compiler on-calc.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: notepad for the nspire
« Reply #6 on: January 09, 2011, 07:04:13 am »
Porting an ANSI-compliant one shouldn't be too difficult.
I don't use my own calculator much, I wonder how easy it is to type in text with the keypad.
Ndless.me with the finest TI-Nspire programs

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: notepad for the nspire
« Reply #7 on: January 09, 2011, 07:11:22 am »
Excellent work! :)
Coding directly on the Nspire would be absolutely great! (I personally find the keypad easy to use, especially compared to an 83+, and I guess it's even more easy on the Touchpad version...)
Former Coder of Tomorrow


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: notepad for the nspire
« Reply #8 on: January 09, 2011, 07:13:36 am »
Excellent work! :)
Coding directly on the Nspire would be absolutely great! (I personally find the keypad easy to use, especially compared to an 83+, and I guess it's even more easy on the Touchpad version...)

I can type quite fast in the touchpad version ;)

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: notepad for the nspire
« Reply #9 on: January 09, 2011, 08:22:22 am »
I just tried it on my Nspire, but it didn't load the included sample, even though creating and opening a new file worked prefectly.
Former Coder of Tomorrow


Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: notepad for the nspire
« Reply #10 on: January 09, 2011, 08:52:09 am »
I think I forgot to say that you may need (for now) to have both files at the root and not in a folder to get them work properly

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: notepad for the nspire
« Reply #11 on: January 09, 2011, 06:25:19 pm »
nice! So, is this an actual text file (ANSI?) or is it a special format?

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: notepad for the nspire
« Reply #12 on: January 10, 2011, 07:19:47 am »
its normal ansi, if you remove the .tns you can open it with the real notepad or some similar program on your PC

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: notepad for the nspire
« Reply #13 on: January 10, 2011, 01:23:07 pm »
We could then do on-calc programming, but it's not easy to make a C Compiler on-calc.
You just use a C compiler to compile the C compiler.
Funny how that works, isnt it? :P

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: notepad for the nspire
« Reply #14 on: January 10, 2011, 02:29:33 pm »
We could then do on-calc programming, but it's not easy to make a C Compiler on-calc.
You just use a C compiler to compile the C compiler.
Funny how that works, isnt it? :P

XD That's impossible.

My question now is: Screenie of the notepad please?