     if (ch == COMMAND_END_CHAR)   // if end of command, execute it
     {
       CommandBuffer[CommandIndex] = '\0';
-      Serial.printf(F("%s\n"), do_external_cmd(CommandBuffer, CommandIndex-1));
+      Serial.printf(F("%s;\n"), do_external_cmd(CommandBuffer, CommandIndex-1));
       CommandIndex = 0;
     }
   }

    dds_online();
  }

  // clear row 1 and write new mode string
  lcd.setCursor(0, 1);
  lcd.write(BlankRow);
  lcd.setCursor(0, 1);
  lcd.write(mode2display(VfoMode));
// FIXME: if we display something else on bottom row change this code!
}

//----------------------------------------

}

//----------------------------------------
// Function to convert an unsigned long into a string.
//     buf      address of buffer for byte results
//     bufsize  the size of the buffer
//     value    the unsigned long value to convert to a string
// The buffer 'buf' is assumed long enough and is '\0' terminated.
// Return address of first char in the string.
//----------------------------------------

char * ulong2str(char *buf, int bufsize, ULONG value)
{
  char *ptr = buf + bufsize - 1;    // rightmost char in 'buf'

  while (value)
  {
    int rem = value % 10;

    value = value / 10;
    *ptr-- = rem + '0';
  }

  return ++ptr;
}

//----------------------------------------
// Function to convert an array of byte digit values into an unsigned long.
//     buf  address of buffer of byte digits, terminated with '\n'
// Returns the unsigned long value.
//----------------------------------------

ULONG buff2ulong(char *buf)
{
  ULONG result = 0;
  
  while (*buf)
  {
    result *= 10;
    result += *buf;
    ++buf;
  }

  return result;
}

//----------------------------------------
// Function to convert a string into an unsigned long.
//     str  start of string of digits, terminated with '\0'
// Returns the unsigned long value.
//----------------------------------------

ULONG str2ulong(char *str)
{
  ULONG result = 0;
  
  while (*str)
  {
    result *= 10;
    result += *str - '0';
    ++str;
  }

  return result;
}

//----------------------------------------
// Convert a numeric mode to a display string.
//----------------------------------------

