Permalink
Browse files

Update README and CHANGELOG

  • Loading branch information...
1 parent 683ab18 commit 7f98ace9146d667f5a6c9bff155784085cda9fc5 @jcubic jcubic committed Oct 11, 2011
Showing with 15 additions and 14 deletions.
  1. +1 −0 CHANGELOG
  2. +14 −14 README
View
@@ -1,3 +1,4 @@
+0.4.1 fix formatting when text contains newline characters
0.4 fix text formating when text splited into more then one line
you can pass nested objects as first argument
add tab completion with object passed as first argument
View
@@ -3,7 +3,7 @@
__ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
/ / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
\___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
- \/ /____/ version 0.4
+ \/ /____/ version 0.4.1
http://terminal.jcubic.pl
@@ -29,8 +29,16 @@ Features:
interpreters (eg. you can use couple of JSON-RPC service and run them
when user type command)
+ * Command Tree - you can use nested objects each command will invoke a
+ function if the value is an object it will create new interpreter and
+ use function from that object as commands. You can use as much nested
+ commands as you like. if the value is a string it will create JSON-RPC
+ service.
+
* Support for command line history it use Local Storage if posible
+ * Support for tab completion if you create terminal from an object
+
* Include keyboard shortcut from bash like CTRL+A, CTRL+D, CTRL+E etc.
* Multiply terminals on one page (every terminal can have different
@@ -39,25 +47,17 @@ Features:
* It catch all exceptions and display error messages in terminal
(you can see errors in your javascript and php code in terminal if they
are in interpreter function)
-
-New in 0.3 version
-
- * Greetings with Terminal signature is resizing to fit the size of the
- terminal
-
- * You can use basic formating for text using echo function
-
- * You can use functions in echo method which will be call when you
- resize terminal or browser window.
Example of usage (javascript interpreter)
jQuery(function($, undefined) {
$('#term_demo').terminal(function(command, term) {
- var result = window.eval(command);
- if (result != undefined) {
- term.echo(String(result));
+ if (command !== '') {
+ var result = window.eval(command);
+ if (result != undefined) {
+ term.echo(String(result));
+ }
}
}, {
greetings: 'Javascript Interpreter',

0 comments on commit 7f98ace

Please sign in to comment.