lib: wrong escape codes loaded from terminfo