javascript:jquery:terminal_emulator_plugin

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
javascript:jquery:terminal_emulator_plugin [2019/08/17 16:00] – 作成 ともやんjavascript:jquery:terminal_emulator_plugin [2019/09/05 01:09] (現在) ともやん
行 1: 行 1:
 +<html>
 +  <script src="/_media/javascript/jquery/terminal/jquery.terminal-2.7.1.min.js?cache=-1"></script>
 +  <link href="/_media/javascript/jquery/terminal/jquery.terminal-2.7.1.css?cache=-1" rel="stylesheet"/>
 +  <script>
 +    jQuery(function($, undefined) {
 +      term = $('#term_demo');
 +      term.terminal(function(command, term) {
 +        if (command == 'help') {
 +          term.echo('cls, clear - Clear Terminal');
 +        }
 +        else if (command !== '') {
 +          try {
 +            var result = window.eval(command);
 +            if (result !== undefined) {
 +              this.echo(new String(result));
 +            }
 +          } catch(e) {
 +            this.error(new String(e));
 +          }
 +        } else {
 +           this.echo('');
 +        }
 +      }, {
 +        greetings: 'JavaScript Interpreter Version ' + $.terminal.version + '\r\n' +
 +        navigator.userAgent,
 +        name: 'js_demo',
 +        height: 400,
 +        prompt: 'js > '
 +      });
 +      
 +      function dir(object) {
 +        var result = '';
 +        for (var property in object) {
 +          if (object.hasOwnProperty(property)) {
 +            result += property + ', ';
 +          }
 +        }
 +        return result;
 +      }
 +      self.dir = dir;
 +    });
 +  </script>
 +</html>
 ====== jQuery Terminal Emulator Plugin ====== ====== jQuery Terminal Emulator Plugin ======
 本家: [[https://terminal.jcubic.pl/|jQuery Terminal Emulator Plugin]]\\ 本家: [[https://terminal.jcubic.pl/|jQuery Terminal Emulator Plugin]]\\
 ソースコード: [[https://github.com/jcubic/jquery.terminal|GitHub - jcubic/jquery.terminal: jQuery Terminal Emulator - web based terminal]]\\ ソースコード: [[https://github.com/jcubic/jquery.terminal|GitHub - jcubic/jquery.terminal: jQuery Terminal Emulator - web based terminal]]\\
  
 +===== ターミナルデモ =====
 +<WRAP prewrap 100% #term_demo>
 +</WRAP>
 +<WRAP prewrap 100%>
 +<code>
 +js > dir(term)
 +0, length, id, clear, export_view, import_view, save_state, exec, autologin, login, settings, before_cursor, complete, commands, set_interpreter, greetings, paused, pause, resume, cols, rows, history, history_state, clear_history_state, next, focus, freeze, frozen, enable, disable, enabled, signature, version, cmd, get_command, set_command, set_position, get_position, insert, set_prompt, get_prompt, set_mask, get_output, resize, refresh, flush, update, remove_line, last_index, echo, error, exception, scroll, logout, token, set_token, get_token, login_name, name, prefix_name, read, push, pop, option, invoke_key, keymap, level, reset, purge, destroy, scroll_to, scroll_to_bottom, is_bottom,
 +js> term.signature()
 +      __ _____                     ________                              __
 +     / // _  /__ __ _____ ___ __ _/__  ___/__ ___ ______ __ __  __ ___  / /
 + __ / // // // // // _  // _// // / / // _  // _//     // //  \/ // _ \/ /
 +/  / // // // // // ___// / / // / / // ___// / / / / // // /\  // // / /__
 +\___//____ \\___//____//_/ _\_  / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
 +          \/              /____/                                  v. 2.7.1
 +Copyright (c) 2011-2019 Jakub T. Jankiewicz <https://jcubic.pl/me>
  
 +js > help
 +load python - Python Interpreter
 +js >
 +</code>
 +</WRAP>
  • javascript/jquery/terminal_emulator_plugin.1566025222.txt.gz
  • 最終更新: 2019/08/17 16:00
  • by ともやん