The African Chief wrote:
[...] WinCRT is not a direct port of the Dos "crt" unit (although there are several compatible routines such as Readkey, GotoXY, etc), but is rather a wrapper around several WinAPI calls to produce a standard Windows window - but one that can process Readln/Writeln/Readkey calls, etc. [...]
Unless I am missing something, the same holds for the X11 version of our CRT unit (replacing "WinAPI" with "X11 API", encapsulated in some `*curses' library). So `uses CRT' with GPC should give the desired result.
You would need to do this for WinCRT - unless of course you are prepared to replace all references to 'WinCRT' with references to 'CRT'
This would of course be necessary (unless one copies `crt.pas' to `wincrt.pas' and changes the name of the unit).
- but this would not result in an X application - is this
correct, Peter?
If you follow the instructions in `crt.pas' you can produce an X11 application as well as a console application (that will of course run under X11 without any restrictions) - just at your option.
(However I noticed some problems with the window not being selectable under X11. Somebody knows what happens there?)
Greetings,
Peter