__ ________ _______ _____ _ _ __
| | |__ __| | ____| | _ | | \ / | \ \
| | | | | |__ | |_| | | \_/ | \ \
| | o | | | | | __| | _ | \ \
| | o | | | __| | \ | | | | / /
| |____ o | | | |____ | \ | | | | / / ____
|_______| o |__| |_______| |__|\_\ |__| |__| /_/ |____|
Check out the site live at -->
lterm is an online Terminal Emulator. It is a step by step tutorial that will teach you the bash commands by making you execute them.
Nothing is better than learning by doing.
It is fully online and doesn't require any extra shitty access. Being an emulator, it only virtualizes a terminal environment and so the commands executed doesn't effect either the server or your local machine.
echopwdlscdcd..catcleartouchcp/mvrmdatemkdir
- Developers who want to contribute,
this repo and edit the file main.js to add your commands.
- You don't have to worry about any other files or programs.
- If a command doesn't need further steps:
// without argument
ls: function() {
this.echo('This is the ls command\n');
}// with argument
echo: function(arg1) {
this.echo('This is the echo command' + arg1 + '\n');
}- If a command needs further steps:
cd: function(arg1) {
this.push(function(cmd, term) {
if(cmd == 'another_command')
this.echo('another_command');
}, {
prompt: '[[b;#44D544;]lterm@localhost/' + arg1 + ':~$] ',
}
);
}- On addition of a new command, increase the size of
arrarray. This array acts like a counter to check if a task/command is completed or not. - If you face any problem or cannot understand anything, open up an issue.
- You can also edit the readme and make it more user friendly to help out new contributers.
Note: Kindly have interpretable & good commit messages. Don't assume me to be some Jedi with powers to be able to make out every commit with a single word as message. May the Force be with you.