NAME

MsgBox - Message box utilities for the TVision framework

SYNOPSIS

use TUI::MsgBox;

my $answer = messageBox(
  'Delete selected file?',
  mfConfirmation | mfYesNoCancel,
);

if ( $answer == cmYes ) {
  messageBox( 'File deleted.', mfInformation | mfOKButton );
}

my $string = '';
my $res = inputBox(
  'The Title',
  'Enter some text:',
  $string,
  30,
);

if ( $res != cmCancel ) {
  # Process confirmed input.
}

DESCRIPTION

TUI::MsgBox provides message box and input box utilities for the TVision framework. It corresponds to the Turbo Vision message box subsystem and offers simple modal dialogs for displaying messages, warnings, confirmations, and text prompts.

This module re-exported:

  • Const - Symbolic constants for message box types and button sets.

  • MsgBoxText - Functions such as messageBox and inputBox.

AUTHORS

  • Borland International (original Turbo Vision design)

  • J. Schneider <brickpool@cpan.org> (Perl implementation and maintenance)

CONTRIBUTORS

Contributors are documented in the POD of the respective framework modules.

COPYRIGHT AND LICENSE

Copyright (c) 1990-1994, 1997 by Borland International

Copyright (c) 2025-2026 the "AUTHORS" as listed above.

This software is licensed under the MIT license (see the LICENSE file, which is part of the distribution).