|
Home - Old Man Programmer
| Displaying webapps/vt100/codes
water:/net/sbaker/public_html/vt100# set term=xterm
water:/net/sbaker/public_html/vt100# set term=xterm[14Dvim vt100.js
[?1000h
[?1049h
[?1h
=
�
[6n
]11;?
[?12;25h
[H
[2J
"vt100.js" 435L, 11424C
[>c
fg : 7, bg : 0,
bold:
false
, underline:
false
, blink:
false
, reverse:
false
,
enablescrollback : false,
sbbuffer : [],
sbtimer : null,
mode : 0,
// 0 = normal, 1 = escape encountered:
// 2 = [ encountered, 3 = [? encountered,
// 4 = ) encountered, 5 = ( encountered
sbupdate : function() {
for(var i = 0; i < terminal.sbbuffer.length; i++)terminal.scrollback.appendChild(terminal.sbbuffer[i]);
terminal.sbbuffer = [];
terminal.sbtimer = null;
terminal.tc.scrollTop = terminal.tc.scrollHeight+30;
},
newrow : function(oldline) {
var row = document.createElement("tr");
var m = [];
for(var c = 0; c < this.cols; c ++) {37,0-16%
8,1
this.sbtimer = setTimeout(this.sbupdate, 100);66,1
this.window.removeChild(this.row[this.tmargin]);68,1
var nr = this.newrow();70,1
for(var r = this.tmargin; r < this.bmargin; r++) {71,1
this.m[r] = this.m[r+1];72,1
this.row[r] = this.row[r+1];73,1
A -- INSERT --64,3911%
[16;24r
[L
65,7
11%654321
[15;24r
this.sbbuffer.push(this.row[0]);this.row[r] = this.row[r+1];64,3911%56{}7,6 {}6,3987654(
)3(
)5iclearTimeout(this.sbtimer);4 clearTimeout(this.sbtimer);5
clearTimeout(this.sbtimer);4
clearTimeout(this.sbtimer);3 clearTimeout(this.sbtimer);4 clearTimeout(this.sbtimer);5 clearTimeout(this.sbtimer);6clearTimeout(this.sbtimer);5clearTimeout(this.sbtimer);4clearTimeout(this.sbtimer);3(
)6{(
)
}7,6 {}8,339,1 70,281,332,311,330,28^[ 70,2711
this.m[this.bmargin] = nr.m;75,2712%~@k
this.row[this.bmargin] = nr.row;76,2712%~@k
if (this.bmargin == this.rows-1) {77,2712%~@k
this.window.appendChild(nr.row);78,2713%~@k
this.tc.scrollTop = this.tc.scrollHeight+30;79,2713%~@k
} else80,1013%~@k
this.window.insertBefore(nr.row, this.row[this.bmargin+1]);81,2713%~@k
},82,4
scrolldown : function() {83,2714%~@k
var nr = this.newrow();84,2714
this.
this.
-- INSERT --69,1
14%
[10;24r
[L70,5
14%/6//7 8T9h10i1s2 3i4s5 6a7 8t9e20s1t2.3.4.5 6H7o8p9e30f1u2l3l4y5 6i7t8 9i40s1 2a3l4i5g6n7e8d9 50i1n2 3t4i5m6e7 8p9r60o1p2e3r4l5y6.7^[ 70,6614%::q!
[?1002l
[?1l
>
[?1049l
water:/net/sbaker/public_html/vt100# ^Dexit
Script done on Sat 08 Jun 2019 11:37:31 AM EDT
|