Skip to content

Commit

Permalink
Temporary simple pager for help output
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Jul 24, 2024
1 parent 26ac724 commit 7e1a141
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _extensions/drop/drop-runtime.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions drop-runtime/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export function startWebRApp(elem: HTMLDivElement, packages: string[] = []) {
height = getOption("webr.fig.height", 504)
)
webr::shim_install()
options(pager = function(files, ...) {
writeLines(gsub(".[\b]", "", readLines(files)))
})
`);

// Install packages
Expand Down

0 comments on commit 7e1a141

Please sign in to comment.