File tree 2 files changed +12
-0
lines changed 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,14 @@ const LINE_DATA_WIDTH_INDEX = 2;
45
45
const NON_BREAKING_SPACE_CHAR = String . fromCharCode ( 160 ) ;
46
46
const ALL_NON_BREAKING_SPACE_REGEX = new RegExp ( NON_BREAKING_SPACE_CHAR , 'g' ) ;
47
47
48
+ /**
49
+ * A class that manages the selection of the terminal. With help from
50
+ * SelectionModel, SelectionManager handles with all logic associated with
51
+ * dealing with the selection, including handling mouse interaction, wide
52
+ * characters and fetching the actual text within the selection. Rendering is
53
+ * not handled by the SelectionManager but a 'refresh' event is fired when the
54
+ * selection is ready to be redrawn.
55
+ */
48
56
export class SelectionManager extends EventEmitter {
49
57
protected _model : SelectionModel ;
50
58
Original file line number Diff line number Diff line change 4
4
5
5
import { ITerminal } from './Interfaces' ;
6
6
7
+ /**
8
+ * Represents a selection within the buffer. This model only cares about column
9
+ * and row coordinates, not wide characters.
10
+ */
7
11
export class SelectionModel {
8
12
/**
9
13
* Whether select all is currently active.
You can’t perform that action at this time.
0 commit comments