File: 13-xonxoff.t

package info (click to toggle)
libterm-vt102-perl 0.91-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 268 kB
  • sloc: perl: 2,471; makefile: 13
file content (45 lines) | stat: -rw-r--r-- 1,115 bytes parent folder | download | duplicates (4)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/perl -w
#
# Test XOFF and XON.
#
# Copyright (C) Andrew Wood
# NO WARRANTY - see COPYING.
#

require Term::VT102;
require 't/testbase';

run_tests ([(
#              (F,B,b,f,s,u,F,r)
  [ { 'IGNOREXOFF' => 0 },
    6, 2, "foo\023bar\e[1m\021baz",
    "foobaz", [ [7,0,0,0,0,0,0,0],
                [7,0,0,0,0,0,0,0],
                [7,0,0,0,0,0,0,0],
                [7,0,0,0,0,0,0,0],
                [7,0,0,0,0,0,0,0],
                [7,0,0,0,0,0,0,0] ],
    "\0\0\0\0\0\0",
             [ [7,0,0,0,0,0,0,0],
               [7,0,0,0,0,0,0,0],
               [7,0,0,0,0,0,0,0],
               [7,0,0,0,0,0,0,0],
               [7,0,0,0,0,0,0,0],
               [7,0,0,0,0,0,0,0] ],
  ],
  [ { 'IGNOREXOFF' => 1 },
    9, 1, "foo\023bar\e[1m\021baz",
    "foobarbaz",
              [ [7,0,0,0,0,0,0,0],
                [7,0,0,0,0,0,0,0],
                [7,0,0,0,0,0,0,0],
                [7,0,0,0,0,0,0,0],
                [7,0,0,0,0,0,0,0],
                [7,0,0,0,0,0,0,0],
                [7,0,1,0,0,0,0,0],
                [7,0,1,0,0,0,0,0],
                [7,0,1,0,0,0,0,0] ],
  ],
)]);

# EOF