You can use display to display variables or expression outputs that change:
$ display char
This will display the value of the char variable each time it changes. If char doesn’t change on the next execution, then it will not be displayed.
The display command creates a watchlist. We can add more variables by running display again with a new variable name or expression. Running display without additional arguments will show us our entire watchlist. undisplay will clear the watchlist. If we pass in a variable name, then it will remove that variable from the watch list.
