I'm new to coding and trying to create a terminal simulation. You can check out my code here: https://codepen.io/isdampe/pen/YpgOYr.
Command:
var coreCmds = {
"clear": clear
};
Answer (to clear the screen):
function clear(argv, argc) {
termBuffer = "";
return "";
}
I am wondering how I can add a command to open a new tab in the browser, for example, directing it to google.com or any other website. Can someone help me with this?
Appreciate your assistance.