         $scope.astString = ast
 
         $scope.instructionsString = instructions
-
-        terminal().scroll_to_bottom()
 
     listen.executionFinish = ({ status }) ->
         # TODO: Show status somehow

    $rootScope.$on('$stateChangeStart', (event, toState, toParams, fromState, fromParams) ->
        if toState.name isnt "terminal"
            $("#terminal").appendTo(".terminalOuter")
    )

    $rootScope.$on('$viewContentLoaded', (event, toState, toParams, fromState, fromParams) ->
        if $state.current.name is "terminal"
            $("#terminal").appendTo("#terminalTab")
    )

    $scope.$watch((-> $mdMedia('gt-sm')), (big) ->

            prompt: ''
        )

    listen.startDebugging = ->
        $scope.debugging = yes

