// socketPathBytes is the longest path of a Unix socket on Linux.
socketPathBytes = 107
+
+ // terminalSource is the source of the user messages from the clients of
+ // the socket.
+ terminalSource = "terminal"
)
// errTokensInUse tells that another onechat process uses the token file.
return errors.New("empty message")
}
- _, err := l.Submit(request.Text)
+ _, err := l.Submit(terminalSource, request.Text)
return err
case "interrupt":