it works thanks to wardi_ from urwid irc