TXT records can easily contain non-printable ASCII characters, but also non-ASCII characters (eighth bit set), and those can mess the terminal up. Other records with TXT like content can give the same problem. And even domain names can contain unwanted characters.
zonemaster-cli should check all strings and domain names fetched from the network before printing out. Non-printable ASCII characters and non-ASCII characters should be escaped or replaced.
One escaping option is to use same mechanism as Bind. ESC character is printed as \027 (decimal representation, always three digits).
TXT records can easily contain non-printable ASCII characters, but also non-ASCII characters (eighth bit set), and those can mess the terminal up. Other records with TXT like content can give the same problem. And even domain names can contain unwanted characters.
zonemaster-clishould check all strings and domain names fetched from the network before printing out. Non-printable ASCII characters and non-ASCII characters should be escaped or replaced.One escaping option is to use same mechanism as Bind. ESC character is printed as
\027(decimal representation, always three digits).