Module device_control_string

Source
Expand description

Types and functions for encoding Sixel image control strings.

Structs§

BasicColor
Represents a ColorMap selection (by index);
ColorMap
Container representing a list of ColorMapItem entries.
ColorMapItem
Represents a ColorMap entry item.
DeviceControlString
Device Control String
Raster
Raster attributes
Repeat
Graphics repeat introducer sequence.
SixelChar
Represents a valid Sixel character.
SixelCounts
Common counts for Sixel encoding.

Enums§

ColorMode
Selects the color mode representation.
DcsBackground
Selects how the terminal draws the background color. You can use one of three values.
DcsFunction
DCS escape sequence function
DcsMode
Bitness encoding for the DeviceControlString.
PixelAspectRatio
Represents the height-to-width pixel ratio.
ScrollingMode
Sixel scrolling mode
SixelControl
Terminal control characters used in Sixel input mode.
SixelItem
Variants of valid Sixel data structures.
StFunction
ST escape sequence function

Constants§

BLACK
DCS_7BIT
DCS escape sequence (7-bit mode)
DCS_7BIT_LEN
DCS escape sequence length (7-bit mode)
DCS_8BIT
DCS escape sequence (8-bit mode)
DCS_8BIT_LEN
DCS escape sequence length (8-bit mode)
ESC
ESC terminal escape code
GRAYSCALE_MAP
Naive grayscale values for a basic ColorMap palette.
RGB_FULL
RGB_HALF
RGB_MAP
Naive RGB values for a basic ColorMap palette.
RGB_QUART
RGB_ZERO
SIXEL_CHAR_END
Ending of the Sixel data character range.
SIXEL_CHAR_START
Beginning of the Sixel data character range.
ST_7BIT
ST escape sequence (7-bit mode)
ST_8BIT
ST escape sequence (8-bit mode)
WHITE

Functions§

u8_percentage
Converts a u8 value into a percentage.

Type Aliases§

RgbBytes
Convenience alias for RGB pixel bytes.
RgbSixelBytes
Convenience alias for RGB sixel bytes.
SixelPlane
Convenience alias for sixel plane (six monochrome pixels).