introduce boxinfo callback in ui definition. implement it in readline version