Expand description
Types and functions for encoding Sixel image control strings.
Structs§
- Basic
Color - Represents a ColorMap selection (by index);
- Color
Map - Container representing a list of ColorMapItem entries.
- Color
MapItem - Represents a ColorMap entry item.
- Device
Control String - Device Control String
- Raster
- Raster attributes
- Repeat
- Graphics repeat introducer sequence.
- Sixel
Char - Represents a valid Sixel character.
- Sixel
Counts - Common counts for Sixel encoding.
Enums§
- Color
Mode - 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.
- Pixel
Aspect Ratio - Represents the height-to-width pixel ratio.
- Scrolling
Mode - Sixel scrolling mode
- Sixel
Control - Terminal control characters used in Sixel input mode.
- Sixel
Item - 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.
- RgbSixel
Bytes - Convenience alias for RGB sixel bytes.
- Sixel
Plane - Convenience alias for sixel plane (six monochrome pixels).