mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
feat: clear terminal on reset
* TODO: have some trailing
This commit is contained in:
1 parent
0392fe9a65
commit
8a0512aac8
1 file changed
+2
@@ -31,10 +31,12 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import sessionManager from '../utils/session'
|
import sessionManager from '../utils/session'
|
||||||
import socket from '../utils/socket'
|
import socket from '../utils/socket'
|
||||||
|
import socketTerminal from '../utils/terminal'
|
||||||
|
|
||||||
const reset = async () => {
|
const reset = async () => {
|
||||||
console.log('resetting...')
|
console.log('resetting...')
|
||||||
await sessionManager.createSession()
|
await sessionManager.createSession()
|
||||||
socket.connect(sessionManager.getSession())
|
socket.connect(sessionManager.getSession())
|
||||||
|
socketTerminal.clear()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
Reference in new issue
Block a user