console: add a copy-paste implementation