Hello Digital Man,ãã Ac>> Not sure I understand what you mean here. By "run it from JS" you meanã Ac>> nano? ãã DM> The editor. The console.editfile() method uses whatever editor the userã DM> has selected as their preferred editor to edit the filename passed.ããEven when nano itself is not configured in External Editors? I don't see how the JS could know that the user is actually selecting nano as their editor. See below..ãã Ac>> I suppose I should explain what is going on. I asked Nightfox if heã Ac>> could rip out the function in SlyEdit that reformats MSGTMP withã Ac>> quoted initials, so I could offer up nano as a message editor as wellã Ac>> (and possibly even vim in the future), since they can be used inã Ac>> "restricted" mode where nothing on the disk can be altered except theã Ac>> file loaded, ie: MSGTMP. ã ã Ac>> So after all of that is done, and a new formatted MSGTMP is created,ã Ac>> the JS runs nano, where you can edit and save, and then the JS postsã Ac>> the message and exits back to the BBS.ãã Ac>> So if there's a better way than the first option above you gave, byã Ac>> all means explain it to me in laman's terms and I'll give that a shotã Ac>> as well. ãã DM> It sounds like you want to use SlyEdit as a quoter, but not an editor?ããSomething like that. Basically only the function of SlyEdit that retreives the name in the TO field for initials, and quote/reformat/rewrap function of SlyEdit is being used here, so "SlyEdit" as a whole is not being used, correct.ãã DM> There's really no built-in method in Synchronet to do that (supportã DM> external "quoters"). If you just want to use nano as an editor and don'tã DM> need anything from SlyEdit, the proper way would be to configure nano inã DM> SCFG->External Programs->External Editors.ããUnderstood. What we've done here is basically strip those mentioned functions out of SlyEdit, and along with some added error checking as well as checking to make sure QUOTES.TXT is present (if not, edit the message as "new"), and check for modifications to MSGTMP (if not, abort the message), and then nano is ran from the script using bbs.exec().ããSo basically I think we've gotten it to the point where you can run ?msgQuoteWrap.js "/usr/bin/nano [-opts]" %f from the command line in External Editors, the script takes care of the options and editor you choose,aand away you go!ããWith this being said, vi(m) also seems to work, although it seems some of the backspace/delete stuff may have to be tinkered with on my end, but that's minimal.ããRegards,ãNickãã---ã þ Synchronet þ thePharcyde_
telnet://bbs.pharcyde.org (Wisconsin)ã