| patch_to_ansi | R Documentation |
Each run becomes a cursor movement followed by the run's characters. An SGR (style) sequence is emitted only when the style differs from the previous cell. The output always ends with a style reset.
patch_to_ansi(patch, color_mode = "truecolor")
patch |
A patch from |
color_mode |
One of |
A single string.
a <- screen_buffer(10, 1)
b <- a$copy()
b$put_text(1, 1, "hi", fg = "red")
patch_to_ansi(diff_screen(a, b))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.