(bufferService: IBufferService, limit: number = bufferService.rows)
| 28 | } |
| 29 | |
| 30 | function getLines(bufferService: IBufferService, limit: number = bufferService.rows): string[] { |
| 31 | const res: string[] = []; |
| 32 | for (let i = 0; i < limit; ++i) { |
| 33 | const line = bufferService.buffer.lines.get(i); |
| 34 | if (line) { |
| 35 | res.push(line.translateToString(true)); |
| 36 | } |
| 37 | } |
| 38 | return res; |
| 39 | } |
| 40 | |
| 41 | class TestInputHandler extends InputHandler { |
| 42 | public get curAttrData(): IAttributeData { return (this as any)._curAttrData; } |
no test coverage detected