{"id":49520,"date":"2016-07-06T02:28:48","date_gmt":"2016-07-06T02:28:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/post-terminal\/"},"modified":"2016-07-06T02:51:29","modified_gmt":"2016-07-06T02:51:29","slug":"post-terminal","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/post-terminal\/","author":15037659,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"0.1","tested":"4.5.33","requires":"2.0","requires_php":"","requires_plugins":"","header_name":"Post Terminal","header_author":"Brandon Griffith","header_description":"","assets_banners_color":"","last_updated":"2016-07-06 02:51:29","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/logyx.net","header_plugin_uri":"http:\/\/logyx.net\/post-terminal-for-wordpress","header_author_uri":"http:\/\/logyx.net","rating":0,"author_block_rating":0,"active_installs":20,"downloads":1974,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.1":"<ul>\n<li>New release.<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1449692","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1449692","resolution":"256x256","location":"assets"}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1449686","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1449686","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1449686","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1449686","resolution":"4","location":"assets"}},"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"}},"plugin_section":[],"plugin_tags":[39102,3916,66909,24901,74238],"plugin_category":[],"plugin_contributors":[93111],"plugin_business_model":[],"class_list":["post-49520","plugin","type-plugin","status-closed","hentry","plugin_tags-cmd","plugin_tags-console","plugin_tags-terminal","plugin_tags-unix","plugin_tags-xterm","plugin_contributors-bgriffith","plugin_committers-bgriffith"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/post-terminal.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/post-terminal\/assets\/screenshot-1.png?rev=1449686","caption":"Basic display with no configuration."},{"src":"https:\/\/ps.w.org\/post-terminal\/assets\/screenshot-2.png?rev=1449686","caption":"Basic display with <code>user<\/code> and <code>computer<\/code> configuration."},{"src":"https:\/\/ps.w.org\/post-terminal\/assets\/screenshot-3.png?rev=1449686","caption":"Basic display with <code>user<\/code> and <code>computer<\/code> and <code>cwd<\/code>configuration."},{"src":"https:\/\/ps.w.org\/post-terminal\/assets\/screenshot-4.png?rev=1449686","caption":"A more thorough example showing demonstrative purposes"}],"raw_content":"<!--section=description-->\n<p>Post 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 WP-Terminal which in turn is a modification of WP-Syntax, a source code highlighter plugin for Wordpress.<\/p>\n\n<h4>Basic Usage<\/h4>\n\n<p>The most basic usage is to wrap your terminal blocks with <code>&lt;pre id=\"terminal\"&gt;&lt;\/pre&gt;<\/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'.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>Wrap terminal blocks with <code>&lt;pre id=\"terminal\" user=\"username\"\ncomputer=\"computername\" cwd=\"\/path\/to\/directory\"&gt;<\/code> and <code>&lt;\/pre&gt;<\/code>, being user and\ncomputer optional (\"user\" and \"computer\" will be shown if you don't provide\nthem, cwd is purely optional).<\/p>\n\n<p><strong>Example 1: No customized command<\/strong><\/p>\n\n<pre><code>&lt;pre id=\"terminal\"&gt;\n  ls -a\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p><strong>Example 2: User and computer customizations<\/strong><\/p>\n\n<pre><code>&lt;pre id=\"terminal\" user=\"beastie\" computer=\"freebsd\"&gt;\n  ls -a\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p><strong>Example 3: Customizing just the user<\/strong><\/p>\n\n<pre><code>&lt;pre id=\"terminal\" user=\"bdobbs\"&gt;\n  ls -a\n&lt;\/pre&gt;\n<\/code><\/pre>\n\n<p><strong>Example 5: Customizing user, computer and displaying a working directory<\/strong><\/p>\n\n<pre><code>&lt;pre id=\"terminal\" user=\"root\" computer=\"linuxserver\" cwd=\"\/usr\/src\/linux\"&gt;\n  make mrproper\n  . ..\n  . .. \n&lt;\/pre&gt;\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>Does this plugin really replace the WP-Terminal plugin<\/dt>\n<dd><p>Yes, Post Terminal is 100% compatible and even adds new features, with more to come.\nYou can even use your customized style.css from the previous plugin.<\/p><\/dd>\n<dt>What is the best way to ask questions or submit patches?<\/dt>\n<dd><p>The best way to reach me is always via email: <a href=\"mailto:&#098;&#x72;&#097;&#x6e;d&#111;&#x6e;&#064;&#x6c;&#111;&#x67;&#x79;&#120;&#x2e;&#110;&#x65;t\">&#098;&#x72;&#097;&#x6e;d&#111;&#x6e;&#064;&#x6c;&#111;&#x67;&#x79;&#120;&#x2e;&#110;&#x65;t<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Post Terminal provides a terminal-like box for embedding terminal commands within pages or posts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/49520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=49520"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bgriffith"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=49520"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=49520"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=49520"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=49520"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=49520"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=49520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}