NAME
TUI::Drivers::Display - low-level display abstraction
SYNOPSIS
use TUI::Drivers::Display;
# TDisplay is used as a static driver facade.
my $cols = TDisplay->getCols();
my $rows = TDisplay->getRows();
my $mode = TDisplay->getCrtMode();
TDisplay->setCrtMode($mode);
my $cursor = TDisplay->getCursorType();
TDisplay->setCursorType($cursor);
TDisplay->clearScreen($cols, $rows);
DESCRIPTION
TDisplay provides a low-level abstraction layer for screen and cursor operations used by the TUI::Vision driver subsystem.
The module defines a set of class-level routines for querying and modifying display parameters such as screen size, cursor shape, and video mode. It does not maintain any internal state of its own.
TDisplay is not an object-oriented class. It must not be instantiated. All interaction is performed via class method calls of the form TDisplay->method.
This module is primarily used internally by TScreen and related driver components.
Commonly Used Features
Most code interacts with TDisplay through class-style calls to query and control the terminal state: getCols(), getRows(), getCrtMode(), setCrtMode(), getCursorType(), setCursorType(), and clearScreen().
TDisplay is a thin abstraction over THardwareInfo and is generally used inside the driver stack (for example TScreen) rather than directly in application dialogs or views. The updateIntlChars() routine adjusts frame, scrollbar, and desktop drawing characters based on the active code page.
METHODS
clearScreen
TDisplay->clearScreen($width, $height);
Clears the display using the specified screen dimensions.
getCols
my $cols = TDisplay->getCols();
Returns the current number of screen columns.
getRows
my $rows = TDisplay->getRows();
Returns the current number of screen rows.
getCrtMode
my $mode = TDisplay->getCrtMode();
Returns the current CRT video mode.
setCrtMode
TDisplay->setCrtMode($mode);
Sets the CRT video mode.
getCursorType
my $type = TDisplay->getCursorType();
Returns the current cursor shape encoding.
setCursorType
TDisplay->setCursorType($type);
Sets the cursor shape using a hardware-specific encoding.
updateIntlChars
TDisplay->updateIntlChars();
Updates the display's international character mappings.
SEE ALSO
TUI::Drivers::Screen, 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) 2021-2026 the "AUTHORS" as listed above.
This software is licensed under the MIT license (see the LICENSE file, which is part of the distribution).