Console Library API - brombres/Rogue GitHub Wiki

ANSIBitmap.rogue

class ANSIBitmap

extends Object

Properties

Name Type Description
height Int
pixels Byte[]
width Int

Methods

Signature Return Type Description
init( source:Bitmap, &dither )
display()
size() XY
to<<TextCanvas>>( [bg=CharacterStyle.BG_DEFAULT:Int] ) TextCanvas

ANSIColor.rogue

class ANSIColor [compound]

incorporates CommonCompoundMethods

Global Methods

Signature Return Type Description
create( color:Color, [mode=ANSIColorMode.COLOR_240:ANSIColorMode] ) ANSIColor
create( index:Int, color:Color ) ANSIColor

Properties

Name Type Description
color Color
index Int

Methods

Signature Return Type Description
description() String
operator==( other:ANSIColor ) Logical
print_to( buffer:PrintWriter )
to<<Object>>() Boxed<<ANSIColor>>
to<<String>>() String
to<<Variant>>() Variant
type_info() TypeInfo

class ANSIColorLookup [singleton]

extends Byte[]

Properties

Name Type Description
@native1 RogueCNativeProperty
capacity Int
color_mode ANSIColorMode
count Int
element_size Int
element_type Byte Used by native code to determine sizeof($DataType)
is_borrowed Logical
is_ref_array Logical

Methods

Signature Return Type Description
init()
init( color_mode:ANSIColorMode ) color_mode
  COLOR_240, COLOR_16, GRAY_24, or GRAY_4
configure( color_mode:ANSIColorMode )

class ANSIColorLookupColor16 [singleton]

extends ANSIColorLookup

Properties

Name Type Description
@native1 RogueCNativeProperty
capacity Int
color_mode ANSIColorMode
count Int
element_size Int
element_type Byte Used by native code to determine sizeof($DataType)
is_borrowed Logical
is_ref_array Logical

Methods

Signature Return Type Description
init()

class ANSIColorLookupColor240 [singleton]

extends ANSIColorLookup

Properties

Name Type Description
@native1 RogueCNativeProperty
capacity Int
color_mode ANSIColorMode
count Int
element_size Int
element_type Byte Used by native code to determine sizeof($DataType)
is_borrowed Logical
is_ref_array Logical

Methods

Signature Return Type Description
init()

class ANSIColorLookupGray24 [singleton]

extends ANSIColorLookup

Properties

Name Type Description
@native1 RogueCNativeProperty
capacity Int
color_mode ANSIColorMode
count Int
element_size Int
element_type Byte Used by native code to determine sizeof($DataType)
is_borrowed Logical
is_ref_array Logical

Methods

Signature Return Type Description
init()

class ANSIColorLookupGray4 [singleton]

extends ANSIColorLookup

Properties

Name Type Description
@native1 RogueCNativeProperty
capacity Int
color_mode ANSIColorMode
count Int
element_size Int
element_type Byte Used by native code to determine sizeof($DataType)
is_borrowed Logical
is_ref_array Logical

Methods

Signature Return Type Description
init()

enum ANSIColorMode

incorporates CommonCompoundMethods

Categories

Category Value Description
UNDEFINED -1
COLOR_240 0
COLOR_16 1
GRAY_24 2
GRAY_4 3

Global Properties

Name Type Description
categories ANSIColorMode[]

Global Methods

Signature Return Type Description
create( name:String ) ANSIColorMode
create( value:Int ) ANSIColorMode

Properties

Name Type Description
value Int

Methods

Signature Return Type Description
description() String
hashcode() Int
name() String
operator?() Logical
operator==( other:ANSIColorMode ) Logical
print_to( buffer:PrintWriter )
to<<Int>>() Int
to<<Object>>() Object
to<<String>>() String
to<<Variant>>() Variant
type_info() TypeInfo

class ANSIColors [singleton]

extends ANSIColor[]

Properties

