feat(terminal): add prompt-based command block splitting (#223)