2 | > withr::with_options(list(cli.num_colors = cli::truecolor), cli::ansi_palette_show("dichro",
3 | + colors = cli::truecolor))
4 | bright variants
5 | blck red grn yllw blue mgnt cyan whte blck red grn yllw blue mgnt cyan whte
6 |
7 | #### #### #### #### #### #### #### #### #### #### #### #### #### #### #### ####
8 | #### #### #### #### #### #### #### #### #### #### #### #### #### #### #### ####
9 | #### #### #### #### #### #### #### #### #### #### #### #### #### #### #### ####
10 | #### #### #### #### #### #### #### #### #### #### #### #### #### #### #### ####
11 |
12 |
--------------------------------------------------------------------------------
/tests/testthat/_snaps/asciicast.md:
--------------------------------------------------------------------------------
1 | # record
2 |
3 | Code
4 | cast$output$data
5 | Output
6 | [1] "type: prompt" "> "
7 | [3] "print(\"Hello world!\")\r\n" "type: input"
8 | [5] "print(\"Hello world!\")\r\n" "busy: 1"
9 | [7] "type: stdout" "[1]"
10 | [9] "type: stdout" " \"Hello world!\""
11 | [11] "type: stdout" "\r\n"
12 | [13] "busy: 0" "type: read"
13 | [15] "type: wait" ""
14 |
15 | # env vars in header
16 |
17 | Code
18 | cast$output$data
19 | Output
20 | [1] "Sys.getenv('FOO')\r\n"
21 | [2] "busy: 1"
22 | [3] "type: stdout"
23 | [4] "[1]"
24 | [5] "type: stdout"
25 | [6] " \"bar\""
26 | [7] "type: stdout"
27 | [8] "\r\n"
28 | [9] "busy: 0"
29 | [10] "type: read"
30 | [11] "Sys.getenv('SHELL', NA_character_)\r\n"
31 | [12] "busy: 1"
32 | [13] "type: stdout"
33 | [14] "[1]"
34 | [15] "type: stdout"
35 | [16] " NA"
36 | [17] "type: stdout"
37 | [18] "\r\n"
38 | [19] "busy: 0"
39 | [20] "type: read"
40 | [21] "type: wait"
41 | [22] ""
42 |
43 | # startup option
44 |
45 | Code
46 | cast$output$data
47 | Output
48 | [1] "foo\r\n" "busy: 1" "type: stdout" "[1]" "type: stdout"
49 | [6] " 112" "type: stdout" "\r\n" "busy: 0" "type: read"
50 | [11] "type: wait" ""
51 |
52 | # startup in header
53 |
54 | Code
55 | cast$output$data
56 | Output
57 | [1] "foo\r\n" "busy: 1" "type: stdout" "[1]" "type: stdout"
58 | [6] " 112" "type: stdout" "\r\n" "busy: 0" "type: read"
59 | [11] "type: wait" ""
60 |
61 | # print.asciicast
62 |
63 | Code
64 | cast
65 | Output
66 |