]> _ Git - watchdiff.git/summary
 
descriptionPeriodically execute a command and highlight changes
last changeTue, 14 Jan 2025 17:09:06 +0000 (17:09 +0000)
readme

watchdiff

Alternative to watch with visual indication of what was added or removed every time a command was run.

Executes a program periodically and displays the output with colors indicating changes as a diff. Additions are marked in green, and deletions in red. Colors will fade after consecutive executions with the same output.

Similar to watch -d, but also displays the output that was overwritten.

Demo

Demo GIF of watchdiff with cat and ps

Building and installing

make
make install

Help

Usage:
  watchdiff [options] -- <command>

Options:
  -n <seconds>  Time between updates in seconds
  -t            Turn off header with interval and command at top
  -h            Show this help text

Uses termbox2 and diff-match-patch-c

shortlog
2025-01-14 mivirlupdate README.md master
2025-01-14 mivirlAdd demo GIF
2025-01-14 mivirlApply patch from udif to diff-match-patch-c
2025-01-14 mivirlCombine print statements
2024-06-11 mivirlInitial commit
heads
5 months ago master