Commit a0bdc14
Changed files (1)
clientVisualization.go
@@ -270,6 +270,7 @@ func clearScreen(command Command) error {
// pressing 'Enter'
func handleEnterKeyPress(g *gocui.Gui, v *gocui.View) error {
view, err := ApplicationView.MainGui.View(ApplicationView.MAIN_WINDOW_NAME)
+ view.Autoscroll = true
if readUserInputSemaphore.Queued() > 0 {
readUserInputSemaphore.V() //taken whenever user input is required
return nil
@@ -307,7 +308,6 @@ func handleEnterKeyPress(g *gocui.Gui, v *gocui.View) error {
log.Printf("Error while executing command: %+v", err)
setStatusBar(fmt.Sprintf(COLOR_RED+"Error while executing command: %+v"+COLOR_RESET, err))
}
- view.Autoscroll = true
updateMainView()
}()
return nil