Author Topic: Text editor  (Read 14752 times)

Rick Smith

  • Full Member
  • ***
  • Posts: 119
  • Karma: +4/-0
    • View Profile
Text editor
« on: July 06, 2022, 06:22:48 am »
Greetings,

Is there a good command line text editor for os2? Like nano etc?

Regards

Rick

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5083
  • Karma: +117/-1
    • View Profile
Re: Text editor
« Reply #1 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

Mo

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +2/-0
    • View Profile
Re: Text editor
« Reply #2 on: July 06, 2022, 12:20:44 pm »

Sergey Posokhov

  • Full Member
  • ***
  • Posts: 170
  • Karma: +8/-6
    • View Profile
    • OS/2 API Research
Re: Text editor
« Reply #3 on: July 06, 2022, 05:16:56 pm »

Rick Smith

  • Full Member
  • ***
  • Posts: 119
  • Karma: +4/-0
    • View Profile
Re: Text editor
« Reply #4 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

Thank you, this is just like midnight commander which I am familiar.....!

Regards,

Rick

Mo

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +2/-0
    • View Profile
Re: Text editor
« Reply #5 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
Never used it, so i cannot say anything about it.


Tom

  • Full Member
  • ***
  • Posts: 212
  • Karma: +6/-0
    • View Profile
Re: Text editor
« Reply #6 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
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.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5083
  • Karma: +117/-1
    • View Profile
Re: Text editor
« Reply #7 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.

Eugene Tucker

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +15/-0
    • View Profile
Re: Text editor
« Reply #8 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.

jailbird

  • Newbie
  • *
  • Posts: 47
  • Karma: +5/-0
    • View Profile
Re: Text editor
« Reply #9 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!

Tom

  • Full Member
  • ***
  • Posts: 212
  • Karma: +6/-0
    • View Profile
Re: Text editor
« Reply #10 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 ;)

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5083
  • Karma: +117/-1
    • View Profile
Re: Text editor
« Reply #11 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

jailbird

  • Newbie
  • *
  • Posts: 47
  • Karma: +5/-0
    • View Profile
Re: Text editor
« Reply #12 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

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.

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: Text editor
« Reply #13 on: July 31, 2022, 11:07:21 pm »
But why limit to a VIO editor? Several editors for PM exist.

About VIO: FTE is really fast, even in its PM mode.
« Last Edit: July 31, 2022, 11:13:22 pm by Andreas Schnellbacher »