- if there is no LINEFEED at the end, the line won't be recognised
I think you terminal emulator sends CARRIAGE RETURN or CR+LF at the end of the line. Only LF or LF+CR will work. Configure you terminal emulator and/or press ^J instead of enter. Sometimes that helps.