Name Type Description
@native99 RogueCNativeProperty
BLACK ANSIColor
BLUE ANSIColor
capacity Int
count Int
CYAN ANSIColor
DARK_BLUE ANSIColor
DARK_CYAN ANSIColor
DARK_GRAY ANSIColor
DARK_GREEN ANSIColor
DARK_PURPLE ANSIColor
DARK_RED ANSIColor
DARK_YELLOW ANSIColor
element_size Int
element_type ANSIColor Used by native code to determine sizeof($DataType)
GREEN ANSIColor
is_borrowed Logical
is_ref_array Logical
LIGHT_GRAY ANSIColor
PURPLE ANSIColor
RED ANSIColor
WHITE ANSIColor
YELLOW ANSIColor

Methods

Signature Return Type Description
init()

ANSIRGB.rogue

class ANSIRGB [compound]

incorporates CommonCompoundMethods

Global Methods

Signature Return Type Description
create( color:Color ) ANSIRGB
create( red:Real, green:Real, blue:Real ) ANSIRGB

Properties

Name Type Description
blue Real
green Real
red Real

Methods

Signature Return Type Description
description() String
operator*( value:Real ) ANSIRGB
operator+( other:ANSIRGB ) ANSIRGB
operator-( other:ANSIRGB ) ANSIRGB
operator==( other:ANSIRGB ) Logical
print_to( buffer:PrintWriter )
to<<Object>>() Boxed<<ANSIRGB>>
to<<String>>() String
to<<Variant>>() Variant
to<<ANSIColor>>( &c240, &c16, &g24, &g4 ) ANSIColor
to<<ANSIColor>>( [mode=ANSIColorMode.COLOR_240:ANSIColorMode] ) ANSIColor
type_info() TypeInfo

CommandLineParser.rogue

class CommandLineParser

extends Object

Properties

Name Type Description
allow_batching Logical Allows -abc to represent -a -b -c
arg String
arg_reader Reader<<String>>
command Variant
cur_group String
ddash_disables Logical Allows -- to turn off further option parsing
defaults Variant
handlers [String:(Function(CommandLineParser))]
name String
options Variant
unknown_handler Function(CommandLineParser)

Methods

Signature Return Type Description
init()
alias( from_name:String, to_name:String, &require_value )
group( new_group_option:String, [new_group_name=null:String] ) Changes the group that subsequent args are collected under
on_unknown( unknown_handler:Function(CommandLineParser) )
on_unknown( usage_callback:Function() )
option( name:String, &require_value, &optional, &multi, [default=null:Variant], &alias=null, &aliases=null )
option( name:String, handler:Function(CommandLineParser), &alias=null, &aliases=null, &require_value )
parse( args:String[] ) Variant

class UnexpectedValueError

extends Error

Properties

Name Type Description
message String
name String
stack_trace StackTrace

Methods

Signature Return Type Description
init( name:String )

class UnrecognizedOptionError

extends Error

Properties

Name Type Description
message String
name String
stack_trace StackTrace

Methods

Signature Return Type Description
init( name:String )

class ValueExpectedError

extends Error

Properties

Name Type Description
message String
name String
stack_trace StackTrace

Methods

Signature Return Type Description
init( name:String )

Console.rogue

class Console [singleton]

extends Object

incorporates Reader<<$DataType>>, PrintWriter, BufferedPrintWriter<<$buffer>>

Properties

Name Type Description
@native34 RogueCNativeProperty
cursor ConsoleCursor
decode_utf8 Logical
error PrintWriter
force_input_blocking Logical Set to true to force input blocking in Immediate Mode (can set to false after input). In Standard Mode input blocking is always used.
immediate_mode Logical Set to 'true' to turn off echo and line buffering and to turn on mouse events
input_buffer Byte[]
is_end_of_input Logical Can be set after has_another() returns false in standard line-buffered input mode. Call reset_input to re-enable input.
mode ConsoleMode StandardConsoleMode || ImmediateConsoleMode
next_input_character Int?
output_buffer String
position Int
windows_in_quick_edit_mode Logical

Methods

