mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-06 07:29:42 +02:00
fix: clear screen initialization blank space after attaching
GNU screen creates blank space at the top when initializing sessions. This is now handled after attaching to the screen: - Claude sessions: emit clearTerminal event after 100ms, client clears xterm - Shell sessions: send 'clear' command after 100ms Also updates CLAUDE.md with documentation of the fix. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -813,6 +813,11 @@ export class WebServer extends EventEmitter {
|
||||
this.batchTerminalData(session.id, data);
|
||||
});
|
||||
|
||||
session.on('clearTerminal', () => {
|
||||
// Tell clients to clear their terminal (after screen attach)
|
||||
this.broadcast('session:clearTerminal', { id: session.id });
|
||||
});
|
||||
|
||||
session.on('message', (msg: ClaudeMessage) => {
|
||||
this.broadcast('session:message', { id: session.id, message: msg });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user