0 weeks ago
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 ‘[email protected]’ with no working directory shown. This is similar to exporting PS1=”\[email protected]\h:$ ” in sh(1), setting prompt=”%[email protected]%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 [email protected] 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....
Sorry, pal! The plugin couldn’t pass all our tests. No hard feelings, right?
This section is not meant to be comprehensive.
Why don’t you compare the plugin side by
side with another plugin”