Skip to main content

Module term

Module term 

Source

Re-exportsΒ§

use std::cell::Cell; πŸ”’
use std::io; πŸ”’
use std::io::Write; πŸ”’
use anstyle::AnsiColor; πŸ”’
use anstyle::Effects; πŸ”’
use anstyle::Style; πŸ”’
use crate::markdown::MdStream; πŸ”’
use crate::markdown::MdTree; πŸ”’

ConstantsΒ§

CURSOR πŸ”’
Track the position of viewable characters in our buffer
DEFAULT_COLUMN_WIDTH πŸ”’
WIDTH πŸ”’
Width of the terminal

FunctionsΒ§

entrypoint πŸ”’
Print to the terminal output to a buffer optionally with a formatter for code blocks
render_opt_style πŸ”’
reset_cursor πŸ”’
End of that block, just wrap the line
reset_opt_style πŸ”’
write_stream πŸ”’
Write the buffer, reset to the default style after each, optionally with a formatter for code blocks
write_tt πŸ”’
write_wrapping πŸ”’
Change to be generic on Write for testing. If we have a link URL, we don’t count the extra tokens to make it clickable.