U 优化提示

pull/586/head
vapao 2022-07-09 19:43:36 +08:00
parent 9886c60298
commit ec7ea4df8a
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ function WebSSH(props) {
fitPlugin.fit();
};
socket.onclose = e => {
setTimeout(() => term.write('\r\nConnection is closed.\r\n'), 200)
setTimeout(() => term.write('\r\n\r\n\x1b[31mConnection is closed.\x1b[0m\r\n'), 200)
};
term.onData(data => socket.send(JSON.stringify({data})));
term.onResize(({cols, rows}) => {