struct Term::Prompt::Statement

Overview

A class representing a statement output to prompt.

Defined in:

prompt/statement.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(prompt : Prompt, newline : Bool = true, color = nil) #

Initialize a Statement


[View source]

Instance Method Detail

def call(message) #

Output the message to the prompt


[View source]
def color : Cor | Nil #

Color used to display statement


[View source]
def newline : Bool #

Flag to display newline


[View source]