Modify a defect that a newline character is sent twice during command input