+# This is called before starting the test
+proc announce_test {s} {
+ if {[info exists ::env(TERM)] && [string match $::env(TERM) xterm]} {
+ puts -nonewline "$s\033\[0K"
+ flush stdout
+ set ::backward_count [string length $s]
+ }
+}
+
+# This is called after the test finished