{"id":76115,"date":"2017-10-17T09:45:16","date_gmt":"2017-10-17T09:45:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/blog-terminal\/"},"modified":"2021-08-11T14:47:39","modified_gmt":"2021-08-11T14:47:39","slug":"blog-terminal","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/blog-terminal\/","author":15721428,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2.1","stable_tag":"0.2.1","tested":"5.8.13","requires":"2.5","requires_php":"5.4","requires_plugins":"","header_name":"Blog Terminal","header_author":"Radek Sprta","header_description":"Blog Terminal generates a box around your text to give it the appearance of a terminal such as xterm or cmd. Create terminal with <code>[terminal][\/terminal]<\/code>.","assets_banners_color":"","last_updated":"2021-08-11 14:47:39","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/radeksprta.eu","header_plugin_uri":"https:\/\/radeksprta.eu\/projects\/terminal","header_author_uri":"https:\/\/radeksprta.eu","rating":0,"author_block_rating":0,"active_installs":100,"downloads":4002,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1":{"tag":"0.1","author":"rsprta","date":"2017-10-17 11:48:24"},"0.1.1":{"tag":"0.1.1","author":"rsprta","date":"2017-12-07 12:59:24"},"0.1.2":{"tag":"0.1.2","author":"rsprta","date":"2018-03-24 10:34:21"},"0.2":{"tag":"0.2","author":"rsprta","date":"2018-03-24 10:34:21"},"0.2.1":{"tag":"0.2.1","author":"rsprta","date":"2021-08-11 14:47:39"}},"upgrade_notice":{"0.2.1":"<ul>\n<li>Add missing style file<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1747880,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1747880,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.1.1","0.1.2","0.2","0.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1747849,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1747849,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1747849,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":1747849,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Basic display with no configuration.","2":"Basic display with <code>user<\/code> and <code>computer<\/code> configuration.","3":"Basic display with <code>user<\/code> and <code>computer<\/code> and <code>cwd<\/code>configuration.","4":"A more thorough example showing demonstrative purposes"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[39102,3916,66909,24901,74238],"plugin_category":[],"plugin_contributors":[147840],"plugin_business_model":[],"class_list":["post-76115","plugin","type-plugin","status-publish","hentry","plugin_tags-cmd","plugin_tags-console","plugin_tags-terminal","plugin_tags-unix","plugin_tags-xterm","plugin_contributors-rsprta","plugin_committers-rsprta"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/blog-terminal\/assets\/icon-128x128.png?rev=1747880","icon_2x":"https:\/\/ps.w.org\/blog-terminal\/assets\/icon-256x256.png?rev=1747880","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/blog-terminal\/assets\/screenshot-1.png?rev=1747849","caption":"Basic display with no configuration."},{"src":"https:\/\/ps.w.org\/blog-terminal\/assets\/screenshot-2.png?rev=1747849","caption":"Basic display with <code>user<\/code> and <code>computer<\/code> configuration."},{"src":"https:\/\/ps.w.org\/blog-terminal\/assets\/screenshot-3.png?rev=1747849","caption":"Basic display with <code>user<\/code> and <code>computer<\/code> and <code>cwd<\/code>configuration."},{"src":"https:\/\/ps.w.org\/blog-terminal\/assets\/screenshot-4.png?rev=1747849","caption":"A more thorough example showing demonstrative purposes"}],"raw_content":"<!--section=description-->\n<p>Blog Terminal generates a terminal-like box that you can use to demonstrate terminal output or show the entry of terminal\/console commands in a manner that is more demonstrative of actually using a Linux\/Unix terminal or Windows cmd shell.<\/p>\n\n<p>The code is a fork of Post Terminal, which is a fork of WP-Terminal which in turn is a modification of WP-Syntax, a source code highlighter plugin for Wordpress.<\/p>\n\n<p>Unlike Post terminal, it uses <code>[terminal]<\/code> shorthand for the terminal box. It also shows prompt only on lines explitly set to do that.<\/p>\n\n<h4>Basic Usage<\/h4>\n\n<p>The most basic usage is to wrap your terminal blocks with <code>[terminal][\/terminal]<\/code> tags. If no further options are defined within the tag a generic prompt is generated using  'user@computer' with no working directory shown. This is similar to exporting PS1=\"\\u@\\h:$ \" in sh(1), setting prompt=\"%n@%m:$ \" in csh(1), etc.\nOther options available within the tag are user=\"user\", computer=\"computer\", and  cwd=\"\/path\/to\/directory\". These allow you to override the generic user@computer settings as well as provide a 'current working directory'.\nThe prompt is only shown on the lines starting with '$ '. So you can mix commands with simulated terminal output.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>Wrap terminal blocks with <code>[terminal user=\"username\" computer=\"computername\" cwd=\"\/path\/to\/directory\"]<\/code> and <code>[\\terminal]<\/code>. They are all optional. \"user\" and \"computer\" will be shown if you don't provide them, cwd is purely optional.<\/p>\n\n<p><strong>Example 1: No customized command<\/strong><\/p>\n\n<pre><code>[terminal]\n$ ls -a\n[\/terminal]\n<\/code><\/pre>\n\n<p><strong>Example 2: User and computer customizations<\/strong><\/p>\n\n<pre><code>[terminal user=\"tux\" computer=\"linux\"]\n$ ls -a\n[\/terminal]\n<\/code><\/pre>\n\n<p><strong>Example 3: Customizing just the user<\/strong><\/p>\n\n<pre><code>[terminal user=\"dak\"]\n$ ls -a\n[\/terminal]\n<\/code><\/pre>\n\n<p><strong>Example 4: Customizing user, computer and displaying a working directory<\/strong><\/p>\n\n<pre><code>[terminal user=\"root\" computer=\"linuxserver\" cwd=\"\/usr\/src\/linux\"]\n$ make mrproper\n ...\n ... \n[\/terminal]\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Unzip the plugin .zip file and upload the directory to your \/wp-content\/plugins\/.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Create a post\/page that contains a code snippet following the proper usage syntax.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20is%20the%20best%20way%20to%20ask%20questions%20or%20submit%20patches%3F'><h3>What is the best way to ask questions or submit patches?<\/h3><\/dt>\n<dd><p>The best way to reach me is always via email: <a href=\"mailto:&#x6d;&#x61;&#105;&#108;&#x40;&#114;&#097;&#x64;&#101;&#107;&#x73;p&#114;&#x74;a&#046;&#x65;&#x75;\">&#x6d;&#x61;&#105;&#108;&#x40;&#114;&#097;&#x64;&#101;&#107;&#x73;p&#114;&#x74;a&#046;&#x65;&#x75;<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Add missing style file<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Make compatible with PHP 7<\/li>\n<\/ul>\n\n<h4>0.1.2<\/h4>\n\n<ul>\n<li>Preserve terminal indentation<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Wrap long lines<\/li>\n<li>Wrap terminal in code tags<\/li>\n<li>Adhere to the latest Wordpress coding standards<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Blog Terminal provides a terminal-like box for embedding terminal commands within pages or posts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/76115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=76115"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rsprta"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=76115"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=76115"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=76115"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=76115"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=76115"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=76115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}