shrear
LV4 Regular (Next: 200)
  
Offline
Gender: 
Last Login: 26 February, 2013, 19:14:10
Date Registered: 16 October, 2010, 16:32:14
Location: Luxembourg
Posts: 193
Topic starter
Total Post Ratings: +17
|
 |
« on: 09 January, 2011, 11:42:28 » |
+3
|
"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: 09 January, 2011, 15:54:14 by shrear »
|
Logged
|
|
|
|
ExtendeD
Coder Of Tomorrow
LV8 Addict (Next: 1000)
Offline
Gender: 
Last Login: Today at 10:41:34
Date Registered: 02 January, 2010, 13:03:41
Location: France
Posts: 765
Total Post Ratings: +151
|
 |
« Reply #1 on: 09 January, 2011, 12:46:59 » |
0
|
Great! Nice to see you are using some features of Ndless 2.0 successfully.
|
|
|
|
|
Logged
|
|
|
|
shrear
LV4 Regular (Next: 200)
  
Offline
Gender: 
Last Login: 26 February, 2013, 19:14:10
Date Registered: 16 October, 2010, 16:32:14
Location: Luxembourg
Posts: 193
Topic starter
Total Post Ratings: +17
|
 |
« Reply #2 on: 09 January, 2011, 12:47:52 » |
0
|
thx ExtendeD
|
|
|
|
|
Logged
|
|
|
|
|
Munchor
|
 |
« Reply #3 on: 09 January, 2011, 12:48:47 » |
0
|
Hum. So this is a text editor on-calc for the NSpire? Nice, all we need now is a C Compiler 
|
|
|
|
|
Logged
|
|
|
|
shrear
LV4 Regular (Next: 200)
  
Offline
Gender: 
Last Login: 26 February, 2013, 19:14:10
Date Registered: 16 October, 2010, 16:32:14
Location: Luxembourg
Posts: 193
Topic starter
Total Post Ratings: +17
|
 |
« Reply #4 on: 09 January, 2011, 12:52:24 » |
0
|
Nice, all we need now is a C Compiler  yea 
|
|
|
|
|
Logged
|
|
|
|
|
Munchor
|
 |
« Reply #5 on: 09 January, 2011, 12:54:04 » |
0
|
We could then do on-calc programming, but it's not easy to make a C Compiler on-calc.
|
|
|
|
|
Logged
|
|
|
|
ExtendeD
Coder Of Tomorrow
LV8 Addict (Next: 1000)
Offline
Gender: 
Last Login: Today at 10:41:34
Date Registered: 02 January, 2010, 13:03:41
Location: France
Posts: 765
Total Post Ratings: +151
|
 |
« Reply #6 on: 09 January, 2011, 14:04:13 » |
0
|
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.
|
|
|
|
|
Logged
|
|
|
|
Silver Shadow
Beta Tester
LV8 Addict (Next: 1000)
      
Offline
Gender: 
Last Login: 21 December, 2011, 21:23:08
Date Registered: 03 October, 2008, 17:34:52
Location: France
Posts: 799
Total Post Ratings: +20
|
 |
« Reply #7 on: 09 January, 2011, 14:11:22 » |
0
|
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...)
|
|
|
|
|
Logged
|
Former Coder of Tomorrow 
|
|
|
|
Munchor
|
 |
« Reply #8 on: 09 January, 2011, 14:13:36 » |
0
|
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 
|
|
|
|
|
Logged
|
|
|
|
Silver Shadow
Beta Tester
LV8 Addict (Next: 1000)
      
Offline
Gender: 
Last Login: 21 December, 2011, 21:23:08
Date Registered: 03 October, 2008, 17:34:52
Location: France
Posts: 799
Total Post Ratings: +20
|
 |
« Reply #9 on: 09 January, 2011, 15:22:22 » |
0
|
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.
|
|
|
|
|
Logged
|
Former Coder of Tomorrow 
|
|
|
shrear
LV4 Regular (Next: 200)
  
Offline
Gender: 
Last Login: 26 February, 2013, 19:14:10
Date Registered: 16 October, 2010, 16:32:14
Location: Luxembourg
Posts: 193
Topic starter
Total Post Ratings: +17
|
 |
« Reply #10 on: 09 January, 2011, 15:52:09 » |
0
|
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
|
|
|
|
|
Logged
|
|
|
|
|
willrandship
|
 |
« Reply #11 on: 10 January, 2011, 01:25:19 » |
0
|
nice! So, is this an actual text file (ANSI?) or is it a special format?
|
|
|
|
|
Logged
|
|
|
|
shrear
LV4 Regular (Next: 200)
  
Offline
Gender: 
Last Login: 26 February, 2013, 19:14:10
Date Registered: 16 October, 2010, 16:32:14
Location: Luxembourg
Posts: 193
Topic starter
Total Post Ratings: +17
|
 |
« Reply #12 on: 10 January, 2011, 14:19:47 » |
0
|
its normal ansi, if you remove the .tns you can open it with the real notepad or some similar program on your PC
|
|
|
|
|
Logged
|
|
|
|
|
t0xic_kitt3n
|
 |
« Reply #13 on: 10 January, 2011, 20:23:07 » |
0
|
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? 
|
|
|
|
|
Logged
|
██████ ██ ██ ███████ ████ ██ ██ ██ ███████ █ ██ █ ██ ██ ██ █ ██ ██ ████ ███ ███ ██ █ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ██ ██ ██ ██ ██ █ ██ ██ ██ ███████ ██ █ ██ ██████ █████ ██ ██ ██ ██ █ ██ █████ ██ ██ ██ ██ █ ██ ███ ██████ ██ ██ ██ █ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █ ██ ██ ██ ██ ██ ██ ██ █ ████ ██ ██ ███████ █████ ██ ██ ██ ██ ███████
|
|
|
|
Munchor
|
 |
« Reply #14 on: 10 January, 2011, 21:29:33 » |
0
|
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?   That's impossible. My question now is: Screenie of the notepad please?
|
|
|
|
|
Logged
|
|
|
|
|