{"componentChunkName":"component---src-templates-blog-post-js","path":"/blog/clear-terminal-screen-in-postgresql/","result":{"data":{"site":{"siteMetadata":{"title":"Danijel Grabež | Web Development & Product Design","author":"Danijel Grabež"}},"mdx":{"id":"8fda45c4-73e2-5513-a427-51f0b5560db5","excerpt":"Clear terminal screen in interactive psql terminal from the shell.","body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Clear the Terminal Screen in PosgresSQL\",\n  \"date\": \"2020-07-20\",\n  \"excerpt\": \"Clear terminal screen in interactive psql terminal from the shell.\",\n  \"metaDescription\": \"Clear terminal screen in interactive psql terminal from the shell.\",\n  \"blogThemeConfig\": {\n    \"color\": \"text\",\n    \"background\": \"#fff\"\n  },\n  \"tags\": [\"til\", \"code\"]\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"The psql interactive terminal does not have a built-in way of clearing the screen. If use \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"!\"), \" command we can execute a shell command for clearing a terminal screen.\"), mdx(\"pre\", {\n    \"className\": \"shiki\",\n    \"style\": {\n      \"backgroundColor\": \"#ffffff\"\n    }\n  }, mdx(\"code\", {\n    parentName: \"pre\"\n  }, mdx(\"span\", _extends({\n    parentName: \"code\"\n  }, {\n    \"style\": {\n      \"color\": \"#24292EFF\"\n    }\n  }), \"\\\\! clear;\"))), mdx(\"p\", null, \"There is also a way to clear a screen with a keyboard shortcut on Mac with \", mdx(\"kbd\", null, \"ctrl\"), \" + \", mdx(\"kbd\", null, \"L\"), \" command.\"));\n}\n;\nMDXContent.isMDXComponent = true;","frontmatter":{"title":"Clear the Terminal Screen in PosgresSQL","inlineSubtitle":null,"date":"July 20, 2020","postKind":null,"withIntroImage":null,"image":null,"tags":["til","code"],"metaDescription":"Clear terminal screen in interactive psql terminal from the shell.","blogThemeConfig":{"color":"text","background":"#fff"}}}},"pageContext":{"slug":"/clear-terminal-screen-in-postgresql/","previous":{"fields":{"slug":"/gentrification-is-the-new-old/"},"frontmatter":{"title":"Gentrification is the new old"}},"next":{"fields":{"slug":"/heypolls-history-backup-and-restore/"},"frontmatter":{"title":"Hey, Polls!"}}}},"staticQueryHashes":["3565989796","3565989796","461889769","461889769"]}