Signature Return Type Description
init()
clear( [output=Global:PrintWriter] )
clear_to_eol( [output=Global:PrintWriter] )
close()
error() PrintWriter
flush()
flush( buffer:String )
has_another() Logical
has_another_event() Logical
height() Int
indent() Int
input( [prompt=null:String] ) String Returns null on End-Of-Input
mode() ConsoleMode
on_end_use()
on_use() Console
peek() Character
peek_event() ConsoleEvent
position() Int
print( value:Byte )
print( value:Character )
print( value:Int32 )
print( value:Int64 )
print( value:Logical )
print( value:Object )
print( value:Real64 )
print( value:Real64, decimal_places:Int32 )
print( value:String )
println()
println( value:Byte )
println( value:Character )
println( value:Int32 )
println( value:Int64 )
println( value:Logical )
println( value:Object )
println( value:Real64 )
println( value:Real64, decimal_places:Int32 )
println( value:String )
read() Character
read_event() ConsoleEvent
read_line() String
read( buffer:Character[], limit:Int ) Int
reset()
reset_input() Allows stdin to be read again after a CTRL+D
seek( pos:Int )
set_cursor( position:(x:Int,y:Int), [output=Global:PrintWriter] )
set_cursor( x:Int, y:Int, [output=Global:PrintWriter] )
set_immediate_mode( setting:Logical ) setting==true: turn off echo and line buffer, turn on mouse events.
               Must call has_another_event / read_event / peek_event
set_indent( new_indent:Int )
size() XY
skip( n:Int )
to<<Character[]>>() Character[]
to<<String>>() String
width() Int
write( value:String )

ConsoleCursor.rogue

class ConsoleCursor [compound]

incorporates CommonCompoundMethods

Description

API
  Console.cursor = (x,y) # Defined in Console.set_cursor(), (0,0) is top-left
  Console.cursor->XY # (0,0) is top-left
  Console.cursor.position->XY # Same as above
  Console.cursor += (delta_x,delta_y)
  Console.cursor.save_position
  Console.cursor.restore_position
  Console.cursor.hide
  Console.cursor.show

Global Properties

Name Type Description
cursor_hidden Logical

Methods

Signature Return Type Description
description() String
hide( [setting=true:Logical], [output=Global:PrintWriter] )
operator+=( delta:(x:Int,y:Int), [output=Global:PrintWriter] )
operator==( other:ConsoleCursor ) Logical
position() XY
print_to( buffer:PrintWriter )
restore_position( [output=Global:PrintWriter] )
save_position( [output=Global:PrintWriter] )
show( [output=Global:PrintWriter] )
to<<Object>>() Boxed<<ConsoleCursor>>
to<<String>>() String
to<<Variant>>() Variant
to<<XY>>() XY
type_info() TypeInfo
x() Int
y() Int

ConsoleErrorPrinter.rogue

class ConsoleErrorPrinter

extends Object

incorporates PrintWriter, BufferedPrintWriter<<$buffer>>

Properties

Name Type Description
output_buffer String

Methods

Signature Return Type Description
close()
flush()
flush( buffer:String )
indent() Int
print( value:Byte )
print( value:Character )
print( value:Int32 )
print( value:Int64 )
print( value:Logical )
print( value:Object )
print( value:Real64 )
print( value:Real64, decimal_places:Int32 )
print( value:String )
println()
println( value:Byte )
println( value:Character )
println( value:Int32 )
println( value:Int64 )
println( value:Logical )
println( value:Object )
println( value:Real64 )
println( value:Real64, decimal_places:Int32 )
println( value:String )
set_indent( new_indent:Int )
write( value:String )

ConsoleEvent.rogue

class ConsoleEvent [compound]

incorporates CommonCompoundMethods

Global Methods

Signature Return Type Description
create( type:ConsoleEventType, x:Int, y:Int ) ConsoleEvent

Properties

Name Type Description
type ConsoleEventType
x Int
y Int

Methods

Signature Return Type Description
description() String
is_character() Logical
is_pointer_press() Logical
is_pointer_press_left() Logical
is_pointer_press_right() Logical
is_pointer_release() Logical
is_scroll_down() Logical
is_scroll_up() Logical
operator==( other:ConsoleEvent ) Logical
print_to( buffer:PrintWriter )
to<<Object>>() Boxed<<ConsoleEvent>>
to<<String>>() String
to<<Variant>>() Variant
type_info() TypeInfo
unicode() Character

enum ConsoleEventType

incorporates CommonCompoundMethods

Categories

Category Value Description
CHARACTER 0
POINTER_PRESS_LEFT 1
POINTER_PRESS_RIGHT 2
POINTER_RELEASE 3
POINTER_MOVE 4
SCROLL_UP 5
SCROLL_DOWN 6

