Terminal Update.

This commit is contained in:
2025-03-28 02:41:57 +01:00
parent 9e50b2a6d3
commit 5fbcadad8b
6 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class TerminalSession:
async def read_output(self, ws):
self.sockets.append(ws)
if len(self.sockets) > 1 and self.buffer:
if len(self.sockets) > 1 and self.history:
start = 0
try:
start = self.history.index(b'\n')
+4 -1
View File
@@ -30,7 +30,10 @@ class TerminalSocketView(BaseView):
user = await self.services.user.get(uid=self.session.get("uid"))
root = await self.prepare_drive()
command = f"docker run -v ./{root}/:/root --rm -it --memory 512M --cpus=0.5 -w /root ubuntu:latest /bin/bash"
command = f"docker run -v ./{root}/:/root -it --memory 512M --cpus=0.5 -w /root snek_ubuntu /bin/bash"
session = self.user_sessions.get(user["uid"])
if not session: