Skip to content

Commit 3b69bef

Browse files
committed
在 Start 函数中将欢迎信息打印方式从 println 改为 os.Stderr.WriteString,优化输出格式
1 parent 43f537b commit 3b69bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/crosspty/pty.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func getNewLine(shellName string) string {
3131
}
3232

3333
func Start(shellPath string, env map[string]string, welcome string) error {
34-
println(welcome)
34+
os.Stderr.WriteString(welcome + "\n")
3535

3636
ptmx, err := pty.New()
3737
if err != nil {

0 commit comments

Comments
 (0)