snapkitty
compilers
javascript
6502-asm
File size: 1,422 Bytes
e870690
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var LinuxMode = {
  name: 'linux',
  label: 'Linux',
  theme: 'terminal-amber',

  prompt: '$ ',
  helpExtra: function() {
    return [
      '╔══════════════════════════════════════════════════════════╗',
      'β•‘  LINUX MODE β€” Shell-focused commands                    β•‘',
      '╠══════════════════════════════════════════════════════════╣',
      'β•‘  Focus: Boot, Status, Runtime, Export, About            β•‘',
      'β•‘  Emphasis on system commands and shell simulation       β•‘',
      'β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•'
    ].join('\n');
  },

  filterCommands: function(cmds) {
    var allowed = ['help', 'boot', 'status', 'runtime', 'export', 'about', 'clear',
                   'adastatus', 'contracts', 'astatus', 'lhelp', 'leval',
                   'asstatus', 'registers', 'opcodes', 'prostatus', 'bfstatus',
                   'swstatus', 'wbstatus', 'osstatus', 'wasstatus', 'vms'];
    return cmds.filter(function(c) { return allowed.indexOf(c.cmd.toLowerCase()) >= 0; });
  }
};