instead of a max number of iterations, record terms that have been seen
authorespie <espie@openbsd.org>
Mon, 6 Nov 2023 08:08:49 +0000 (08:08 +0000)
committerespie <espie@openbsd.org>
Mon, 6 Nov 2023 08:08:49 +0000 (08:08 +0000)
commit23376045ed92704370b7815bd080ec3acdd80b86
tree075e109c03fbfd2bc92957771c96c410f8b982f9
parent2da37aacf31d776ee5d9d7a7a46d6594c2ef195d
instead of a max number of iterations, record terms that have been seen
in a hash instead.
Side effect: we no longer parse the same tc again and again, leading
to a smaller result with the same capabilities but no duplicates.
(instead of parsing 36 entries for xterm, we end up with 10 entries, as
the "tc=" stuff is actually a tree instead of a list: xterm references
several intermediate tc that all lead to the same basic list !)
gnu/usr.bin/perl/cpan/Term-Cap/Cap.pm