blob: 04ce9275cbca3cd14c81b9e8d17ba375abb80c1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/usr/bin/env tclsh
## -*- tcl -*-
lappend auto_path [file join [file dirname [file dirname [file dirname [info script]]]] modules]
#puts [join $auto_path \n]
#exit
set f [lindex $argv 0]
set c [open $f r]
set t [read $c]
close $c
package require term::ansi::send
package require term::ansi::ctrl::unix
package require term::interact::pager
term::ansi::send::import vt
vt::init
vt::clear
term::interact::pager p $t -line 2 -column 2 -height 30
term::ansi::ctrl::unix::raw
p interact
term::ansi::ctrl::unix::cooked
exit
|