mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +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>
|
||||
import sessionManager from '../utils/session'
|
||||
import socket from '../utils/socket'
|
||||
import socketTerminal from '../utils/terminal'
|
||||
|
||||
const reset = async () => {
|
||||
console.log('resetting...')
|
||||
await sessionManager.createSession()
|
||||
socket.connect(sessionManager.getSession())
|
||||
socketTerminal.clear()
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user