In the old days of TP 6, there was a unit called win.
It came with a win.obj file, no source code.
It was very fast.
It was used by TurboVision framework IIRC.
I used it in all my DOS programs that had title and statusbars.
It had IIRC the following functions
- FrameWin: single- or double frame a window, with a title, then shrink the dimensions of the window by 1 in all directions
- UnFrameWin: remove the frame border, increase window by 1 in all directions. It acted on the current defined Window IIRC.
- SaveWin: save the contents of the current window in an untyped buffer
- RestoreWin: put the saved content of a window back in the current window (dimensions must match)
- WriteStr: writes a string at current position, but does not cause a linefeed to occur. So you could write a character at the last X position of the screen
I made a modified implementation of the first 2.
It only needs the functionality of Crt unit.
The latter 3 and 4 might be hard to implement.
Don't know if 5 is possible.
Bart