How to get graphical output screen?
I just looked at the
play library for Python. For other languages, like Pascal and Swift, is it possible to also have graphical output like that? What should we do to enable graphical screen output instead of text console?
Forget about Swift. I haven't found any swift module that is capable to initiate graphical console. Swift is too modern that it doesn't care much about console application, let alone graphical console.
I think you can just run the code to create a graphical window and it'll appear. Ofc you can't use AppKit for Swift since that's nac os exclusive, but there are some units for Pascal builtin
@theangryepicbanana There are 3 graph units provided by FPC. The main one is the classic
graph unit, but it only works on DOS and Windows. It doesn't available on Linux, so it doesn't available on repl as repl is on Linux.
The alternatives are
ptcgraph. They'are distributed along with standard FPC package for Linux. However, when I tried them on repl, they didn't work because the lack of required libraries, namely ggi, sdl, and ptc.
So, would you please add support to at least one the those graph units? Preferably the ggi one. Thank you.
@theangryepicbanana What do you mean by "gui lib"? SDL library? OpenGL library? X library? Well… are they supported on repl?
Besides those big and complex libraries are complicated to use while the graph libraries are mostly very simple. Those graph libraries are wrapper to the complex libraries anyway. Beginners alike much prefer the graph libraries since they just need to make simple games or drawing programs.