Catch the termcap exception if there's a problem looking the terminal up.
authorespie <espie@openbsd.org>
Fri, 13 May 2022 15:39:14 +0000 (15:39 +0000)
committerespie <espie@openbsd.org>
Fri, 13 May 2022 15:39:14 +0000 (15:39 +0000)
commit4ae27b7a665afb758d0a5abf9cd8964e1bdc5c67
tree9ac1b7e0237e630ed05ca520e96495b9040df905
parent6cea90f62a7cf7cc9e535c7671ccd0ca1974f69f
Catch the termcap exception if there's a problem looking the terminal up.
It's just a progressmeter after all, there's no reason to error out instead
of simply devolving to "no progress meter".

(as noticed working with one of my students, Matthieu Fourre, whose
emulator or setup was somehow passing an "xterm-kitty" string)
usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm