| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package TUI::Drivers;
|
|
2
|
2
|
|
|
2
|
|
3547
|
use strict;
|
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
75
|
|
|
3
|
2
|
|
|
2
|
|
9
|
use warnings;
|
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
241
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '2.0.0';
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=encoding utf8
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
TUI::Drivers - Driver abstraction layer for the TUI::Vision framework
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
use TUI::Drivers;
|
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# Placeholder module.
|
|
18
|
|
|
|
|
|
|
# The full driver system will be migrated from TV::Drivers.
|
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
TUI::Drivers provides the hardware and driver abstraction layer for the
|
|
23
|
|
|
|
|
|
|
TUI::Vision framework. It corresponds to the Turbo Vision driver system
|
|
24
|
|
|
|
|
|
|
and encapsulates all low-level terminal, keyboard, mouse, and event
|
|
25
|
|
|
|
|
|
|
handling functionality.
|
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
This module re-exported multiple driver components, including:
|
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=over 4
|
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=item * Const
|
|
32
|
|
|
|
|
|
|
Symbolic constants for driver and hardware behavior.
|
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item * HardwareInfo
|
|
35
|
|
|
|
|
|
|
Detection of terminal and system capabilities.
|
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=item * Display / Screen
|
|
38
|
|
|
|
|
|
|
Low-level screen output and display management.
|
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=item * SystemError
|
|
41
|
|
|
|
|
|
|
Driver-level error reporting.
|
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=item * Event / EventQueue
|
|
44
|
|
|
|
|
|
|
Keyboard, mouse, and system event handling.
|
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item * HWMouse / Mouse
|
|
47
|
|
|
|
|
|
|
Hardware and logical mouse drivers.
|
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=item * Util
|
|
50
|
|
|
|
|
|
|
Internal driver utilities.
|
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=back
|
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This stub does not implement any of these features yet.
|
|
55
|
|
|
|
|
|
|
It exists solely to reserve the namespace for the upcoming migration.
|
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 ROADMAP
|
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=over 4
|
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=item * Phase 2
|
|
62
|
|
|
|
|
|
|
Migration of TV::Drivers::* modules into TUI::Drivers::*.
|
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item * Phase 3
|
|
65
|
|
|
|
|
|
|
Driver abstraction for Win32 and ncurses.
|
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * Phase 4
|
|
68
|
|
|
|
|
|
|
Unified event system shared across TUI::Vision.
|
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=item * Phase 5
|
|
71
|
|
|
|
|
|
|
Modernization of screen output and terminal capability detection.
|
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=back
|
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 AUTHOR
|
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
J. Schneider
|
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut
|
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
1;
|