2

Does anyone know how to get the cursor's current position on the screen in SWI-Prolog? I have looked up ASCII escape code sequences, however, I am still confused on how to implement this in Prolog.

Thank you in advance.

Keith
  • 25
  • 2
  • 2
    I don't think you can, at least with what's in the box, but you can move to specific positions using [tty.pl](http://www.swi-prolog.org/pldoc/doc/_SWI_/library/tty.pl?show=src#tty_clear/0) which is included. Try using `tty_goto` or calling `format('~Thello', [goto(20,20)])` – Daniel Lyons Jul 25 '17 at 22:49
  • you can use XPCE which has graphics possibilities – joel76 Jul 26 '17 at 07:49

0 Answers0