Adds console support.

Signed-off-by: wuxin <82828068@qq.com>