{ "version": 3, "sources": ["../src/common/teletype.ts"], "sourcesContent": ["\nimport { InputResponse } from \"./basic/runtime\";\n\nexport class TeleType {\n page: HTMLElement;\n fixed: boolean;\n ncols: number = 80;\n scrolldiv: HTMLElement;\n bell; // Audio\n\n curline: HTMLElement;\n curstyle: number;\n reverse: boolean;\n col: number;\n row: number;\n lines: HTMLElement[];\n ncharsout : number;\n\n constructor(page: HTMLElement, fixed: boolean) {\n this.page = page;\n this.fixed = fixed;\n this.clear();\n }\n clear() {\n this.curline = null;\n this.curstyle = 0;\n this.reverse = false;\n this.col = 0;\n this.row = -1;\n this.lines = [];\n this.ncharsout = 0;\n $(this.page).empty();\n this.showPrintHead(true);\n }\n ensureline() {\n if (this.curline == null) {\n this.curline = this.lines[++this.row];\n if (this.curline == null) {\n this.curline = $('