Package ivs :: Package aux :: Module termtools :: Class CallInstruct
[hide private]
[frames] | no frames]

Class CallInstruct

source code

Generate a callable function on-the-fly.

The function takes text as an input and will first print all the terminal instructions, then the text and then reset the terminal settings to the normal value.

Instance Methods [hide private]
 
__init__(self, instr)
Remember which instructions to print.
source code
 
__call__(self, text)
Print the instructions, the text and reset the terminal.
source code