fix a bug can't send cmd by enter.
Signed-off-by: crzidea <micro-tech@foxmail.com>