txtinfo: put command parsing in the functions table