* adding timer support

* updates strings
This commit is contained in:
Peli de Halleux
2018-01-13 00:00:55 -08:00
committed by GitHub
parent 49bedcbcc5
commit fc6fb0811f
5 changed files with 69 additions and 3 deletions

View File

@ -58,7 +58,7 @@ namespace console {
namespace console.screen {
const maxLines = 100;
const screenLines = 8;
const screenLines = 10;
let lines: string[];
let scrollPosition = 0;
@ -66,8 +66,8 @@ namespace console.screen {
if (!lines) {
lines = [];
console.addListener(log);
brick.buttonUp.onEvent(ButtonEvent.Click, () => scroll(-1))
brick.buttonDown.onEvent(ButtonEvent.Click, () => scroll(1))
brick.buttonUp.onEvent(ButtonEvent.Click, () => scroll(-3))
brick.buttonDown.onEvent(ButtonEvent.Click, () => scroll(3))
}
}