Global Properties

Name Type Description
categories ConsoleEventType[]

Global Methods

Signature Return Type Description
create( name:String ) ConsoleEventType
create( value:Int ) ConsoleEventType

Properties

Name Type Description
value Int

Methods

Signature Return Type Description
description() String
hashcode() Int
name() String
operator?() Logical
operator==( other:ConsoleEventType ) Logical
print_to( buffer:PrintWriter )
to<<Int>>() Int
to<<Object>>() Object
to<<String>>() String
to<<Variant>>() Variant
type_info() TypeInfo

enum UnixConsoleMouseEventType

incorporates CommonCompoundMethods

Categories

Category Value Description
PRESS_LEFT 32
PRESS_RIGHT 34
RELEASE 35
DRAG_LEFT 64
DRAG_RIGHT 66
MOVE 67
SCROLL_UP 96
SCROLL_DOWN 97

Global Properties

Name Type Description
categories UnixConsoleMouseEventType[]

Global Methods

Signature Return Type Description
create( name:String ) UnixConsoleMouseEventType
create( value:Int ) UnixConsoleMouseEventType

Properties

Name Type Description
value Int

Methods

Signature Return Type Description
description() String
hashcode() Int
name() String
operator?() Logical
operator==( other:UnixConsoleMouseEventType ) Logical
print_to( buffer:PrintWriter )
to<<Int>>() Int
to<<Object>>() Object
to<<String>>() String
to<<Variant>>() Variant
type_info() TypeInfo

ConsoleMode.rogue

class ConsoleMode

extends Object

Global Properties

Name Type Description
configured_on_exit Logical

Methods

Signature Return Type Description
has_another() Logical
has_another_event() Logical
init_object()
peek() Character
peek_event() ConsoleEvent
read() Character
read_event() ConsoleEvent

class ImmediateConsoleMode

extends ConsoleMode

Properties

Name Type Description
decode_utf8 Logical
events ConsoleEvent[] All keyboard and mouse events get turned into ConsoleEvents and queued here
windows_button_state Int
windows_last_press_type ConsoleEventType

Methods

Signature Return Type Description
init() Turn off blocking and line buffering
has_another() Logical Only reports on character input events, ignoring pointer events. Use has_another_event() instead to check for either kind of event.
has_another_event() Logical
peek() Character
peek_event() ConsoleEvent
read() Character
read_event() ConsoleEvent

class StandardConsoleMode

extends ConsoleMode

Properties

Name Type Description
next_input_character Int?

Methods

Signature Return Type Description
init()
has_another() Logical
has_another_event() Logical
peek() Character
peek_event() ConsoleEvent
read() Character
read_event() ConsoleEvent

class WindowsInputRecord [compound]

incorporates CommonCompoundMethods

Properties

Name Type Description
@native54 RogueCNativeProperty
@native55 RogueCNativeProperty
@native56 RogueCNativeProperty
@native57 RogueCNativeProperty
@native58 RogueCNativeProperty

Methods

Signature Return Type Description
description() String
operator==( other:WindowsInputRecord ) Logical
print_to( buffer:PrintWriter )
to<<Object>>() Boxed<<WindowsInputRecord>>
to<<String>>() String
to<<Variant>>() Variant
type_info() TypeInfo

ConsoleStyle.rogue

class ConsoleStyle [singleton]

extends Object

Description

USAGE
  ConsoleStyle.set<<FG_WHITE>>
  ConsoleStyle.set<<BG_RED>>
  println "Hello World!"
  ConsoleStyle.set<<RESET>>

OR
  ConsoleStyle.set( ConsoleStyle.FG_WHITE )
  ...

Properties

