gusg21
gusg21

Reputation: 147

How to write to specific character cell in terminal without libraries?

Is it possible to write to a specific character cell in a terminal in Python 3 without the help of a library? If not, what library would be best for this purpose?

Upvotes: 0

Views: 106

Answers (1)

user1620443
user1620443

Reputation: 794

Use the curses module. If you really don't want to, you can write codes to your terminal. All codes are here.

http://wiki.bash-hackers.org/scripting/terminalcodes

You can send them using sys.stdout.write():

sys.stdout.write("\033[10;16H#")

Upvotes: 3

Related Questions