Prompt Helper
FLogisoft
Prompt Helper is a Javascript script that helps you to customize your prompt by displaying your modification in real time. It does not support all the features of a shell, but it is sufficient for doing what we want to.
Prompt Helper was originally created for the page "Bash tips: Customize the shell prompt" of my wiki.
Demo
Using Prompt helper in a page
For using Prompt Helper in a page, you must add the following lines in the source code of your page:
<!--Prompt Helper-->
<div id="ph_prompt_helper" style="border: silver dashed 1px;">You need Javascript for using Prompt Helper.</div>
<script src="./prompt_helper.js" type="text/javascript"></script>
<!-- /Prompt Helper -->
Licence
Prompt Helper is distributed under the GNU Affero General Public License.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.