Name Type Description
BG_BLACK Int
BG_BLUE Int
BG_CYAN Int
BG_DARK_GRAY Int
BG_DEFAULT Int
BG_GREEN Int
BG_LIGHT_BLUE Int
BG_LIGHT_CYAN Int
BG_LIGHT_GRAY Int
BG_LIGHT_GREEN Int
BG_LIGHT_MAGENTA Int
BG_LIGHT_RED Int
BG_LIGHT_YELLOW Int
BG_MAGENTA Int
BG_RED Int
BG_WHITE Int
BG_YELLOW Int
BLINK Int
BLINK_OFF Int
BOLD Int
BOLD_OFF Int
DIM Int
DIM_OFF Int
FG_BLACK Int
FG_BLUE Int
FG_CYAN Int
FG_DARK_GRAY Int
FG_DEFAULT Int
FG_GREEN Int
FG_LIGHT_BLUE Int
FG_LIGHT_CYAN Int
FG_LIGHT_GRAY Int
FG_LIGHT_GREEN Int
FG_LIGHT_MAGENTA Int
FG_LIGHT_RED Int
FG_LIGHT_YELLOW Int
FG_MAGENTA Int
FG_RED Int
FG_WHITE Int
FG_YELLOW Int
HIDDEN Int
HIDDEN_OFF Int
INVERSE Int
INVERSE_OFF Int
RESET Int
UNDERLINE Int
UNDERLINE_OFF Int

Methods

Signature Return Type Description
bg_color( bg:Color, [output=Global:PrintWriter] ) 24-bit truecolor mode
bg_color( index:Int, [output=Global:PrintWriter] ) 256 color mode; index is 0..255
colors( fg:Color, bg:Color, [output=Global:PrintWriter] )
fg_color( fg:Color, [output=Global:PrintWriter] ) 24-bit truecolor mode
fg_color( index:Int, [output=Global:PrintWriter] ) 256 color mode; index is 0..255
flush()
reset( [output=Global:PrintWriter] )
set( code:Int, [output=Global:PrintWriter] )
set<<$CODE>>( [output=Global:PrintWriter] )
string( code:Int ) String Returns the full escape sequence activating the given code. Example: println ConsoleStyle.string(ConsoleStyle.BG_BLUE)

ConsoleUI.rogue

class ConsoleUI

extends UI

Description

bold_font : ConsoleUIFont inverse_font : ConsoleUIFont underline_font : ConsoleUIFont

Properties

Name Type Description
actions Action
anchor Anchor?
aspect_size XY
attributes Attributes
button_pressed Logical[]
clip Box?
content_alignment Anchor?
content_offset XY
content_opacity Real
count Int
default_font Font
entity_id GlobalID
find_handler Function(GlobalID,Variant)->Variant
first_child Entity
focus Focus
font Font
internal_id Int
is_running Logical
keep_active_timer Timer
last_child Entity
layout_size XY
max_event_window_ms Int
max_events_processed Int
mouse_position XY?
natural_size XY
needs_layout Logical
needs_redraw Logical
next Entity
opacity Real
parameters Variant
parent Entity
position XY
script EntityScript
scroll_rate Real
size XY
size_reference Component
sizing_mode SizingModeXY
snap_to_pixel_coordinates Logical
structure_modified Logical
text_style TextStyle
update_timeout Timer
weight XY

Methods

Signature Return Type Description
cloned() ConsoleUI
default_scroll_rate() Real
dispatch_on<<$VisitorType>>( visitor:$VisitorType ) Entity
dispatch_on_visit<<$VisitorType>>( visitor:$VisitorType )
draw()
font() ConsoleUIFont
handle( e:KeyEvent )
handle( e:PointerEvent )
handle( e:ScrollEvent )
handle( e:TextEvent )
handle( type:GlobalID, index:Int, e:ConsoleEvent ) Only called when e is a pointer or scroll event
init_object()
keep_active( seconds:Real )
on_draw()
on_resize()
on_update()
run()
send_release_event( index:Int, event:ConsoleEvent )
set_clip( clip:Box? )

ConsoleUICanvas.rogue

class ConsoleUICanvas [singleton]

extends TextCanvas

Description

All console UI drawing commands should draw characters to this singleon.

Properties

Name Type Description
autoscroll Logical
buffer StyledCharacter[]
builder String
clip Box?
cursor XY
displayed StyledCharacter[]
height Int
style CurrentCharacterStyle
width Int

ConsoleUIFont.rogue

class ConsoleUIFont [singleton]

extends Font

Properties

Name Type Description
anchor Anchor
line_spacing Real
name String
scale XY

Methods

