TDCOMPARE(1)
π TDCOMPARE π
okay bestie, so you found a manual page from the termdebug family β this one's for tdcompare, and it's literally the "did my terminal program do the same thing twice?" detective tool. welcome, you're gonna slay this.
β¨ NAME β¨
tdcompare β compare two recordings of a terminal program. two files, one vibe check, no cap.
π SYNOPSIS π
tdcompare [OPTIONS]... OLD NEW
π DESCRIPTION π
so tdcompare takes two recordings of a terminal program and goes "are these actually the same output or are we lying to ourselves?" it can do that comparison in two whole ways: at the input/output level, or at the visual level. pick your fighter.
when you're comparing at the input/output level, any difference gets reported as line numbers in the OLD and NEW files. super literal, super precise, love that for us.
for visual comparisons? you get a whole glow-up. a textual description of the first difference can be produced, and a picture of the first different terminal state can be written out β but only if termdebug was compiled with Cairo support. so like, check your build first, queen.
the whole point of tdcompare is verifying that a new recording of the same program produced the same result. if you wanna do on-line verification instead, go use tdreplay(1). different tool, different energy. β¨
π OPTIONS π
tdcompare accepts the following options:
-h,--helpβ shows you a short help message. the little "hey bestie here's what I do" moment.-V,--versionβ prints version and copyright info. receipts, basically.-v,--visual-compareβ checks for visual equality instead of exact input/output behaviour. (requires a build with ncurses support, so no ncurses no vibes.)-D,--describeβ writes a description of the first visual difference it bumps into. only useful with-v/--visual-compare. (requires a build with ncurses support.)-pname,--picture=name β writes a picture of the difference to name. only useful with-v/--visual-compare. (requires a build with ncurses and Cairo support. both. yes, both.)-ffont,--font=font β uses font to show text in generated pictures. only useful with-p/--pictureor-P/--picture-series. (requires a build with ncurses and Cairo support.)-Wwidth,--cell-width=width β uses cells that are width pixels wide in generated pictures. only useful with-p/--pictureor-P/--picture-series. (requires a build with ncurses and Cairo support.)-Hheight,--cell-height=height β uses cells of height pixels wide in generated pictures. only useful with-p/--pictureor-P/--picture-series. (requires a build with ncurses and Cairo support.)-Pname,--picture-series=name β creates a series of pictures representing the different visual steps in the client interface, using name as the file name template. name is aprintf(3)format string, and a singled-type conversion is required. (requires a build with ncurses and Cairo support.)-s,--stop-on-differenceβ stops the second it finds the first visual difference. only valid with-P/--picture-series.
okay quick PSA: if a file name starts with a dash,tdcompareis gonna think it's an option, and that's a whole mess. so to stoptdcomparefrom interpreting file names that start with a dash as options, you can drop a double dash (--), and after thattdreplaywill interpret any following arguments as files to read. π«Ά
π BUGS π
found a bug? iconic of you honestly. but first β please check that you're running the latest version of termdebug over at <http://os.ghalkes.nl/termdebug>. and when you report it, please include a minimal example that demonstrates the problem, because a vague "it's broken" is not it, bestie. give us the receipts. π
π AUTHOR π
G.P. Halkes <termdebug@ghalkes.nl>
πΈ COPYRIGHT πΈ
Copyright Β© 2010,2012-2013 G.P. Halkes
termdebug is licensed under the GNU General Public License version 3. for more deets on the license, see the file COPYING in the documentation directory. on Un*x systems this is usually /usr/share/doc/termdebug.
π¦ SEE ALSO π¦
termdebug(1), tdrecord(1), tdrerecord(1), tdview(1), tdreplay(1)
and that's the whole page, periodt. this was version 2.2, dated 2013/03/03, straight out of the termdebug fam. go compare something. you got this. πβ¨π
π¦ where this page comes from
- debian bookworm: termdebug 2.2+dfsg-1+b4 Β· GPL-3.0-only
- debian trixie: termdebug 2.2+dfsg-2 Β· GPL-3.0-only
- ubuntu jammy: termdebug 2.2+dfsg-1build4 Β· GPL-3.0-only
- ubuntu noble: termdebug 2.2+dfsg-1build7 Β· GPL-3.0-only
- ubuntu questing: termdebug 2.2+dfsg-2
- ubuntu resolute: termdebug 2.2+dfsg-2build1 Β· GPL-3.0-only
- ubuntu stonking: termdebug 2.2+dfsg-2build1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms