Anyone got a way of hiding the cursor when using GotoXY/Write statements in TP3 on CP/M?

In this case, specifically on the RC2014.

I don't think there's anything in the BIOS that helps. Small detail, but it's bugging me.

#CPM #RC2014 #TurboPascal3

@kianryan the manual doesn't indicate that there's a procedure for it - i think you might have to look up the cursor toggle control codes for the terminal you're using :-(
@millihertz Humm. I've had limited success with VT-100 control codes, but the ANSI ones *may* work. I'll spin up a sample program and give it a shot.
@kianryan isnt the cursor generated by the terminal and not the "computer"? So you will know how your terminal (and if) could hide the cursor.
For ANSI:
Hide: \e[?25l
Show: \e[?25h

@guidol70 Yep. Think I might need both ANSI and VT52ish for eventual goal, but going to start from there.

This didn't behave well the last time I tried similar in TP. So time for a small test program first.

Thank you.

@kianryan you need something like this CLS-ClearScreen command (from BASIC) in TP:
CLS$=CHR$(27)+"[2J"+CHR$(27)+"[H"
PRINT CLS$

for vt52-codes take a look here:
http://toshyp.atari.org/en/VT_52_terminal.html#Cur_on

The documentation for TOS: VT-52 terminal

@kianryan nothing in CP/M itself. It depends on your terminal emulator, in the VT100 there are show/hide visibilty cursor escape sequences. https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences has a nice summary.
Console Virtual Terminal Sequences - Windows Console

Virtual terminal sequences are control character sequences that can control cursor movement, color/font mode, and other operations when written to the output stream.

@kianryan you can use ASCII escape codes

https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797

Such as:

ESC?25l
Make cursor invisible

And:

ESC?25h
Make cursor visible

ANSI Escape Codes

ANSI Escape Codes. GitHub Gist: instantly share code, notes, and snippets.

Gist