Clean escape sequences for non-downloaded resources
This commit is contained in:
@@ -482,6 +482,8 @@ proc urlfetch {inputurl refhist} {
|
||||
set bfg_status [trunc "Rendering $inputurl..."]
|
||||
.content.text configure -state normal
|
||||
.content.text delete 1.0 end; # clear the previous contents
|
||||
# remove all SGR escape sequences for non-downloaded responses
|
||||
regsub -all {\033\[[0-9;]+m} $bfg_response "" bfg_response
|
||||
$handler "$inputurl" "$rooturl" "$path" "$bfg_response" .content.text
|
||||
.content.text configure -state disabled
|
||||
refreshbookmarks
|
||||
|
||||
Reference in New Issue
Block a user