OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Capn_Fish on June 15, 2007, 02:45:13 pm
-
Are there any good command line/text-based programming editors out there for C++? I've been looking, but haven't found much. Being small and not having many deps would be nice, too.
Thanks in advance.
-
vi?
-
Vi won't die on my Z. I'll start it, then mash buttons until it finally "closes," at which point my Z will become very slow, so I check top, which shows that it is eating 99% of the CPU. "killall vi" appears to kill it (e.g., outputs nothing), but doesn't, so I have to reboot.
Also, I have no idea what Vi's keybindings are.
EDIT: It's better on r198...Just sits there and eats 1% of my RAM, but still won't die. Still not acceptable in my book.
-
have you tried ":q" or "ZZ" to exit/save vim.
it's not a wysiwyg text editor.
-
I've been using Ctrl-Z to quit, I believe.
EDIT: Oops...That doesn't quit. How do I get back to a program that I've Ctrl-Z'd?
-
Ctrl-Z is not a way to quit vi.
-
Ctrl-Z is not a way to quit vi.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163260\"][{POST_SNAPBACK}][/a][/div]
No Ctrl-z suspends your foreground task. You can type fg to get it back or bg if you are happy to run it in the background.... unlikely for vi but maybe ok for other tasks.
Also look for vim (vi-improved) its better - syntax colouring etc... and still reasonably light.
Must admit I'm an emacs fan for all editing - but its not light by any means...still compile mode for jumping to compiler errors, version control (via rcs/cvs) etc...
-
If "killall vi" doesn't work you can always try "killall -9 vi" which should definitely work (otherwise you can use "ps aux | grep vi" to find the pid of vi and then use "kill -9 pid" to kill it for sure). I personally use pico for any editing because it's easy (I hate vi because, although I can use it if I have to, it is unintuitive to me). I like emacs but it is a little heavy for casual use on the Z.
-
How do you make it start up with C++ syntax highlighting? The example vimrc doesn't really help.
TIA.
-
How do you make it start up with C++ syntax highlighting? The example vimrc doesn't really help.
TIA.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163276\"][{POST_SNAPBACK}][/a][/div]
I believe it depends on which terminal type you are using it in. It works fine for me in aterm, xterm/gtkterm2/terminal uses bold/underline instead of colour. I think it has more to do with how your terminals are configured... I recently upgraded to pdaxii13 5.4.6 and even how 'ls' colours its listings changed.....
check your TERM environment variable - "env | grep -i term"
I have ansi - in aterm and xterm everywhere else. Vim site I looked at suggested "linux" as the terminal. Try
export TERM=linux and then run vim and see if that helps.
Like pgas I assume you know vi is not vim - but certainly Meanie replaced vi with vim on pdaxii13....
good luck
-
Maybe you know this but just in case:
note that vi != vim
There is a vi that comes from busybox, that doesn't do all the fancy
things vim does.
(emacs also runs in a terminal)
-
Still a no-go. I exported TERM to be linux, and COLORTERM to be true (I also tried 'linux,' but to the same effect).
EDIT: Never mind, I just had to open a file with the right extention to get the highlighting to show up. It works now! Thank you, this looks promising.
-
Of course none of these suggestions are command-line editors. If you want one of those then of course THE choice is ED (click for more info) (http://www.gnu.org/fun/jokes/ed.msg.html) -- the one true editor
Note for the humor impaired: No, I'm definitely not being serious
-
Still a no-go. I exported TERM to be linux, and COLORTERM to be true (I also tried 'linux,' but to the same effect).
EDIT: Never mind, I just had to open a file with the right extention to get the highlighting to show up. It works now! Thank you, this looks promising.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163295\"][{POST_SNAPBACK}][/a][/div]
Silly me - I assumed you were editing a .c, .h .hpp or .cpp file - broke my own rule - never assume anything!
-
Well, I was...It just hadn't been saved yet.
-
If your looking for a light CLI editor, you should try e3 (http://www.sax.de/~adlibit/e3-2.7.0.tar.gz).
e3 is a full-screen, user-friendly text editor with an interface similar to that of either WordStar, Emacs, Pico, Nedit, or vi. It's heavily optimized for size and independent of libc or any other libraries, making it useful for mini-Linux distributions and rescue disks.
You can find a write-up here (http://en.wikipedia.org/wiki/E3_(text_editor))
sadly, there is no syntax highlighting.
-
you can try nano 2.x, it has syntax highlighting and easy to use.
-
http://joe-editor.sourceforge.net/ (http://joe-editor.sourceforge.net/) ?
http://www.jedsoft.org/jed/ (http://www.jedsoft.org/jed/) ?
-
you can try nano 2.x, it has syntax highlighting and easy to use.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163341\"][{POST_SNAPBACK}][/a][/div]
I've never gotten syntax highlighting to work in Nano. The option is -Y <str>, but I don't know what to put for the <str> part...
-
you can try nano 2.x, it has syntax highlighting and easy to use.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163341\"][{POST_SNAPBACK}][/a][/div]
I've never gotten syntax highlighting to work in Nano. The option is -Y <str>, but I don't know what to put for the <str> part...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163364\"][{POST_SNAPBACK}][/a][/div]
I have never used nano - but looking at the source suggests that either -Y c or -Y cpp or even -Y cxx should work for you. Strange that you should have to specify it but then perhaps thats why its called 'nano' - very little 'extra' functionality? Good luck.
-
I used rhide long time ago, it's a clone of the good old Turbo C++ IDE, unfortunately, I've not found it in the Z repositories.
I wrote programs inside that IDE back in the days having 16Mb of RAM was only for rich people...
Well
Here is the link:
http://www.rhide.com/ (http://www.rhide.com/)
and an animated screenshot (animated gif)
http://www.rhide.com/pics/menues.gif (http://www.rhide.com/pics/menues.gif)
You can compile and debug your programs very easily.
Related to this is SetEDIT, basically the editing component of rhide, but has evolved itself to become another IDE.
http://setedit.sourceforge.net/ (http://setedit.sourceforge.net/)
here's a screenshot:
http://setedit.sourceforge.net/Snap2Fonts.gif (http://setedit.sourceforge.net/Snap2Fonts.gif)
(Although the menus in the program show in Spanish, don't worry, it depends of your locale.)
Cheers
E
-
you can try nano 2.x, it has syntax highlighting and easy to use.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163341\"][{POST_SNAPBACK}][/a][/div]
I've never gotten syntax highlighting to work in Nano. The option is -Y <str>, but I don't know what to put for the <str> part...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163364\"][{POST_SNAPBACK}][/a][/div]
just copy nanorc to you home directory, but i do it with source compile, this install many syntax configs.
-
you can try nano 2.x, it has syntax highlighting and easy to use.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163341\"][{POST_SNAPBACK}][/a][/div]
I've never gotten syntax highlighting to work in Nano. The option is -Y <str>, but I don't know what to put for the <str> part...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163364\"][{POST_SNAPBACK}][/a][/div]
just copy nanorc to you home directory, but i do it with source compile, this install many syntax configs.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163390\"][{POST_SNAPBACK}][/a][/div]
I've built it with syntax stuff, so I should have the nanorc files. I'll give it a go.
Thanks.
EDIT: It works nicely, but I still like Vim a bit more for coding, now that I've gotten used to it.
-
Sort of OT, but how about IDEs? Not necessarily console-based, but preferably easy to use, lightweight (for the Z), and not depend on too many things.
Thanks in advance.
-
A very quick search turned up rhide: http://www.rhide.com/ (http://www.rhide.com/) (which I already knew about) and motor: http://thekonst.net/en/motor/ (http://thekonst.net/en/motor/)
Both look similar (motor might be your best bet on the Z, but I haven't used it so I'm just guessing here). All of the X versions I saw looked pretty heavy for the Z.