See https://github.com/hanslub42/rlwrap/issues/109 The latest rlwrap version (0.44) fixes this bug
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67fb2fca16663db9be8e3173c49999b7ef709828 commit 67fb2fca16663db9be8e3173c49999b7ef709828 Author: Andrey Grozin <grozin@gentoo.org> AuthorDate: 2021-11-12 10:56:59 +0000 Commit: Andrey Grozin <grozin@gentoo.org> CommitDate: 2021-11-12 10:56:59 +0000 app-misc/rlwrap: bump to 0.45.2 Closes: https://bugs.gentoo.org/766288 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Andrey Grozin <grozin@gentoo.org> app-misc/rlwrap/Manifest | 1 + app-misc/rlwrap/rlwrap-0.45.2.ebuild | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+)