MCPcopy
hub / github.com/electerm/electerm / constructor

Method constructor

src/client/components/terminal/terminal.jsx:71–97  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

69
70class Term extends Component {
71 constructor (props) {
72 super(props)
73 this.state = {
74 loading: false,
75 hasSelection: false,
76 saveTerminalLogToFile: !!this.props.config.saveTerminalLogToFile,
77 addTimeStampToTermLog: !!this.props.config.addTimeStampToTermLog,
78 logPath: this.props.config.sessionLogPath || createDefaultLogPath(),
79 logFileName: '',
80 recording: false,
81 recordingFilePath: '',
82 passType: 'password',
83 lines: [],
84 searchResults: [],
85 matchIndex: -1,
86 totalLines: 0,
87 reconnectCountdown: null,
88 terminalError: null,
89 dropFileModalVisible: false,
90 droppedFiles: []
91 }
92 this.id = `term-${this.props.tab.id}`
93 refs.add(this.id, this)
94 this.currentInput = ''
95 this.shellInjected = false
96 this.shellType = null
97 }
98
99 domRef = createRef()
100

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected