Terminal user interface for simulations. Just compile with make
and run your software as
./termsim your_program your_arg1 your_arg2 your_args
termsim will read stdout and stderr and will update the
scatterplot or the message area depending on the beginning of the
sentence. Full 3D controls are provided, as one can see here.
To plot the points (0,0,1), (4,5,6) and (4,4,7), the program
running under termsim should output something along the lines of
print("DATA")
print("0 0 1")
print("4 5 6")
print("4 4 7")
print("END")where each print statement adds a newline.
To add a message, just print it, anything that doesn’t begin with
DATA will be treated as a message. stderr will be merged with
stdout and parsed also by termsim.
Termsim will apply colors to statements starting by Error:,
Warning: and Info:.
Feel free to modify them in Tui.cpp.
p,C-pScroll up.n,C-nScroll down.gGo to first message.GGo to last message.SPACEToggle autoscroll.
jRotate down.kRotate up.lRotate right.hRotate left.JMove down.KMove up.LMove right.HMove left.iToggle showing of info.+Zoom in.-Zoom out.rReset scatterplot view.
^CExit via SIGTERM.C-LRedraw screen.

