fix HT, HTS, CHT

This commit is contained in:
Jörg Breitbart
2019-07-05 02:04:42 +02:00
parent 44035d14ab
commit d18b799624
2 changed files with 9 additions and 3 deletions
+6
View File
@@ -554,6 +554,9 @@ export class InputHandler extends Disposable implements IInputHandler {
* Horizontal Tab (HT) (Ctrl-I).
*/
public tab(): void {
if (this._terminal.buffer.x >= this._terminal.cols) {
return;
}
const originalX = this._terminal.buffer.x;
this._terminal.buffer.x = this._terminal.buffer.nextStop();
if (this._terminal.options.screenReaderMode) {
@@ -746,6 +749,9 @@ export class InputHandler extends Disposable implements IInputHandler {
* Cursor Forward Tabulation Ps tab stops (default = 1) (CHT).
*/
public cursorForwardTab(params: number[]): void {
if (this._terminal.buffer.x >= this._terminal.cols) {
return;
}
let param = params[0] || 1;
while (param--) {
this._terminal.buffer.x = this._terminal.buffer.nextStop();
+3 -3
View File
@@ -126,9 +126,9 @@ if (os.platform() !== 'win32') {
't0075-DECSTBM_CUU_CUD.in',
't0076-DECSTBM_IL_DL.in',
't0077-DECSTBM_quirks.in',
't0080-HT.in',
't0082-HTS.in',
't0083-CHT.in',
// 't0080-HT.in',
// 't0082-HTS.in',
// 't0083-CHT.in',
't0084-CBT.in',
// 't0090-alt_screen.in',
't0091-alt_screen_ED3.in',