add onBinary on CoreService, use for DEFAULT mouse reports

This commit is contained in:
Jörg Breitbart
2019-11-13 23:46:01 +01:00
parent 414eea2a2c
commit b780abaf3b
5 changed files with 39 additions and 14 deletions
+8 -1
View File
@@ -68,6 +68,7 @@ export interface ICoreService {
readonly onData: IEvent<string>;
readonly onUserInput: IEvent<void>;
readonly onBinary: IEvent<string>;
reset(): void;
@@ -78,8 +79,14 @@ export interface ICoreService {
* resulting from parsing incoming data). When true this will also:
* - Scroll to the bottom of the buffer.s
* - Fire the `onUserInput` event (so selection can be cleared).
*/
*/
triggerDataEvent(data: string, wasUserInput?: boolean): void;
/**
* Triggers the onBinary event in the public API.
* @param data The data that is being emitted.
*/
triggerBinaryEvent(data: string): void;
}
export const IDirtyRowService = createDecorator<IDirtyRowService>('DirtyRowService');