Page 1 of 1

Cursor positioning in TeraTerm

Posted: Sun May 13, 2018 11:56 pm
by s_hatch
I use TeraTerm and would like to use cursor positioning when using my pyboard. How does one send escape sequences to the TeraTerm terminal emulating a VT100?

Re: Cursor positioning in TeraTerm

Posted: Mon May 14, 2018 5:41 am
by Roberthh
For instance:

Code: Select all

import sys
def goto(row, col):
    sys.stdout.write("\x1b[{};{}H".format(row + 1, col + 1))

Re: Cursor positioning in TeraTerm

Posted: Mon May 14, 2018 11:40 am
by s_hatch
Thank you for responding. It works perfectly.