OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Utilities => Topic started by: Rick Smith on July 06, 2022, 06:22:48 am

Title: Text editor
Post 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
Title: Re: Text editor
Post by: Dave Yeo on July 06, 2022, 08:14:32 am
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)
Title: Re: Text editor
Post by: Mo on July 06, 2022, 12:20:44 pm
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))



Title: Re: Text editor
Post by: Sergey Posokhov on July 06, 2022, 05:16:56 pm
FTE:
https://ecsoft2.org/efte2-text-editor-fte-text-editor
Title: Re: Text editor
Post by: Rick Smith on July 11, 2022, 02:47:51 pm
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
Title: Re: Text editor
Post by: Mo on July 11, 2022, 06:49:41 pm

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.

Title: Re: Text editor
Post by: Tom on July 11, 2022, 07:38:09 pm
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.
Title: Re: Text editor
Post by: Dave Yeo on July 11, 2022, 10:06:44 pm
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.
Title: Re: Text editor
Post by: Eugene Tucker on July 12, 2022, 06:58:23 pm
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.
Title: Re: Text editor
Post by: jailbird on July 28, 2022, 10:10:16 pm
I finally got a newer version of the old vi clone Elvis ( https://github.com/mbert/elvis ) working!
Title: Re: Text editor
Post by: Tom on July 28, 2022, 11:52:57 pm
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 ;)
Title: Re: Text editor
Post by: Dave Yeo on July 29, 2022, 01:00:00 am
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)
Title: Re: Text editor
Post by: jailbird on July 29, 2022, 05:04:01 am
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.
Title: Re: Text editor
Post by: Andreas Schnellbacher on July 31, 2022, 11:07:21 pm
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.