Add text.console
Allow with-terminal-mode to take optional cleanup procedure
Add sample of text.console