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

0 Members and 1 Guest are viewing this topic.

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: notepad for the nspire
« Reply #30 on: January 15, 2011, 10:14:01 am »
I can use nspire-emu, but sometimes it's just plain incovenient to do so. Sometimes, using the calc is just quicker than setting up the emu correctly :P
I don't like setting up the emu either. I just test my programs on physical hardware.
I can't use NCubate, so a screenshot would be much faster for me too.
Why are you always answering inside quotes? :P
Former Coder of Tomorrow


Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: notepad for the nspire
« Reply #31 on: January 15, 2011, 10:18:19 pm »
On my iPod i sometimes forget to scroll all the way to the bottom of th text boxes, so sometimes it happens:P

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: notepad for the nspire
« Reply #32 on: January 16, 2011, 03:09:51 pm »
Nice, just saw the screenshot, and it looks great! And glad to know it's ANSI. So basically, you can open it up on any comp too?

As for the GTK+ emu, I think it's this: http://www.unitedti.org/forum/index.php?showtopic=8191&st=720




Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: notepad for the nspire
« Reply #33 on: January 16, 2011, 03:28:23 pm »
Nice, just saw the screenshot, and it looks great! And glad to know it's ANSI. So basically, you can open it up on any comp too?

As for the GTK+ emu, I think it's this: http://www.unitedti.org/forum/index.php?showtopic=8191&st=720
The GTK+ emu doesn't support file transfer with OSes 2.0 and 2.1 because it was based on the v0.26 :
http://ti.bank.free.fr/index.php?mod=archives&ac=voir&id=1730
Don't forget that nspire_emu 0.41 works both on linux (with wine) and windows with all OSes.
I you're lasy to open a terminal, don't forget that I've made a pack here (in french and english) :  
http://ti.bank.free.fr/index.php?mod=archives&ac=voir&id=2099
« Last Edit: January 16, 2011, 03:30:08 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: notepad for the nspire
« Reply #34 on: January 16, 2011, 04:59:52 pm »
Ok I think I have it far enough now to call it beta.

to summarise:

-every character of Windows-1252(ansi) is defined and may (if there is no key for it) be written per entering his hex-value while pressing ENTER.
-exeption are control characters, only \t \r \n are defined. (I'm not sure if the others are needed actually)
-you can store up to 900 characters. (if you write more than fits on the screen it's going to look as if he would overwrite the first characters but that doesn't really happen)
-speaking of storing, you can either store it temporary or in a file called "nwriter.txt.tns".
-this file, you can also write on your Pc. Then you have to save it in the same directory as nwriter.tns (hasn't any more to be the root directory)
-by pressing CAT (the key with the book on it) you can invert the color of the screen.

If you write a .txt file on your Pc make sure that your text editor uses \r\n for "enter". (the ones on windows do it "most" of the time)

Tomorrow I will see if my screen recorder still works but for today I'm to tired.
« Last Edit: January 17, 2011, 03:54:42 pm by shrear »

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: notepad for the nspire
« Reply #35 on: January 17, 2011, 04:34:04 pm »
Well here is the promised screen record



Ok I'm not good at recording...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: notepad for the nspire
« Reply #36 on: January 19, 2011, 02:08:41 pm »
Nice :D I just noticed this updated and good job so far. :D

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 #37 on: January 19, 2011, 03:23:20 pm »
Cool!

An idea that might make multiple names easier: Keep using the nwriter.txt.tns name internally, but a small loop during opening and closing the program copies and renames the program. Opening copies the chosen txt file to nwriter.txt, closing copies nwriter.txt to another txt file.

Not sure how hard that is in pure c though :P

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: notepad for the nspire
« Reply #38 on: January 19, 2011, 03:59:14 pm »
Cool!

An idea that might make multiple names easier: Keep using the nwriter.txt.tns name internally, but a small loop during opening and closing the program copies and renames the program. Opening copies the chosen txt file to nwriter.txt, closing copies nwriter.txt to another txt file.
Thanks for the advice.
Not sure how hard that is in pure c though :P
There is a single problem with it: internally I use a variable called "path" already, since using the "name string" would require, as far as my C goes(that doesn't mean much...) to hard code it every time I use it, witch would not allow any dynamic naming, witch is the opposite of what I want.
But again thanks for trying to help :)

Offline northern_snow

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 132
  • Rating: +17/-1
    • View Profile
Re: notepad for the nspire
« Reply #39 on: January 23, 2011, 03:35:42 am »
I didn't notice that it's for ndless 2.0... So i always get reboot when i run it under ndless 1.7...

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: notepad for the nspire
« Reply #40 on: January 23, 2011, 04:54:59 am »
OK that's strange, could you try with os 2.0 please, since what runs on 2.0 or 2.1 should also run on 1.7...

EDIT: is your ndless binary 115kb or 113kb big?
« Last Edit: January 23, 2011, 09:22:38 am by shrear »

Offline squalyl

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +2/-0
    • View Profile
Re: notepad for the nspire
« Reply #41 on: February 13, 2011, 11:23:47 am »
nwriter is now on nspforge: http://nspforge.unsads.com/p/nwriter :)

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: notepad for the nspire
« Reply #42 on: February 13, 2011, 02:08:45 pm »
New version.

what's new:

   -executable is about 20 times smaller  :o

   -font data is in a separate file so one could use another without recompiling

   -you can change the file which is written to or from which you load existing text
   (default one is still "nwriter.txt.tns" which is set always when you start the program)

   -fixed the little issue that you had to press two times delete to delete a "return"

   -maximum of characters is now 0xFFFF
   (but it you can still not navigate in the text so that isn't going to make much difference)



Now I hope that there is no bug I didn't see.
Constructive critic is always welcome.

download nwriter here
the source is available at nspireforge

EDIT: forgot to add the font file to the download... well fixed now.
« Last Edit: February 13, 2011, 02:29:51 pm by shrear »

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: notepad for the nspire
« Reply #43 on: February 13, 2011, 02:14:18 pm »
Well here is the promised screen record



Ok I'm not good at recording...

Looks pretty cool! ;D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: notepad for the nspire
« Reply #44 on: February 14, 2011, 12:56:00 am »
Nice to see this is still being updated. :)