Answer the question
In order to leave comments, you need to log in
Library that implements VT100 output for DOS?
I wanted to get a convenient debugging console from the controller (ICP DAS, DOS operating system). For example, we connect using a terminal program via a COM or Ethernet port and the console in the top line displays information on free memory, the number of tasks, some other data, and below is the usual debugging output. Far similar to the top command. Those. you can get away from flickering lines when updating information, which seems very convenient to me.
Usually ncurses is used for this purpose, but it is under Linux. I don't understand the DOS compatibility situation. What difficulties I suppose:
1) terminfo (not available in DOS)
2) dependence on libraries (*.h), which are used only under Linux
3) timers (is there any difference for a C ++ programmer or the code turns out to be cross-platform)
Perhaps some problems are contrived and caused by a lack of experience.
On the other hand, there is a cross-platform counterpart - pdcurses. For each OS, its own version of the library is implemented, and then the necessary version is selected by include. But under DOS there is no talk about control sequences (VT100), because. written directly to the video buffer, which of course is not an option.
Whether there are libraries allowing to implement the interface through VT100 under DOS/Windows?
And do I understand correctly that ncurses outputs to stdout and that you need to redirect the output stream to output to a remote device?
Answer the question
In order to leave comments, you need to log in
I wonder how you from a fundamentally single-tasking DOS, in which multitasking is implemented with the cruelest crutches on interrupts, will get the number of tasks.
Keep in mind that since this is a machine - DOS runs on it in near real time - any additional program can upset this delicate balance and everything will go to dust.
Diagnosis - a whim / not satisfy.
Actually, termcap was ported to DOS, I think along with Emacs. But I'm not talking about installing MSDOS-Kermit. It has support for VT100, and not only - www.columbia.edu/kermit
Yes, it is also available as a library that you can use in your programs.
Also, at one time, the TurboVision library was very popular https://ru.wikipedia.org/wiki/Turbo_Vision - it's like a curses replacement for DOS.
Accordingly, kermit + turbovision can replace anything.
PS. Am I the only necromancer?
Well, for multitasking, install the semiaxis instead of dos ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question