On some setups (e.g. Debian + Minicom), commands are not recognized at all. Changing the variable "term" to '\r' fixes this issue.