fix: discard unused buffers in the ssh channel before disconnecting

This commit is contained in:
2025-12-05 22:26:38 +07:00
parent 990bccbff7
commit af951b8fa7
4 changed files with 23 additions and 31 deletions

View File

@ -98,7 +98,6 @@ func (i *Interaction) HandleUserInput() {
if char == 8 || char == 127 {
if i.InputLength > 0 {
//i.CommandBuffer.Truncate(i.CommandBuffer.Len() - 1)
i.SendMessage("\b \b")
}
if i.CommandBuffer.Len() > 0 {