NAME
TUI::Editors::Const - constants for editor components
SYNOPSIS
use TUI::Editors::Const qw( :all );
# or import specific constant groups
use TUI::Editors::Const qw( :cpXXXX );
DESCRIPTION
This module defines constants used by TUI::Vision editor components.
This module only defines constants. The semantic meaning and practical usage of these constants is documented in the corresponding editor modules.
CONSTANTS
Editor color palettes (cpXXXX)
Color palette constants used by editor components.
These values define the color schemes for editor elements, such as the position indicator TIndicator.
Editor messages (edXXXX)
Message identifiers used by the editor components to report state to the application, such as a failed search (edSearchFailed) or a request to save modified text (edSaveModify).
Editor command constants (cmXXXX)
Command identifiers used by the editor components.
These values are delivered via $event->{message}{command} and are handled by TEditor, including the search and replace commands (cmFind, cmReplace, cmSearchAgain).
Editor update flags (ufXXXX)
Flags that tell TEditor which parts of the view must be redrawn when it is updated: the whole view (ufView), a single line (ufLine), or the update state itself (ufUpdate).
Editor selection modes (smXXXX)
Flags that describe how the cursor movement of TEditor extends the current selection: extending it (smExtend) and selecting by word (smDouble).
Editor search and replace options (efXXXX)
Option flags for the search and replace dialog of the editor, used by TEditor find, replace and search.
Editor line length (mlXXXX)
maxLineLength is the maximum length of a line in an editor, used as the horizontal scroll limit of TEditor.
EXPORT TAGS
Constants are exported using the following tag-based export groups:
:cpXXXX- editor color palettes:edXXXX- editor messages:cmXXXX- editor command identifiers:ufXXXX- editor update flags:smXXXX- editor selection modes:efXXXX- editor search and replace options:mlXXXX- editor line length:all- import all constants
SEE ALSO
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).