ui: fit output to screen
separate gdb library