mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
fix HT, HTS, CHT
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user