Move wraparound mode into core service modes

This commit is contained in:
Daniel Imms
2019-12-18 11:16:27 +11:00
parent 224fb5c6a2
commit bff74b1d7d
8 changed files with 14 additions and 21 deletions
+4 -1
View File
@@ -57,7 +57,10 @@ export class MockCoreService implements ICoreService {
isCursorInitialized: boolean = false;
isCursorHidden: boolean = false;
isFocused: boolean = false;
decPrivateModes: IDecPrivateModes = {} as any;
decPrivateModes: IDecPrivateModes = {
applicationCursorKeys: false,
wraparound: true
};
onData: IEvent<string> = new EventEmitter<string>().event;
onUserInput: IEvent<void> = new EventEmitter<void>().event;
onBinary: IEvent<string> = new EventEmitter<string>().event;
+1
View File
@@ -152,6 +152,7 @@ export interface IMarker extends IDisposable {
export interface IDecPrivateModes {
applicationCursorKeys: boolean;
wraparound: boolean; // defaults: xterm - true, vt100 - false
}
export interface IRowRange {
+2 -1
View File
@@ -9,7 +9,8 @@ import { IDecPrivateModes, ICharset } from 'common/Types';
import { clone } from 'common/Clone';
const DEFAULT_DEC_PRIVATE_MODES: IDecPrivateModes = Object.freeze({
applicationCursorKeys: false
applicationCursorKeys: false,
wraparound: true // defaults: xterm - true, vt100 - false
});
export class CoreService implements ICoreService {