clear_screen {asciicast}R Documentation

Merge multiple ASCII casts into one

Description

The new cast will inherit its options (screen size, etc.) from the first cast in the argument list. The options of the rest of the casts are ignored.

Usage

clear_screen()

pause(secs)

merge_casts(...)

Arguments

secs

Number of seconds to wait.

...

Ascii casts to merge or merge commands. Merge commands provide a way to insert pause, clear the screen, etc., between casts.

Details

pause() inserts a pause of the specified seconds between the casts.

clear_screen() clears the screen between two casts.

Value

An asciicast object.

Examples


# merge two casts, with a pause, and clear screen between them
cast1 <- read_cast(system.file("examples", "hello.cast", package = "asciicast"))
cast2 <- read_cast(system.file("examples", "dplyr.cast", package = "asciicast"))
cast <- merge_casts(cast1, pause(3), clear_screen(), cast2)
play(cast)


[Package asciicast version 1.0.0 Index]