Skip to content

A streaming table formatter for the console, in Rust

Notifications You must be signed in to change notification settings

NfNitLoop/tablestream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TableStream

Stream data to the terminal and display it in ASCII tables.

TableStream will initially buffer some rows and use them to automatically determine appropriate widths for columns. It will try to automatically detect the current terminal's width and fit the rows into that width.

After that, it clears the buffer and just streams data directly to your output. (An io::Write)

See the API Docs for code examples. Install from crates.io.

Exmaple GIF

Current Limitations

  • Doesn't handle right-to-left text. (Have tips on doing this in a terminal!?)
  • Emoji aren't handled.
  • Bengali seems to not render properly in Widnows terminal, so that's not supported. (Though maybe it'll work for you elsewhere?)

Future Features?

  • Could add options for colors.

About

A streaming table formatter for the console, in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages