This is a simple plugin to show everybody how you use a terminal. Show us how you type commands and how they produce a response, the same way you do it in a computer. This is very useful if you write tutorials where someone has to write console commands, this is for you. Just show that in a proper and colorful way and make everybody understand how you do it, in your work, also you can understand how to create 1099 MISC form that is important in companies as well.
Let’s see an example:
That’s it you just enter a shortcode and it makes the magic.
- Basic usage
- How to install
I decided to make a first serious and published WordPress plugin-
It can show a terminal window on your blog with some cool features:
- You can enter data in an easy way without having to enter HTML codes or something complex, just your input and output
- It fixes some WordPress characters like double or triple dash and HTML spaces to make your terminal look right
- You can choose the window title and the window theme
- There are several speeds selected automatically (by the context) and configurable:
- typing speed: that’s the delay between letters in commands and user input
- normal delay: Delay between lines
- response delay: Delay between response lines. The response of a command usually appears at the same time or a very small delay
- last line delay: Animation replays, so there’s a high delay in the end allowing your visitors to take notes.
- You can customize line colors, delays and typing speed for every line
- No complications, simple to write simulations.
- Configuration languages: English, Spanish
Three basic rules:
- Commands are prepended by $ or # (by default, it’s configurable)
- User input is prepended by > (also configurable)
- Lines not starting with $, # or > are treated like program output.
$ this is a command
Please enter your name:
> John Doe
Hello John Doe, this is the response
of this fantastic command.
will be played as:
You also can add some inline commands surrounded by ##COMMAND##. Here’s a list of supported commands:
- color=%color% : displays current line in color. color can be red, green, blue, grey, yellow.
- red: displays current line in red. The same as color=red
- green: displays current line in green. The same as color=green
- blue: displays current line in blue. The same as color=blue
- grey: displays current line in grey. The same as color=grey
- yellow: displays current line in yellow. The same as color=yellow
- underline: underlines current line.
- blink: blinks current line.
- active: displays the cursor at the end of the line.
- speed=%milliseconds%: sets typing speed. milliseconds is a number of ms of delay between one letter and the next.
- delay=%milliseconds%: sets the delay between current line and the next.
How to install
Installation is very very easy. Just search for “simterm” in your WordPress add plugin section and install. Default options are ok, so you don’t have to waste time configuring the plugin.
If your WordPress installation doesn’t allow you to install the plugin this way. Download it from:
Unpack the file and copy the contents to your wp-contents/plugins/ directory. Then go to WordPress plugins settings and activate it.
I appreciate very much any kind of help to this project here are some suggestions:
- Install this plugin in your WordPress blog, and use it. I know it’s not something everyone wants but it could be useful for you (if you came here).
- Share this plugin with anyone who may consider it interesting.
- Report errors, suggestions, comments, anything from this site, GitHub, WordPress.org, Facebook, Twitter, or my personal blog.
- Translations. If you know English or Spanish and any other language. Feel free to translate it. WordPress has a great system to send me translations, but you also can download the program, translate messages and send them to me.
- Contribute with code. You can fork on GitHub, or send me your stuff.
- Images. I know they’re not good, and I’m sure anyone can make them better. Send me images.
- Send me examples! It would be great to have lot’s of examples! And they will be published here.
- A vote on WordPress.org
- Money. I’m not stone made! If you want to buy me a coffee or helping me pay servers, you can click Paypal button in the sidebar, or click here