disable raw mode
disable raw mode on stdin (no external dependencies)
divider
prints a divider as per max width
divider_text
prints a divider with the provided text
e.g. divider_text("hello world")
prints: (assuming max width is 65)
───────────────────────── hello world ─────────────────────────
text is centered and divider is on both sides with 1 char space on each side
divider_text_left
prints a divider with the provided text left aligned
e.g. divider_text_left("hello world")
prints: (assuming max width is 65)
─ hello world ─────────────────────────────────────────────────
left aligned text with minimal divider on left and remaining on right
divider on left has 1 char and 1 space and remaining on right is 65 - text.len() - 2
characters
divider_text_right
prints a divider with the provided text right aligned
e.g. divider_text_right("hello world")
prints: (assuming max width is 65)
───────────────────────────────────────────────── hello world ─
right aligned text with minimal divider on right and remaining on left
divider on right has 1 char and 1 space and remaining on left is 65 - text.len() - 2
characters
enable raw mode
enable raw mode on stdin (no external dependencies)
get_max_width
set_max_width