module Tui::ErrorScreen

Overview

Shared full-screen error display: clears the screen, prints message in the failed color, and optionally waits for a keypress before returning.

Extended Modules

Defined in:

tui/error_screen.cr

Instance Method Summary

Instance Method Detail

def render(message : String, error_color : String, hint_color : String, wait : Bool = true) : String #

Renders the error text block (no I/O), so callers can verify the exact output without a live Screen/terminal.


def show(screen : Screen, message : String, error_color : String, hint_color : String, wait : Bool = true) : Nil #