diff --git a/src/app/panels/editor-panel.js b/src/app/panels/editor-panel.js index 7447165e2d..c5bd6096c2 100644 --- a/src/app/panels/editor-panel.js +++ b/src/app/panels/editor-panel.js @@ -122,6 +122,10 @@ var css = csjs` height : 100%; width : 100%; } + + .banner { + width : 25em; + } ` class EditorPanel { @@ -158,48 +162,9 @@ class EditorPanel { return self._api.context() } }, - banner: ` -/****************************************************************************** - - ........................................... - .....................:..................... - ....................o:;.................... - ...................oo:;;................... - ..................ooo:;;;.................. - .................oooo:;;;;................. - ................ooooo:;;;;;................ - ...............oooooo:;;;;;;............... - ..............ooooooo:;;;;;;;.............. - .............ooooooo;:';;;;;;;............. - ............ooooo;;;;:'''';;;;;............ - ...........oo;;;;;;;;:'''''''';;........... - ..........;;;;;;;;;;;:'''''''''''.......... - ..............;;;;;;;:'''''''.............. - ...........oo...;;;;;:'''''...;;........... - ............oooo...;;:''...;;;;............ - ..............oooo...:...;;;;.............. - ...............oooooo:;;;;;;............... - ................ooooo:;;;;;................ - .................oooo:;;;;................. - ..................ooo:;;;.................. - ...................oo:;;................... - ....................o:;.................... - .....................:..................... - ........................................... - - ######## ######## ## ## #### ## ## - ## ## ## ### ### ## ## ## - ## ## ## #### #### ## ## ## - ######## ###### ## ### ## ## ### - ## ## ## ## ## ## ## ## - ## ## ## ## ## ## ## ## - ## ## ######## ## ## #### ## ## - - - welcome to browser solidity - -******************************************************************************/ -` + banner: yo`
+ Remix +
` }) } self._components.terminal.event.register('resize', delta => self._adjustLayout('top', delta)) diff --git a/src/app/panels/terminal.js b/src/app/panels/terminal.js index 410f5937be..67cbc70003 100644 --- a/src/app/panels/terminal.js +++ b/src/app/panels/terminal.js @@ -156,6 +156,9 @@ class Terminal { self._INDEX.allMain = [] self._INDEX.commands = {} self._INDEX.commandsMain = {} + self.registerCommand('banner', function (args, scopedCommands, append) { + append(args[0]) + }) self.registerCommand('log', self._blocksRenderer('log')) self.registerCommand('info', self._blocksRenderer('info')) self.registerCommand('error', self._blocksRenderer('error')) @@ -214,7 +217,10 @@ class Terminal { ${self._view.term} ` - if (self.data.banner) self.commands.log(self.data.banner) + if (self.data.banner) { + self.data.activeFilters.commands['banner'] = true + self.commands.banner(self.data.banner) + } function throttle (fn, wait) { var time = Date.now()