Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import $ from 'jQuery';
import initScroll from 'perfect-scrollbar/jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactSlider from 'react-slider';
import GrvTerminal from 'app/lib/term/terminal';
import { TtyPlayer } from 'app/lib/term/ttyPlayer';
import Indicator from './../indicator.jsx';
import { ErrorIndicator, WarningIndicator } from './items';
initScroll($);
class Terminal extends GrvTerminal{
constructor(tty, el){
super({ el, scrollBack: 1000 });
this.tty = tty;
}
connect(){
}
open() {
super.open();
$(this._el).perfectScrollbar();
}
resize(cols, rows) {