This piece of code makes displaying coloured text (and much more) easy for TCL programmer.
Full manual page is placed here [L1 ] Overview of package procedures:
- tputs - the main procedure of this package. Works similar to TCL 'puts', but allows using of special tags for colors handling.
- rtputs - this is restricted version of puts. Works faster, but it's less powerful.
- mv - manages a cursor position. Moving can be relative to current position or nonrelative.
- curpos - can remember cursor position and restore it later
- erase - erases pieces of lines, whole lines, pieces of screen or whole screen
- reset - resets all settings to defaults
- scroll - defines terminal scroll region (full screen, or some part of screen)
The library source is placed here [L2 ]
BUGS: Version 0.9 could be lilbit unstable (sometimes 'scroll' command doesn't work as it should).
If anybody has idea how to speed-up 'tputs' command, fix 'scroll' command, or simply add some another one, their concepts are welcome :)