improve performance for command line

选择，自动滚动