X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=formats%2Fline.tcl;fp=formats%2Fline.tcl;h=4274de1f540571ad3bfd3feefa7c77ad3feb1d36;hb=eb71fbcf75d076d638a0cee0d1418f311135d879;hp=c9ff1a4c694d6b8b5a8befe02a9681b2d25ab00b;hpb=9c188c91c6a0a300762cedb5bdb384023e1c48b8;p=ir-tcl-moved-to-github.git diff --git a/formats/line.tcl b/formats/line.tcl index c9ff1a4..4274de1 100644 --- a/formats/line.tcl +++ b/formats/line.tcl @@ -4,7 +4,10 @@ # Sebastian Hammer, Adam Dickmeiss # # $Log: line.tcl,v $ -# Revision 1.3 1995-06-16 12:29:00 adam +# Revision 1.4 1995-06-19 08:10:21 adam +# Inverse highligt colours in monochrome mode. +# +# Revision 1.3 1995/06/16 12:29:00 adam # Use insertWithTags on diagnostic errors. # # Revision 1.2 1995/06/13 14:39:06 adam @@ -20,10 +23,17 @@ proc display-line {sno no w hflag} { set type [z39.$sno type $no] if {$hflag} { - $w tag bind r$no \ + if {[tk colormodel .] == "color"} { + $w tag bind r$no \ [list $w tag configure r$no -background gray80] - $w tag bind r$no \ + $w tag bind r$no \ [list $w tag configure r$no -background {}] + } else { + $w tag bind r$no \ + [list $w tag configure r$no -background black -foreground white] + $w tag bind r$no \ + [list $w tag configure r$no -background {} -foreground {}] + } } else { $w delete 0.0 end }