with_termbox: Evaluate an expression in a temporary termbox

Description Usage Arguments

View source: R/boxr.R

Description

Evaluate an expression while keeping termbox open, being sure to close it down even on error.

Usage

1

Arguments

expr

An expression to evaluate. Don't call tb_init or tb_shutdown yourself as they'll be called within the with_termbox block. Don't forget to run tb_present or likely nothing will be shown.

try

Evaluate expr within a try block? This can help with debugging and error detection, which is generally tricky because stderrr is generally lost during this process.


richfitz/boxr documentation built on May 27, 2019, 8:16 a.m.