monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
8.98k stars 3.11k forks source link

monero-wallet-cli broken cli output #8494

Open ghost opened 2 years ago

ghost commented 2 years ago

When I launch the monero cli application, the output is offset in weird ways, like badly formated. Backspace doesnt work either.

                                [wallet 45mRvR]:     e h help
[wallet 45mRvR]:                             
Important commands:

"welcome" - Show welcome message.
"help all" - Show the list of all available commands.
"help <command>" - Show a command's documentation.
"apropos <keyword>" - Show commands related to a keyword.

"wallet_info" - Show wallet main address and other info.
"balance" - Show balance.
"address all" - Show all addresses.
"address new" - Create new subaddress.
"transfer <address> <amount>" - Send XMR to an address.
"show_transfers [in|out|pending|failed|pool]" - Show transactions.
"sweep_all <address>" - Send whole balance to another wallet.
"seed" - Show secret 25 words that can be used to recover this wallet.
"refresh" - Synchronize wallet with the Monero network.
"status" - Check current status of wallet.
"version" - Check software version.
"exit" - Exit wallet.

"donate <amount>" - Donate XMR to the development team.

                                [wallet 45mRvR (out of sync)]: [wallet 45mRvR (out of sync)]: 
[wallet 45mRvR (out of sync)]:                                               [wallet 45mRvR (out of sync)]:     help      
[wallet 45mRvR (out of sync)]:                                               [wallet 45mRvR (out of sync)]:     help    
[wallet 45mRvR (out of sync)]:                                           Error: Unknown command 'he', try 'help'
                                              [wallet 45mRvR (out of sync)]:     

Version: Monero 'Fluorine Fermi' (v0.18.0.0-release)

If you need any more info let me know.

selsta commented 2 years ago

Which OS? How did you install it (package manager / website / self compiled)?

ghost commented 2 years ago

@selsta Downloaded the offical 64bit binary package for linux

selsta commented 2 years ago

Are you using tmux / screen? What is your $TERM set to? See also https://github.com/monero-project/monero/issues/6713

ghost commented 2 years ago

TERM=rxvt-unicode-256color

I wasnt using tmux when creating this issue

ghost commented 2 years ago

@selsta Thanks, running with TERM=xterm ./monero-wallet-cli did the trick. Although I think you guys should at least mark this somewhere in your repo as a bug or something cause this really is just a workaround. I wonder why this works though, what library is monero-cli using?

selsta commented 2 years ago

We simply don't have fallback entries for it: https://github.com/monero-project/monero/blob/master/contrib/depends/patches/ncurses/fallback.c#L11

selsta commented 2 years ago

Is rxvt-unicode-256color frequently used?

ghost commented 2 years ago

@selsta Not sure if frequently, but it is used by rxvt-unicode a very popular alternative to xterm.