Title: Blog Terminal
Author: rsprta
Published: <strong>17. listopada 2017.</strong>
Last modified: 11. kolovoza 2021.

---

Pretraga dodataka

Dodatak **nije testiran s zadnje 3 glavna izdanja WordPressa**. Možda ga se više
ne održava ili pruža podršku i možda ima probleme sa kompatibilnošću s novijim inačicama
WordPressa.

![](https://ps.w.org/blog-terminal/assets/icon-256x256.png?rev=1747880)

# Blog Terminal

 Od [rsprta](https://profiles.wordpress.org/rsprta/)

[Preuzmi](https://downloads.wordpress.org/plugin/blog-terminal.0.2.1.zip)

 * [Detalji](https://hr.wordpress.org/plugins/blog-terminal/#description)
 * [Recenzije](https://hr.wordpress.org/plugins/blog-terminal/#reviews)
 *  [Instalacija](https://hr.wordpress.org/plugins/blog-terminal/#installation)
 * [Razvoj](https://hr.wordpress.org/plugins/blog-terminal/#developers)

 [Podrška](https://wordpress.org/support/plugin/blog-terminal/)

## Opis

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.

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.

Unlike Post terminal, it uses `[terminal]` shorthand for the terminal box. It also
shows prompt only on lines explitly set to do that.

#### Basic Usage

The most basic usage is to wrap your terminal blocks with `[terminal][/terminal]`
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’. The prompt is only shown on the lines 
starting with ‘$ ‘. So you can mix commands with simulated terminal output.

### Usage

Wrap terminal blocks with `[terminal user="username" computer="computername" cwd
="/path/to/directory"]` and `[\terminal]`. They are all optional. “user” and “computer”
will be shown if you don’t provide them, cwd is purely optional.

**Example 1: No customized command**

    ```
    [terminal]
    $ ls -a
    [/terminal]
    ```

**Example 2: User and computer customizations**

    ```
    [terminal user="tux" computer="linux"]
    $ ls -a
    [/terminal]
    ```

**Example 3: Customizing just the user**

    ```
    [terminal user="dak"]
    $ ls -a
    [/terminal]
    ```

**Example 4: Customizing user, computer and displaying a working directory**

    ```
    [terminal user="root" computer="linuxserver" cwd="/usr/src/linux"]
    $ make mrproper
     ...
     ... 
    [/terminal]
    ```

## Snimke zaslona

 * [[
 * Basic display with no configuration.
 * [[
 * Basic display with `user` and `computer` configuration.
 * [[
 * Basic display with `user` and `computer` and `cwd`configuration.
 * [[
 * A more thorough example showing demonstrative purposes

## Instalacija

 1. Unzip the plugin .zip file and upload the directory to your /wp-content/plugins/.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Create a post/page that contains a code snippet following the proper usage syntax.

## ČPP

### What is the best way to ask questions or submit patches?

The best way to reach me is always via email: [mail@radeksprta.eu](https://hr.wordpress.org/plugins/blog-terminal/mail@radeksprta.eu?output_format=md)

## Recenzije

Nema recenzija za ovaj dodatak.

## Suradnici i Programeri

“Blog Terminal” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.

Suradnici

 *   [ rsprta ](https://profiles.wordpress.org/rsprta/)

[Prevedite “Blog Terminal” na svoj jezik.](https://translate.wordpress.org/projects/wp-plugins/blog-terminal)

### Zainteresirani ste za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/blog-terminal/), pogledajte
[SVN spremište](https://plugins.svn.wordpress.org/blog-terminal/)ili se pretplatite
na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/blog-terminal/) od [RSS](https://plugins.trac.wordpress.org/log/blog-terminal/?limit=100&mode=stop_on_copy&format=rss).

## Dnevnik promjena

#### 0.2.1

 * Add missing style file

#### 0.2.0

 * Make compatible with PHP 7

#### 0.1.2

 * Preserve terminal indentation

#### 0.1.1

 * Wrap long lines
 * Wrap terminal in code tags
 * Adhere to the latest WordPress coding standards

#### 0.1.0

 * Initial release

## Meta

 *  Version **0.2.1**
 *  Zadnje ažuriranje **prije 5 godina**
 *  Aktivnih instalacija **100+**
 *  WordPress inačica ** 2.5 ili viša **
 *  Testirano do **5.8.13**
 *  PHP inačica ** 5.4 ili viša **
 *  Language
 * [English (US)](https://wordpress.org/plugins/blog-terminal/)
 * Oznaka
 * [cmd](https://hr.wordpress.org/plugins/tags/cmd/)[console](https://hr.wordpress.org/plugins/tags/console/)
   [terminal](https://hr.wordpress.org/plugins/tags/terminal/)[unix](https://hr.wordpress.org/plugins/tags/unix/)
   [xterm](https://hr.wordpress.org/plugins/tags/xterm/)
 *  [Napredni pogled](https://hr.wordpress.org/plugins/blog-terminal/advanced/)

## Ocjena

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/blog-terminal/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/blog-terminal/reviews/)

## Suradnici

 *   [ rsprta ](https://profiles.wordpress.org/rsprta/)

## Podrška

Želite nešto reći? Potrebna vam je pomoć?

 [Pregledaj forum za podršku](https://wordpress.org/support/plugin/blog-terminal/)

## Doniraj

Želite li podržati napredak ovog dodatka?

 [ Donirajte ovom dodatku ](http://radeksprta.eu)