Signature Return Type Description
init()
cloned() ConsoleUIFont
draw( text:String, position:XY )
draw( text:Text )
height() Real
measure( ch:Character ) XY

TextCanvas.rogue

class CharacterStyle [compound]

incorporates CommonCompoundMethods

Global Properties

Name Type Description
bg_colors Int[]
fg_colors Int[]
is_truecolor_supported Logical

Global Methods

Signature Return Type Description
create( flags:Int, [fg=Color(0):Color], [bg=Color(0):Color] ) CharacterStyle

Properties

Name Type Description
bg Color
fg Color
flags Int

Methods

Signature Return Type Description
apply( new_style:CharacterStyle, [output=Global:PrintWriter] ) CharacterStyle
bg( bg:Color ) CharacterStyle
bg( color:Int ) CharacterStyle
colors( fg:Color, bg:Color ) CharacterStyle
description() String
fg( color:Int ) CharacterStyle
fg( fg:Color ) CharacterStyle
operator+( flag:Int ) CharacterStyle
operator-( flag:Int ) CharacterStyle
operator==( other:CharacterStyle ) Logical
print_to( buffer:PrintWriter )
reset()
to<<Object>>() Boxed<<CharacterStyle>>
to<<String>>() String
to<<Variant>>() Variant
type_info() TypeInfo

class CurrentCharacterStyle

extends Object

Properties

Name Type Description
current CharacterStyle

Methods

Signature Return Type Description
bg_black()
bg_blue()
bg_cyan()
bg_dark_gray()
bg_default()
bg_green()
bg_light_blue()
bg_light_cyan()
bg_light_gray()
bg_light_green()
bg_light_magenta()
bg_light_red()
bg_light_yellow()
bg_magenta()
bg_red()
bg_white()
bg_yellow()
bg( color:ANSIColor )
bg( color:Color )
bg( color:Int )
blink()
blink_off()
bold()
bold_off()
clear()
colors( fg:Color, bg:Color )
dim()
dim_off()
fg_black()
fg_blue()
fg_cyan()
fg_dark_gray()
fg_default()
fg_green()
fg_light_blue()
fg_light_cyan()
fg_light_gray()
fg_light_green()
fg_light_magenta()
fg_light_red()
fg_light_yellow()
fg_magenta()
fg_red()
fg_white()
fg_yellow()
fg( color:ANSIColor )
fg( color:Color )
fg( color:Int )
hidden()
hidden_off()
inverse()
inverse_off()
reset()
underline()
underline_off()

class StyledCharacter [compound]

incorporates CommonCompoundMethods

Global Methods

Signature Return Type Description
create( [value=' ':Character], [style=CharacterStyle.NONE:CharacterStyle] ) StyledCharacter
create( value:Character, color:Color, [fg=false:Logical], [bg=false:Logical] ) StyledCharacter
create( value:Character, fg:Color, bg:Color ) StyledCharacter

Properties

Name Type Description
style CharacterStyle
value Character

Methods

Signature Return Type Description
description() String
operator==( other:StyledCharacter ) Logical
print_to( buffer:PrintWriter )
to<<Object>>() Boxed<<StyledCharacter>>
to<<String>>() String
to<<Variant>>() Variant
type_info() TypeInfo

class TextCanvas

extends Object

incorporates PrintWriter, BufferedPrintWriter<<$buffer>>

Properties

Name Type Description
autoscroll Logical
buffer StyledCharacter[]
builder String
clip Box?
cursor XY
displayed StyledCharacter[]
height Int
style CurrentCharacterStyle
width Int

Methods

Signature Return Type Description
init( content:String, width:Int )
init( lines:String[] )
init( width:Int, height:Int, [fill=' ':Character] )
init( width:Int, height:Int, buffer:StyledCharacter[] )
init( width:Int, height:Int, content:String )
init( width:Int, height:Int, fill:StyledCharacter )
clear( [fill=' ':Character] )
clear( fill:StyledCharacter )
cloned() TextCanvas
close()
crop( left:Int, top:Int, right:Int, bottom:Int )
crop( n:Int )
display( [output=Global:PrintWriter] ) Prints to the standard output or a specified PrintWriter.
display( x:Int, y:Int ) (0,0) is the top-left corner of the console
display( xy:XY )
draw( bounds:Box, ch:Character )
draw( bounds:Box, ch:StyledCharacter )
draw( bounds:Box, pattern:String ) Pattern: "ABCDEFGHI" where:
  ABC
  D F
  GHI
