Updated readme and examples
This commit is contained in:
		@@ -9,6 +9,7 @@ $ composer require noccylabs/react-shell:@dev
 | 
				
			|||||||
## Features
 | 
					## Features
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Interactive line-editing including arrow keys, home, end, delete and all the commodities you are used to.
 | 
					* Interactive line-editing including arrow keys, home, end, delete and all the commodities you are used to.
 | 
				
			||||||
 | 
					* Automatic scrollback history, to avoid having to retype commands.
 | 
				
			||||||
* Input is edited on a single scrolling line.
 | 
					* Input is edited on a single scrolling line.
 | 
				
			||||||
* Mostly Unicode-aware, meaning it will not have a nervous breakdown if you try to enter (single-width LTR) unicode characters.
 | 
					* Mostly Unicode-aware, meaning it will not have a nervous breakdown if you try to enter (single-width LTR) unicode characters.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,6 +18,6 @@ $commands->on('command', function ($command, $args, $shell) {
 | 
				
			|||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$shell->on('prompt', function ($shell) {
 | 
					$shell->on('prompt', function ($shell) {
 | 
				
			||||||
    $shell->setPrompt(date(">> ")); 
 | 
					    $shell->setPrompt(">> ");
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
$shell->on('input', $commands);
 | 
					$shell->on('input', $commands);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user