fix shell response display problem when command is too long