Skip to contents

Generates text with each 8 bit SGR code (e.g. the "###" in "38;5;###") with the background colored by itself, and the foreground in a contrasting color and interesting color (we sacrifice some contrast for interest as this is intended for demo rather than reference purposes).

Usage

sgr_256()

Value

character vector with SGR codes with background color set as themselves.

See also

Examples

writeLines(sgr_256())
#> Standard
#>   0   1   2   3   4   5   6   7
#> 
#> High-Intensity
#>   8   9  10  11  12  13  14  15
#> 
#> 216 Colors (Dark)
#>  16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
#>  52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
#>  88 89 90 91 92 93 94 95 96 97 98 99100101102103104105
#> 124125126127128129130131132133134135136137138139140141
#> 160161162163164165166167168169170171172173174175176177
#> 196197198199200201202203204205206207208209210211212213
#> 
#> 216 Colors (Light)
#>  34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
#>  70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
#> 106107108109110111112113114115116117118119120121122123
#> 142143144145146147148149150151152153154155156157158159
#> 178179180181182183184185186187188189190191192193194195
#> 214215216217218219220221222223224225226227228229230231
#> 
#> Grayscale
#> 232 233 234 235 236 237 238 239 240 241 242 243
#> 244 245 246 247 248 249 250 251 252 253 254 255