mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
feat: socket error handling
* create a new session when failed to connect to socket * reset termnal on connect
This commit is contained in:
1 parent
2639c0ddda
commit
ed14491cfc
4 files changed
+39
-31
No files matched your search
@@ -33,6 +33,10 @@ class SocketTerminal {
|
||||
this.term.onData(callback)
|
||||
}
|
||||
|
||||
focus() {
|
||||
this.term.focus()
|
||||
}
|
||||
|
||||
resizeScreen() {
|
||||
this.fitAddon.fit()
|
||||
}
|
||||
@@ -43,8 +47,8 @@ class SocketTerminal {
|
||||
this.resizeScreen()
|
||||
}
|
||||
|
||||
clear() {
|
||||
this.term.clear()
|
||||
reset() {
|
||||
this.term.reset()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user