Skip to content

Commit

Permalink
feat: output newline at start of connection
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <git@mattglei.ch>
  • Loading branch information
gleich committed Jul 31, 2024
1 parent 4d4336c commit 781cb2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func startSSH() {
ssh.Handle(func(s ssh.Session) {
lumber.Info("handling connection from", s.RemoteAddr().String(), "["+s.User()+"]")

fmt.Fprintln(s)
welcome := format.Green.Sprint("Welcome to Matt Gleich's personal terminal! Enter `help` to available commands.\n\n")
for _, c := range welcome {
fmt.Fprint(s, string(c))
Expand Down

0 comments on commit 781cb2f

Please sign in to comment.