Other ideas


Adding a scrollbar

Often a scrollbar will be added to the ZvtTerm widget to allow its scroll-back buffer to be controlled via a mouse (see ). Each ZvtTerm provides this via an adjustment defined in the object structure as simply adjustment.

Also note that mouse-wheel mice are automatically handled by the button event handler if the terminal widget has focus, and perform a page up/down function.

You will normally want to disable focus on the scrollbar otherwise gtk may switch focus inappropriately.


Reading data from the screen

There are no helper functions for this, but the same may be achieved simply using the following code fragment.

These values are then suitable for using with to let the application read data from the screen.