Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
tput
v2.0.0
Char
Superconf
Tput
ACSC
ColorScheme
Coordinates
Detection
Emulator
Features
ACSHash
GraphicsProtocol
Input
InputEvent
Key
Keyboard
KeyboardProtocol
KeyEvent
Type
KittyKeyboard
Modifiers
Mouse
Action
Button
Encoding
Event
Namespace
AlignFlag
Charset
Color
Cursor
CursorShape
CursorState
CursorStyle
Erase
LineDirection
MouseCursorShape
Orientation
Point
Size
Volume
Output
Bell
Charset
C
Colors
Cursor
Emulator
Misc
Mouse
Rectangles
Screen
Scrolling
Terminal
Text
Probe
ProbeResult
Resize
Response
RGB
Unicode
Generated using Crystal 1.16.3
2026-08-18 02:09:41 UTC
struct
Tput::
RGB
Tput::RGB
Struct
Value
Object
Overview
A 24-bit color parsed from an OSC color report (
rgb:rr/gg/bb
).
Defined in:
tput/probe.cr
Constructors
.new
(r : UInt8, g : UInt8, b : UInt8)
Instance Method Summary
#b
: UInt8
#clone
#copy_with
(r _r = @r, g _g = @g, b _b = @b)
#g
: UInt8
#r
: UInt8
#to_s
(io)
Constructor Detail
def self.
new
(r : UInt8, g : UInt8, b : UInt8)
#
[
View source
]
Instance Method Detail
def
b
: UInt8
#
def
clone
#
[
View source
]
def
copy_with
(r _r = @r, g _g = @g, b _b = @b)
#
[
View source
]
def
g
: UInt8
#
def
r
: UInt8
#
def
to_s
(io)
#
[
View source
]