Skip to content

bug on 'exit' command with xTerm #21

@elvi7major

Description

@elvi7major

hello team,
i want to report a bug i found its not big issue but will enhance experience
the bug is when you type the command 'exit' to close the ssh session opened the xTerm will hangs for ever cause the connection is closed but the socket not
also when you click on (exit) the red icon it will close the xTerm but not the ssh session
take a look at the pictures attached

FIX:
as a fix you can add exit in the event 'osClose' like this

ws.on('close', () => {
    ws.send('exit')
    term.writeln('... Disconnected. Press any key to close terminal ...');
    closed = true;
    clearInterval(pinger);
  });

also maybe you should add a condition when send if its exit pass with it onClose event
i hope i made it clear if not just tell me i will explain more
qq
dd
ss

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions