/
rlwrap: error: My terminal reports width=0 (is it emacs?) I can't handle this, sorry!

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:

  1. Install xterm using the operating systems package manager, e.g. apt install xterm or yum install xterm

  2. Run the command resize

  3. Run the original signer-console command 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.

 Related articles

Related content