Example:
  ABBBBC
  D F
  D F
  GHHHHI
draw( characters:StyledCharacter[], width:Int, [position=XY.zero:XY] )
draw( pattern:String )
draw( src:TextCanvas, x:Int, y:Int )
draw( src:TextCanvas, xy:XY )
draw( text_image:String, width:Int, [position=XY.zero:XY] )
draw_frame( bounds:Box, &thick ) Draws a box-character frame, e.g.: β”Œβ”€β”€β”€β”€β”€β”€β”€β” ┏━━━━━━┓ β”‚Defaultβ”‚ ┃&thick┃ β”‚(thin) β”‚ ┗━━━━━━┛ β””β”€β”€β”€β”€β”€β”€β”€β”˜
expand( left:Int, top:Int, right:Int, bottom:Int )
expand( n:Int )
fill( bounds:Box, ch:Character )
fill( bounds:Box, ch:StyledCharacter )
fill( bounds:Box, pattern:String ) Pattern: "ABCDEFGHI" where:
  ABC
  DEF
  GHI
Example:
  ABBBBC
  DEEEEF
  DEEEEF
  GHHHHI
fill( ch:Character )
fill( ch:StyledCharacter )
fill( pattern:String )
flipped( &h, &v ) TextCanvas
flush()
flush( buffer:String )
get( i:Int, j:Int ) StyledCharacter
get( xy:XY ) StyledCharacter
indent() Int
invalidate()
invalidate( bounds:Box )
pixellated( [style=CharacterStyle.NONE:CharacterStyle] ) TextCanvas "Pixellates" non-space characters in this TextCanvas into quarter block characters. The height of the resulting TextCanvas is half what it originally was. See also: Console/ANSIBitmap.rogue

Example:
  uses Console/TextCanvas
  local st = @|######
              |# # #### #### # # ######
              |# # # # # # # # #
              |###### # # # # # #####
              |# # # # # ### # # #
              |# # # # # # # # #
              |# # #### #### #### ######

  println TextCanvas( st.split('\n') ).pixellated

Output:

  β–ˆβ–€β–€β–€β–€β–€β–„ β–„β–„β–„β–„ β–„β–„β–„β–„ β–„ β–„ β–„β–„β–„β–„β–„β–„
  β–ˆβ–„β–„β–„β–„β–„β–€ β–ˆ β–ˆ β–ˆ β–€ β–ˆ β–ˆ β–ˆβ–„β–„β–„β–„
  β–ˆ β–€β–„ β–ˆ β–ˆ β–ˆ β–€β–€β–ˆ β–ˆ β–ˆ β–ˆ
  β–€ β–€ β–€β–€β–€β–€ β–€β–€β–€β–€ β–€β–€β–€β–€ β–€β–€β–€β–€β–€β–€
print( value:Byte )
print( value:Character )
print( value:Int32 )
print( value:Int64 )
print( value:Logical )
print( value:Object )
print( value:Real64 )
print( value:Real64, decimal_places:Int32 )
print( value:String )
println()
println( value:Byte )
println( value:Character )
println( value:Int32 )
println( value:Int64 )
println( value:Logical )
println( value:Object )
println( value:Real64 )
println( value:Real64, decimal_places:Int32 )
println( value:String )
resize( new_size:XY )
resize( new_width:Int, new_height:Int )
rotated_180() TextCanvas
rotated_90( &cw, &ccw ) TextCanvas
set( i:Int, j:Int, ch:Character )
set( i:Int, j:Int, ch:StyledCharacter )
set( xy:XY, ch:Character )
set( xy:XY, ch:StyledCharacter )
set_clip( new_clip:Box? )
set_cursor( new_pos:XY )
set_indent( new_indent:Int )
shift( dx:Int, dy:Int, [fill_ch=' ':Character] )
size() XY
style() CurrentCharacterStyle
to<<String>>() String
⚠️ **GitHub.com Fallback** ⚠️