OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Utilities => Topic started by: Rick Smith on July 06, 2022, 06:22:48 am
-
Greetings,
Is there a good command line text editor for os2? Like nano etc?
Regards
Rick
-
Personally, I use File Commander for things like a cmd line text editor, file manager etc. Shareware but no nags etc, http://silk.apana.org.au/fc.html (http://silk.apana.org.au/fc.html)
-
There are OS2 Versions for VI (https://ecsoft2.org/vi-improved-vim (https://ecsoft2.org/vi-improved-vim)) and Emacs (https://ecsoft2.org/emacs (https://ecsoft2.org/emacs)) but also others on Hobbes (https://hobbes.nmsu.edu/?path=%2Fpub%2Fos2%2Fapps%2Feditors (https://hobbes.nmsu.edu/?path=%2Fpub%2Fos2%2Fapps%2Feditors)) or ECSoft2 (https://ecsoft2.org/applications-editors-and-viewers (https://ecsoft2.org/applications-editors-and-viewers))
-
FTE:
https://ecsoft2.org/efte2-text-editor-fte-text-editor
-
Personally, I use File Commander for things like a cmd line text editor, file manager etc. Shareware but no nags etc, http://silk.apana.org.au/fc.html (http://silk.apana.org.au/fc.html)
Thank you, this is just like midnight commander which I am familiar.....!
Regards,
Rick
-
Thank you, this is just like midnight commander which I am familiar.....!
Regards,
Rick
midnight commander is available at hobbes: https://hobbes.nmsu.edu/?dir=%2F&stype=all&sort=type_name&search=midnight+commander (https://hobbes.nmsu.edu/?dir=%2F&stype=all&sort=type_name&search=midnight+commander)
Never used it, so i cannot say anything about it.
-
midnight commander is available at hobbes: https://hobbes.nmsu.edu/?dir=%2F&stype=all&sort=type_name&search=midnight+commander (https://hobbes.nmsu.edu/?dir=%2F&stype=all&sort=type_name&search=midnight+commander)
Never used it, so i cannot say anything about it.
That version at Hobbes is version 4.5.6r2 from august 1999, built using EMX 0.9c .
According to https://midnight-commander.org/ the most recent version is version 4.8.28 from march 2022 , but no OS/2 version is listed there.
-
IIRC, Midnight Commander has X11 dependencies and some other shortcomings, for sure no large file support. Whereas File Commander is a native OS/2 program that has been ported to Windows and Linux so fits into OS/2 well, things like clipboard support which IIRC was lacking in MC.
-
I too have found the File commander app to be indispensable too and have used it since I started with OS/2 2.0 back in the 90's for a lot of editing.
-
I finally got a newer version of the old vi clone Elvis ( https://github.com/mbert/elvis ) working!
-
I finally got a newer version of the old vi clone Elvis ( https://github.com/mbert/elvis ) working!
And now inquiring minds will surely like to know how you accomplished that ;)
-
I finally got a newer version of the old vi clone Elvis ( https://github.com/mbert/elvis ) working!
And now inquiring minds will surely like to know how you accomplished that ;)
Looks like it still has OS/2 support, Open Watcom and GCC, both EMX and kLIBC, EMX required for X11 support.
Have to test it, https://github.com/mbert/elvis/blob/master/osos2/Makefile.os2 (https://github.com/mbert/elvis/blob/master/osos2/Makefile.os2)
-
I finally got a newer version of the old vi clone Elvis ( https://github.com/mbert/elvis ) working!
And now inquiring minds will surely like to know how you accomplished that ;)
Looks like it still has OS/2 support, Open Watcom and GCC, both EMX and kLIBC, EMX required for X11 support.
Have to test it, https://github.com/mbert/elvis/blob/master/osos2/Makefile.os2 (https://github.com/mbert/elvis/blob/master/osos2/Makefile.os2)
Yep! Sorry, I didn't mean to imply that I had to do a lot of source hacking. I meant "wow, I actually managed to get enough RPMs installed to make it compile!" :).
The only thing elvis doesn't seem to do that vim probably does is automatically detect DOS-style line endings (CR+LF) and switch to the proper mode. It allows you to do it manually or via config file. I'm going to see if I can add auto-detection for existing files, it should be fairly simple.
-
But why limit to a VIO editor? Several editors for PM exist.
About VIO: FTE (http://trac.netlabs.org/efte/wiki) is really fast, even in its PM mode.