[ENH] Proto: add support for custom terminals