OS/2, eCS & ArcaOS - Technical > Utilities
architecture/substitute of cmd.exe ?
André Heldoorn:
A maximum of 8160 (80x102) is used in e.g. REXXUTIL.C indeed.
So one may have to write a PMCMD.EXE, which won't be compatible with CMD.EXE nor CMD.EXE's character mode anyway.
André Heldoorn:
--- Quote from: ivan on October 01, 2018, 11:07:39 pm ---BTW, Thanks for the ME Editor. I find it useful when I need a text file open and available on the desktop for days - the other editors force a reboot after a week if they are left open.
--- End quote ---
Yet another advantage of ME is its Col mode (click on NormBlk to toggle), to e.g. delete a column of text in a file with a fixed line width.
RickCHodgin:
--- Quote from: André Heldoorn on October 09, 2018, 10:37:31 am ---
--- Quote from: ivan on October 01, 2018, 11:07:39 pm ---BTW, Thanks for the ME Editor. I find it useful when I need a text file open and available on the desktop for days - the other editors force a reboot after a week if they are left open.
--- End quote ---
Yet another advantage of ME is its Col mode (click on NormBlk to toggle), to e.g. delete a column of text in a file with a fixed line width.
--- End quote ---
Try the TSE editor. It is DOS-based, but feature rich. It allows editing of files up to available diskspace, has a macro programmable language with event hooks, column mode, line drawing mode, hex mode, syntax highlighting, can have multiple horizontal and vertical splitscreens up at the same time (even viewing different parts of the same file), and much more.
They made an OS/2 version, but it's no longer public. You might be able to contact the author and get a copy.
I've never found a more feature rich editor. There are also other versions including a Windows version.
https://www.semware.com/
Martin Vieregg:
I am now thinking about to write a new input/output window for cmd.exe or 4os2.exe.
I can start cmd.exe from my editor main program with the /K option and with a output and input file to a pipe:
--- Code: ---cmd.exe /K >\pipe\myoutpipe <\pipe\myinpipe
--- End code ---
and then in my Editor program, a separate thread reads input from \pipe\myoutpipe and if a line has been edited and finished by pressing enter, the typed line gets written to \pipe\myinpipe.
Is it really so simple? Or is the connection between cmd.exe and the PM command window more sophisticated and I will fail with this concept?
Valery Sedletski:
2Martin Vieregg: cmd.exe and 4os2.exe nut only use stdin/stdout/stderr, but also use KBD/VIO API's to access console. E.g. 4os2 enables/disables ansi sequences via VIO API, implements menus (if you press PgDn, a menu with recently entered commands will be displayed). Editors usually use AVIO, to execute programs in their windows. So, stdin/stdout/stderr is a simplest case, but VIO API's are sometimes required. You can't start FC/2 in your editor by just redirecting stdin/stdout.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version