Skip to content
/ redraw Public

intermediate results for aggregate pipe operations

License

Notifications You must be signed in to change notification settings

reegnz/redraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redraw

An interactive terminal tool to filter and redraw output continuously.

asciicast

I was frustrated with terminal commands like column, sort, wc not showing any output until they encounter an EOF. So I wrote redraw to run those commands on every new line and redraw the terminal output with terminal escape sequences.

With redraw you can provide a updates to terminal commands before the input reaches EOF, resulting in a more interactive experience.

Example usage:

You'd want to format output with column -t but the lines are arriving slowly. Instead of staring at a blank screen for minutes, you can appreciate the formatted output as the results are coming in.

Instead of this:

your_command | column -t

Write this:

your_command | redraw column -t

If your downstream pipeline consists of multiple piped commands:

Instead of this:

your_command | command_a | command_b | command_c

You could write this:

your_command | redraw bash -c 'command_a | command_b | command_c'

TODO: we could have a line editor script performing the back and forth conversion.

Shout outs