convertThemeToText = (themeObj = {}, withName = false) => {
  const theme = themeObj || {}
  const { themeConfig = {}, name, uiThemeConfig = {} } = theme
  const begin = withName
    ? `themeName=${name}\n`
    : ''
  const res = Object.keys(uiThemeConfig).reduce((prev, key) => {
    return prev +
      (prev ? '\n' : '') +
      key + '=' + uiThemeConfig[key]
  }, begin)
  return Object.keys(themeConfig).reduce((prev, key) => {
    return prev +
      (prev ? '\n' : '') + terminalPrefix +
      key + '=' + themeConfig[key]
  }, res)
}
convert theme object to themeText
@param {object} themeObj
@param {boolean} withName
@return {string}