Post Terminal Wordpress Plugin - Rating, Reviews, Demo & Download

Post Terminal Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

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.

The code is a fork of WP-Terminal which in turn is a modification of WP-Syntax, a source code highlighter plugin for WordPress.

Basic Usage

The most basic usage is to wrap your terminal blocks with <pre id="terminal"></pre> 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.
Other 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’.

Usage

Wrap terminal blocks with <pre id="terminal" user="username"
computer="computername" cwd="/path/to/directory">
and </pre>, being user and
computer optional (“user” and “computer” will be shown if you don’t provide
them, cwd is purely optional).

Example 1: No customized command

<pre id="terminal">
  ls -a
</pre>

Example 2: User and computer customizations

<pre id="terminal" user="beastie" computer="freebsd">
  ls -a
</pre>

Example 3: Customizing just the user

<pre id="terminal" user="bdobbs">
  ls -a
</pre>

Example 5: Customizing user, computer and displaying a working directory

<pre id="terminal" user="root" computer="linuxserver" cwd="/usr/src/linux">
  make mrproper
  . ..
  . .. 
</pre>

Screenshots

  1. Basic display with no configuration.

    Basic display with no configuration.

  2. Basic display with <code>user</code> and <code>computer</code> configuration.

    Basic display with user and computer configuration.

  3. Basic display with <code>user</code> and <code>computer</code> and <code>cwd</code>configuration.

    Basic display with user and computer and cwdconfiguration.

  4. A more thorough example showing demonstrative purposes

    A more thorough example showing demonstrative purposes


Reviews & Comments