1# -*- tcl -*- 2# 3# Copyright (c) 2019 Andreas Kupries <andreas_kupries@sourceforge.net> 4# Freely redistributable. 5# 6# _text_state.tcl -- State variables and accessors 7 8# # ## ### ##### ######## 9# State: Flag to suppress of plain text in some places. 10 11global __off 12 13# # ## ### ##### ######## 14# API 15 16proc Off {} { global __off ; set __off 1 ; return} 17proc On {} { global __off ; set __off 0 ; TextClear ; return} 18proc IsOff {} { global __off ; return $__off } 19 20# Debugging ... 21#proc Off {} {puts_stderr OFF ; global __off ; set __off 1 ; return} 22#proc On {} {puts_stderr ON_ ; global __off ; set __off 0 ; TextClear ; return} 23