fix console for mode
This commit is contained in:
		@@ -911,3 +911,4 @@ void      cUiUpdatePower(void)
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -21,6 +21,7 @@ namespace console._screen {
 | 
			
		||||
            console.addListener(log);
 | 
			
		||||
            brick.buttonUp.onEvent(ButtonEvent.Bumped, () => scroll(-3))
 | 
			
		||||
            brick.buttonDown.onEvent(ButtonEvent.Bumped, () => scroll(3))
 | 
			
		||||
            brick.showConsole();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -27,6 +27,7 @@ namespace brick {
 | 
			
		||||
        ShowLines,
 | 
			
		||||
        Image,
 | 
			
		||||
        Ports,
 | 
			
		||||
        Console,
 | 
			
		||||
        Custom
 | 
			
		||||
    }
 | 
			
		||||
    let screenMode = ScreenMode.None;
 | 
			
		||||
@@ -197,6 +198,12 @@ namespace brick {
 | 
			
		||||
        })
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    export function showConsole() {
 | 
			
		||||
        console.sendToScreen();
 | 
			
		||||
        screenMode = ScreenMode.Console;
 | 
			
		||||
        clearScreen();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * An image
 | 
			
		||||
     * @param image the image
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user