Improve my-select and select-output-line...

Signed-off-by: Bao Haojun <baohaojun@gmail.com>