Convert linefeed to EventEmitter2

This commit is contained in:
Daniel Imms
2019-04-09 19:35:41 -07:00
parent 8e5d372b81
commit f111aa27dc
5 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export function applyWindowsMode(terminal: ITerminal): IDisposable {
// space. This is certainly not without its problems, but generally on
// Windows when text reaches the end of the terminal it's likely going to be
// wrapped.
return terminal.addDisposableListener('linefeed', () => {
return terminal.onLineFeed(() => {
const line = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y - 1);
const lastChar = line.get(terminal.cols - 1);