dwww Home | Show directory contents | Find package

# ansi_palette_show

    Code
      ansi_palette_show(colors = truecolor)
    Output
                                                           bright variants
      blck red  grn  yllw blue mgnt cyan whte  blck red  grn  yllw blue mgnt cyan whte
      
      #### #### #### #### #### #### #### ####  #### #### #### #### #### #### #### ####
      #### #### #### #### #### #### #### ####  #### #### #### #### #### #### #### ####
      #### #### #### #### #### #### #### ####  #### #### #### #### #### #### #### ####
      #### #### #### #### #### #### #### ####  #### #### #### #### #### #### #### ####

---

    Code
      ansi_palette_show(colors = truecolor)
    Output
                                                           bright variants
      blck red  grn  yllw blue mgnt cyan whte  blck red  grn  yllw blue mgnt cyan whte
      
      #### #### #### #### #### #### #### ####  #### #### #### #### #### #### #### ####
      #### #### #### #### #### #### #### ####  #### #### #### #### #### #### #### ####
      #### #### #### #### #### #### #### ####  #### #### #### #### #### #### #### ####
      #### #### #### #### #### #### #### ####  #### #### #### #### #### #### #### ####

# error

    Code
      withr::with_options(list(cli.palette = "foobar12"), ansi_palette_show(colors = 256))
    Condition
      Error:
      ! Cannot find cli ANSI palette "foobar12"
      i Know palettes are "dichro", "vga", "winxp", "vscode", "win10", "macos", "putty", "mirc", "xterm", "ubuntu", "eclipse", "iterm", "iterm-pastel", "iterm-smoooooth", "iterm-snazzy", "iterm-solarized", and "iterm-tango".
      i Maybe the `cli.palette` option is incorrect?

# custom palettes

    Code
      col_black("black")
    Output
      <cli_ansi_string>
      [1] black
    Code
      col_red("red")
    Output
      <cli_ansi_string>
      [1] red
    Code
      col_green("green")
    Output
      <cli_ansi_string>
      [1] green
    Code
      col_yellow("yellow")
    Output
      <cli_ansi_string>
      [1] yellow
    Code
      col_blue("blue")
    Output
      <cli_ansi_string>
      [1] blue
    Code
      col_magenta("magenta")
    Output
      <cli_ansi_string>
      [1] magenta
    Code
      col_cyan("cyan")
    Output
      <cli_ansi_string>
      [1] cyan
    Code
      col_white("white")
    Output
      <cli_ansi_string>
      [1] white
    Code
      col_br_black("br_black")
    Output
      <cli_ansi_string>
      [1] br_black
    Code
      col_br_red("br_red")
    Output
      <cli_ansi_string>
      [1] br_red
    Code
      col_br_green("br_green")
    Output
      <cli_ansi_string>
      [1] br_green
    Code
      col_br_yellow("br_yellow")
    Output
      <cli_ansi_string>
      [1] br_yellow
    Code
      col_br_blue("br_blue")
    Output
      <cli_ansi_string>
      [1] br_blue
    Code
      col_br_magenta("br_magenta")
    Output
      <cli_ansi_string>
      [1] br_magenta
    Code
      col_br_cyan("br_cyan")
    Output
      <cli_ansi_string>
      [1] br_cyan
    Code
      col_br_white("br_white")
    Output
      <cli_ansi_string>
      [1] br_white

Generated by dwww version 1.15 on Sat May 18 07:30:46 CEST 2024.