NAME
TUI::Drivers::Const - constants for driver and event handling
SYNOPSIS
use TUI::Drivers::Const qw(:all);
# or import specific constant groups
use TUI::Drivers::Const qw(:evXXXX :kbXXXX);
DESCRIPTION
TUI::Drivers::Const defines constants used by the Turbo Vision driver layer.
The constants in this module are grouped by purpose and exported via tag-based export groups. They are used by the event system, keyboard and mouse handling, screen and video mode selection, and low-level driver logic.
This module only defines constants. The semantic meaning and practical usage of these constants is documented in higher-level driver modules such as TUI::Drivers::Event, TUI::Drivers::Screen, and TUI::Drivers::HardwareInfo.
CONSTANTS
Event type constants (evXXXX)
Event type and event mask constants used by the Turbo Vision event system.
These constants identify mouse, keyboard, command, broadcast, and message events and are used when dispatching and filtering events.
Mouse button state constants (mbXXXX)
Constants describing mouse button states.
These values are used to identify which mouse buttons are pressed during a mouse event.
Mouse event flag constants (meXXXX)
Constants describing additional mouse event attributes, such as movement and double-click detection.
Screen mode constants (smXXXX)
Constants defining supported screen and video modes.
These values are used by the screen and display drivers to select the active video configuration.
Keyboard code constants (kbXXXX)
Constants representing keyboard input codes and modifier states.
These include control key combinations, function keys, extended keys, and keyboard state masks. They are used by the keyboard and event handling logic to interpret raw input.
EXPORT TAGS
Constants are exported using the following tag-based export groups:
:evXXXX- event types and event masks:mbXXXX- mouse button state flags:meXXXX- mouse event flags:smXXXX- screen and video mode constants:kbXXXX- keyboard codes and modifier flags:all- import all constants
SEE ALSO
TUI::Drivers::Event, TUI::Drivers::Screen, TUI::Drivers::Display, TUI::Drivers::HardwareInfo
AUTHORS
- Borland International (original Turbo Vision design)
- J. Schneider <brickpool@cpan.org> (Perl implementation and maintenance)
COPYRIGHT AND LICENSE
Copyright (c) 1990-1994, 1997 by Borland International
Copyright (c) 2026 the "AUTHORS" as listed above.
This software is licensed under the MIT license (see the LICENSE file, which is part of the distribution).