rlwrap: error: My terminal reports width=0 (is it emacs?) I can't handle this, sorry!
Problem
When trying to use the signer-console command on a serial terminal, rlwrap can give this error due to the console's height and width not being defined.
Solution
The simplest solution is installing the resize command on the system and using it. On Ubuntu and RHEL systems this appears to be available as part of the xterm package. To resolve the issue, do the following:
Install
xtermusing the operating systems package manager, e.g.apt install xtermoryum install xtermRun the command
resizeRun the original
signer-consolecommand that was giving the error
The resize command will only affect the current terminal session. When the session is closed and opened again, the resize command also needs to be ran again.