framework: console: refine the enter processor