Skip to content

Commit

Permalink
set title via stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnywong committed Dec 23, 2023
1 parent 82b373a commit be200f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ _`~/` 代表 HOME 目录。在 Windows 中,请将下文的 `~/` 替换成 `C:\
QuestionAnswer2 答案二 # 支持明文答案,但是推荐使用 tssh --enc-secret 简单加密一下。
QuestionAnswer3 答案三
Host test3
# 其中 `6e616d653a20` 是问题 `name: ` 的 hex 编码,`enc` 前缀代码配置的是密文串
# 其中 `6e616d653a20` 是问题 `name: ` 的 hex 编码,`enc` 前缀代表配置的是密文串
# 下面是运行 tssh --enc-secret 输入答案 `my_name` 得到的密文串,每次运行结果不同。
enc6e616d653a20 775f2523ab747384e1661aba7779011cb754b73f2e947672c7fd109607b801d70902d1
636f64653a20 my_code # 其中 `636f64653a20` 是问题 `code: ` 的 hex 编码, `my_code` 是明文答案
Expand Down
2 changes: 1 addition & 1 deletion tssh/tmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ func appendArgs(alias string, args ...string) []string {
}

func setTerminalTitle(title string) {
fmt.Printf("\033]0;%s\007", title)
fmt.Fprintf(os.Stderr, "\033]0;%s\007", title)
}

0 comments on commit be200f0

Please sign in to comment.