Byobu looks very broken in PuTTY. I've already fixed the key mapping issue, but this issue isn't specified in the man page or even Google:
Notice the misplaced position of the list of windows, the broken selector position, the duplication of the last window, the random a in the top right, and the misplaced apply option. You can't see this, but the last option is not selectable.
Is there some option in PuTTY I need to use in order to see this correctly?
Configure putty to read utf8. putty -> config -> window -> translation choose utf in "Recieved data in ..." This is not a byobu issue, it is a putty issue.
See also:
Related to Putty, I added this note to the byobu(1) manpage a while back:
See:
Ubuntu uses UTF-8 for its terminal, but byobu appears to use the "ISO-8859-1 (Western European)" charset for it menus. You can set the charset in Window -> Translation.
I've found the following code on the Internet, and I'm still happy with it.
byobu
might have more options, but I like this as well (~/.screenrc
):Note: for byobu,
shelltitle "$ |bash"
must be removed / commented, otherwise byobu won't work.So for byobu to look good in putty you should actually make two changes.
First is change your keyboard to xterm-R6 as already mentioned, but second, on your linux machine run the command as your normal user:
byobu-select-backend
and then choose the optionscreen
(usually 2).Should work great now! Enjoy!
It worked for me (fit for Putty - temporary):
For a definitive solution in your application:
make sure you have:
sudo apt-get -install ncurses
sudo apt-get install libncursesw5-dev
Add in code:
#include <locale.h>
#include <ncurses.h>
//change curses-------------------------------------
//add in main setlocale(LC_TYPE, "");Compile the application with -lncursesw, something like this: