Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion process.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (p *Process) FullCommand() string {
// InTty returns a true or false depending if p.Tty is ?? or
// a value such as ttys001.
func (p *Process) InTty() bool {
return p.Tty != "??"
return p.Tty[0] != "?"[0]
}

// OpenTty returns an opened file handle to the tty of the process.
Expand Down