Author Topic: Editors that can save config files directly to the Retrode  (Read 17654 times)

Offline Neelix

  • Baby Retrode
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Re: Editors that can save config files directly to the retrode
« Reply #15 on: 02/Feb/2012 12:12:32 AM »
Would it in any way be possible to set aside a small "temporary storage" location in whatever memory is left over, that is cleared every time the retrode is plugged in; save any file written to the filesystem, regardless of the name, in that (obviously reporting disk full if it exceeds the available space), but constantly check the directory listing to see if any files are named RETRODE.CFG, and if so read them and replace the config? Or am I ridiculously overthinking things, and that would be really hard?

On that note, Would it perhaps be possible to tune the virtual file system to let the OS think its writing to a new file, but direct it to the same memory space if the name matches?

- Neelix

Offline Matthias_H

  • Retrode Forum Techie
  • A Retrode Hero
  • *****
  • Posts: 546
  • Karma: +21/-0
    • View Profile
Re: Editors that can save config files directly to the retrode
« Reply #16 on: 02/Feb/2012 01:18:22 AM »
@Muzer: Good idea but there's simply not enough memory for that. Mind you, the Retrode is already hallucinating a 128MB file system using only 3500 bytes of RAM. Right now, there are about 600 bytes left; not  enough to even hold a single config file, let alone a whole chunk of SRAM data. The next major firmware revision will likely involve a desperate attempt at data compression, but I doubt it will free enough space to allow for such things.

@Neelix: Won't work because typically, first the data is written - then the file system entry (i.e., the name) is created. So we'd have to deal with the data before we even know what it's good for.
http://www.retrode.org

I no longer sell the Retrode. For sales inquiries, please contact our friends at DragonBox.

Offline Matthias_H

  • Retrode Forum Techie
  • A Retrode Hero
  • *****
  • Posts: 546
  • Karma: +21/-0
    • View Profile
Re: Editors that can save config files directly to the Retrode
« Reply #17 on: 02/Feb/2012 01:44:05 AM »
Actually, I just got kate and nano to work under SuSE 11.4. Both required deactivation of backups (instructions added to list)
http://www.retrode.org

I no longer sell the Retrode. For sales inquiries, please contact our friends at DragonBox.

Offline Muzer

  • Sgt. Retrode
  • ***
  • Posts: 121
  • Karma: +4/-0
    • View Profile
Re: Editors that can save config files directly to the Retrode
« Reply #18 on: 02/Feb/2012 09:49:08 AM »
Nano works already for me - must be the defaults in SuSE being rubbish. Never liked that distro ;)

Offline Neelix

  • Baby Retrode
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Re: Editors that can save config files directly to the Retrode
« Reply #19 on: 04/Feb/2012 04:52:44 PM »
I added nedit (failed) and leafpad (successful) to the list.

@Matthias: good call on the formatting :-)

- Neelix

Offline Matthias_H

  • Retrode Forum Techie
  • A Retrode Hero
  • *****
  • Posts: 546
  • Karma: +21/-0
    • View Profile
Re: Editors that can save config files directly to the Retrode
« Reply #20 on: 04/Feb/2012 07:04:02 PM »
Just found out that vim under Mac OS X does in fact work! Backups need to be disabled first:
Code: [Select]
echo "set nobackup" >> ~/_vimrc
echo "set nowritebackup" >> ~/_vimrc
echo "set noswapfile" >> ~/_vimrc
http://www.retrode.org

I no longer sell the Retrode. For sales inquiries, please contact our friends at DragonBox.

Offline matt

  • Junior Retrode
  • **
  • Posts: 49
  • Karma: +1/-0
    • View Profile
    • gingerbeardman
Re: Editors that can save config files directly to the Retrode
« Reply #21 on: 02/Mar/2012 12:00:08 PM »
TextMate on Mac OS X can save the file but it disappears from Finder afterwards and you need to reset the Retrode to get it to reappear. But the change is saved.

Personally, I prefer to use pico from the command line.

Offline Neelix

  • Baby Retrode
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Re: Editors that can save config files directly to the Retrode
« Reply #22 on: 03/Mar/2012 03:45:00 PM »
Cheers!   :)
I've added TextMate and pico to the list for Mac OS X.

- Neelix

Offline matt

  • Junior Retrode
  • **
  • Posts: 49
  • Karma: +1/-0
    • View Profile
    • gingerbeardman
Re: Editors that can save config files directly to the Retrode
« Reply #23 on: 03/Mar/2012 05:48:34 PM »
pico is an ancestor of nano

Offline Neelix

  • Baby Retrode
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Re: Editors that can save config files directly to the Retrode
« Reply #24 on: 04/Mar/2012 07:54:31 AM »
So to clarify, are you actually using  the earlier version pico, or are you using nano, and calling it pico out of force of habit? 

(on my system,  I can type nano or pico, and I get nano 2.2.2 either way. )

Keep in mind I'm not really familiar enough with MacOS X to know what versions of what tools are included.

- Neelix

Offline matt

  • Junior Retrode
  • **
  • Posts: 49
  • Karma: +1/-0
    • View Profile
    • gingerbeardman
Re: Editors that can save config files directly to the Retrode
« Reply #25 on: 04/Mar/2012 01:46:13 PM »
Good point, I never realised.

I type pico and get nano (2.0.6)

Offline sheepeeh

  • Baby Retrode
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Editors that can save config files directly to the Retrode
« Reply #26 on: 28/Aug/2012 06:11:30 PM »
What, no Windows editors?!

I've successfully saved the CFG file using Cream/vim in Win7.

http://cream.sourceforge.net/

Offline Matthias_H

  • Retrode Forum Techie
  • A Retrode Hero
  • *****
  • Posts: 546
  • Karma: +21/-0
    • View Profile
Re: Editors that can save config files directly to the Retrode
« Reply #27 on: 28/Aug/2012 08:21:43 PM »
Windows tends to be slightly less of a pain as far as media swapping and writing is concerned. I have no problems with Windows Notepad and Notepad++ (backup copies disabled) either, under XP Pro SP3.
http://www.retrode.org

I no longer sell the Retrode. For sales inquiries, please contact our friends at DragonBox.