Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
CRT::Ansi::Context
Inherits
Struct
<
Value
<
Object
Constructors
detect
(env =
ENV
, io :
IO
=
STDOUT
) : self
Source
new
(capabilities :
Capabilities
=
Capabilities
.new, terminal_adapter :
TerminalAdapter
=
TerminalAdapter
.new, width_resolver :
Proc
(
String
,
Int32
) = ->(g :
String
) do
DisplayWidth
.of(g) end, grapheme_filter :
Proc
(
String
,
String
) = ->(g :
String
) do g end)
Source
Instance methods
capabilities
Source
grapheme_filter
Source
osc_terminator
Source
terminal_adapter
Source
width_resolver
Source