Explorar o código

优化sshd的客户端, 添加"cls"清屏指令支持

niujiuru hai 1 mes
pai
achega
10d64ff498
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. BIN=BIN
      package/yfkj_ssh_client_1.0.0.1.tar.gz
  2. 1 1
      sshd/client/client.go

BIN=BIN
package/yfkj_ssh_client_1.0.0.1.tar.gz


+ 1 - 1
sshd/client/client.go

@@ -188,7 +188,7 @@ func term(pingState *atomic.Bool) {
 			break
 		}
 
-		if input == "clear" {
+		if input == "cls" || input == "clear" {
 			clearScreen()
 			continue
 		}