struct TermBuf::Field::Prompt

Overview

What sits in front of the text.

Defined in:

termbuf/widgets/field.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String, style : Style = Style::DEFAULT, continuation : String | Nil = nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def continuation : String | Nil #

What the rows after the first get, so a wrapped line stays aligned under the one before it. Spaces the width of text when nil.


def copy_with(text _text = @text, style _style = @style, continuation _continuation = @continuation) #

[View source]
def style : Style #

def text : String #