dirTerminalType: add on-completion callback