There are several options here, ncurses being a popular choice.
I found an example that creates a subwindow and moves it based on keyboard input:
I found an example that creates a subwindow and moves it based on keyboard input:
Apart from various experimental support for new mechanisms in various terminal apps, there are two old formats that is supported reasonably widely: ReGIS [1] and Sixel [2]
FWIW, Bloomberg Terminals might be something in line with what you want.