txtinfo: move a function