syslinux: import a part of the curses backend