PDA

View Full Version : nano (pico clone) and OSX terminal


GriffinW
06-20-2005, 10:46 PM
I posted a question about nano working with the OSX terminal program in the nano files section, but it got deleted a few hours after I posted it, along with another nano question I put there (that had already been answered). I guess that was not the place to post, but I can find no other posts that even reference nano, except in that particular thread. Having seen so many people get slaped down for having the audacity to not know as much about Tivo hacking as the experts, and now getting my post unceremoniously deleted without even an explanation, or any indication where questions about nano *should* go, I am posting it here. If this is the wrong place to post this, I would greatly appreciate it, if somebody would *kindly* let me know where to post such a question, and I will post it there. If the only way you can let me know where the proper place is, is to put me down and belittle me, then I guess that I will have to settle for that.

This does not seem like a newbie question, as it involves running nano (pico clone) on a Tivo, which I would think would mostly interest Linux geeks that are trying to put a familar unix text editor on their Tivo. (I see an awful lot of posts where the problem posted was because the person used a windows text editor to edit a file, and maybe having an easier to use text editor in their Tivo may help a lot of people. Nano (pico) is sure a whole lot more intuitive to use than vi, IMO, even if it does not have all of the 'power' of vi.) I've already got telnet/ftp and other hacks on my Tivo, I just want a text editor that I am more familair with than vi.

Now, here is my question, and it was in response to a post in the nano files thread (that was not deleted):
Note: for anyone having issues with the OSX Terminal, set your $TERM to vt100 on the tivo.export TERM=vt100 This allows the nano window to resize with your terminal.app automatically, and generally makes the tivo behave correctly in a terminal. Don't be tempted to use xterm or xterm_color, even though the terminal.app preferences may show that as the term type.

Also, if you have "send option as meta key" turned on, you can hit opt-x to make the bottom nano bar disappear. Nano is a cool editor and it's great to see it on the tivo.
I am using OSX Terminal, and I can not get the Write Out command (ctrl-O) to work, so I am always having to exit nano (ctrl-X) to save my file changes. It works fine from my Linux computer, so the problem seems to be the OSX terminal program. I am using telnet -K (to eliminate echo) and have set the termtype as vt100 (even tried xterm), but it does not seem to recognize ctrl-O when I type it. (Even the "met-key" option, as described above, works fine.)

So, anybody use nano (pico) on their tivo from OSX Terminal? Do you have the same problem? (I am using OSX 10.3.9)

Thanks for any help.

Griffin

eastwind
06-29-2005, 06:16 PM
Let me start by saying that I don't use MacOS anything.

It sounds like your terminal program is trapping the CTRL-O and not sending it to the TiVo. Have you tried any other term programs?

ew

GriffinW
07-01-2005, 06:17 AM
It sounds like your terminal program is trapping the CTRL-O and not sending it to the TiVo. Have you tried any other term programs?

No, I haven't, but I will - I'll have to hunt around for one, as I haven't had the need to use anything but the built in Terminal program. One of the advantages of using the Mac to access other systems is that the control key has no native function on the Mac, so it is highly unlikely that it would be trapped at all. There is no need to tell the terminal program how to interpret the control key, or map it to something else, if you want to use it locally, etc. The only function the Control key has on the Mac is win/linux compatibilty. My main job is tech support for Windows, most of which I do remotely, and I use the Mac for that about 95% of the time, for this very reason.

I actually had forgotten that I had posted this issue here, until I saw your response (thanks!) and I haven't used nano since I posted this message, having already made all of the edits I needed to do at the time, so it hasn't been something I have been working on, or been bugged by. Obviously, this is not an issue affecting many people. If I find a Mac term program that works, that will pretty much end the issue, I guess. If I do, I'll post it here, for the miniscule audience that may one day need it!

Thanks for your response.

Griffin

eastwind
07-01-2005, 08:37 AM
Did you ever try (F3) instead of ^O?

ew

GriffinW
07-01-2005, 06:04 PM
Did you ever try (F3) instead of ^O?

No, but I just did, and it works! I was unaware the Function keys worked in Pico/Nano, but it has been years since I have used pico with any regularity, having long ago settled into using X-Server on the few Linux servers I maintain. But, in pre-X days, Pico was what I used, having never gotten used to vi.

So, thanks for the info!

Griffin