       terminalView.once "TerminalClosed", @bound "removeSession"
       terminalView.once 'WebTermConnected', runner
 
-  handleQuery:(query)->
-    pane = @tabView.getActivePane()
+
+  getAdvancedSettingsMenuView: (item, menu)->
+
+    return  unless pane = @tabView.getActivePane()
+
     {terminalView} = pane.getOptions()
-    terminalView.terminal?.scrollToBottom()
-    terminalView.once "TerminalClosed", @bound "removeSession"
-    terminalView.once 'WebTermConnected', (remote)=>
-      @emit "WebTermConnected"
-      if query.command
-        command = decodeURIComponent query.command
-        @showApprovalModal remote, command
-
-      # chrome app specific settings
-      if query.chromeapp
-
-        query.fullscreen = yes # forcing fullscreen
-        @chromeAppMode()
-
-      if query.fullscreen
-        KD.getSingleton("mainView").enableFullscreen()
+    settingsView = new KDView
+      cssClass: "editor-advanced-settings-menu"
+    settingsView.addSubView new WebtermSettingsView {
+      menu, delegate: terminalView
+    }
+
+    return settingsView
+
 
   chromeAppMode: ->
+
     windowController = KD.getSingleton("windowController")
     mainController   = KD.getSingleton("mainController")
 

    @forwardEvent terminalView, "WebTermConnected"
    @forwardEvent terminalView, "TerminalClosed"

  addStartTab:->

    pane = new KDTabPaneView
      name          : 'intro'
      tabHandleView : new KDCustomHTMLView
        tagName     : 'span'
        cssClass    : 'home'
      view          : @startTab = new TerminalStartTab
        tagName     : 'main'
        delegate    : this
      closable      : no

    @tabView.addPane pane

  appendTerminalTab: (terminalView, shouldShow = yes) ->


          callback: ->
            modal.destroy()


  runCommand:(_command)->

    pane = @tabView.getActivePane()
    {terminalView} = pane.getOptions()

