File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -630,6 +630,11 @@ Terminal.prototype.open = function(parent) {
630630 Terminal . brokenBold = isBoldBroken ( this . document ) ;
631631 }
632632
633+ /**
634+ * This event is emitted when terminal has completed opening.
635+ *
636+ * @event open
637+ */
633638 this . emit ( 'open' ) ;
634639} ;
635640
@@ -1285,6 +1290,12 @@ Terminal.prototype.scroll = function() {
12851290 this . updateRange ( this . scrollTop ) ;
12861291 this . updateRange ( this . scrollBottom ) ;
12871292
1293+ /**
1294+ * This event is emitted whenever the terminal is scrolled.
1295+ * The one parameter passed is the new y display position.
1296+ *
1297+ * @event scroll
1298+ */
12881299 this . emit ( 'scroll' , this . ydisp ) ;
12891300} ;
12901301
@@ -3144,6 +3155,12 @@ Terminal.prototype.handler = function(data) {
31443155 * @param {string } title The title to populate in the event.
31453156 */
31463157Terminal . prototype . handleTitle = function ( title ) {
3158+ /**
3159+ * This event is emitted when the title of the terminal is changed
3160+ * from inside the terminal. The parameter is the new title.
3161+ *
3162+ * @event title
3163+ */
31473164 this . emit ( 'title' , title ) ;
31483165} ;
31493166
You can’t perform that action at this time.
0 commit comments