Add preliminary support for completion to terminal