I created a simple education tool using BASH script which runs in an X terminal. It displays a prompt, at which users can enter choices, as described in the Bash Guide for Beginners' Catching user input, and previous typed input is pushed up the screen.
__________________________ |________________________X_| | ... |^| | 30 | | | x 10 | | | ------ | | | > |=| |________________________|v|
Occasionally, I need to display some graphics nearby this text input area, which can be visible while the user is typing. I tried various solutions:
libcasa. This displays the graphic inside the terminal window as colorful ASCII art, but complex graphics were not easily recognizable.
eogto display the picture. This displays the picture in another window, but requires that the user press "q" or quit the graphic window prior to continuing to use the terminal.
Is there any way to present a split-view window that places the BASH terminal's script in one pane and a high-quality graphic in the other, which can be updated by the BASH script? This might look something like this:
__________________________ |________________________X_| | | | (PNG) | | | |==========================| | ... |^| | How many apples | | | do you see in the | | | picture? | | | > |=| |________________________|v|