Skip to content

Commit 9905281

Browse files
sgr
1 parent e5d5565 commit 9905281

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

docs/source/vga.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ treat 0 as 1 to remain useful without parameters.
692692
* - CSI n m
693693
- SGR
694694
- Select Graphic Rendition
695-
- Selects colors and styles.
695+
- See `SGR Parameters`_.
696696
* - CSI 6n
697697
- DSR
698698
- Device Status Report
@@ -716,6 +716,8 @@ treat 0 as 1 to remain useful without parameters.
716716
- Makes the cursor invisible.
717717

718718

719+
.. _SGR Parameters:
720+
719721
SGR Parameters
720722
--------------
721723
Send multiple parameters separated by semicolons. Sending CSI m
@@ -749,7 +751,10 @@ without any codes resets all attributes.
749751
- Colors 0-7
750752
* - 38
751753
- Set foreground color
752-
- Followed by 1 or 5;n or 2;r;g;b or 2::r:g:b
754+
- - ``;5;n`` — 256-color index n (0-255)
755+
- ``;2;r;g;b`` — 24-bit RGB color
756+
- ``;2::r:g:b`` — 24-bit RGB color
757+
- ``;1`` — transparent
753758
* - 39
754759
- Default foreground color
755760
- Color 7 white.
@@ -758,7 +763,10 @@ without any codes resets all attributes.
758763
- Colors 0-7
759764
* - 48
760765
- Set background color
761-
- Followed by 1 or 5;n or 2;r;g;b or 2::r:g:b
766+
- - ``;5;n`` — 256-color index n (0-255)
767+
- ``;2;r;g;b`` — 24-bit RGB color
768+
- ``;2::r:g:b`` — 24-bit RGB color
769+
- ``;1`` — transparent
762770
* - 49
763771
- Default background color
764772
- Color 0 transparent black.

0 commit comments

Comments
 (0)