basic ports view (#115)

* basic ports view

* slight adjustement of rendering
This commit is contained in:
Peli de Halleux
2017-12-19 14:26:57 -08:00
committed by GitHub
parent eac3e183c3
commit d78d9c8686
7 changed files with 43 additions and 6 deletions

View File

@ -59,7 +59,6 @@ namespace console {
namespace console.screen {
const maxLines = 100;
const screenLines = 8;
const lineHeight = 12;
let lines: string[];
let scrollPosition = 0;
@ -78,7 +77,7 @@ namespace console.screen {
for (let i = 0; i < screenLines; ++i) {
const line = lines[i + scrollPosition];
if (line)
brick.print(line, 0, 4 + i * lineHeight)
brick.print(line, 0, 4 + i * brick.LINE_HEIGHT)
}
}