-
-
Notifications
You must be signed in to change notification settings - Fork 302
/
defaults.go
36 lines (32 loc) · 1.06 KB
/
defaults.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package terminal
const (
// UsePriorityDataMsgs defines whether priority data messages should be used.
UsePriorityDataMsgs = true
)
// DefaultCraneControllerOpts returns the default terminal options for a crane
// controller terminal.
func DefaultCraneControllerOpts() *TerminalOpts {
return &TerminalOpts{
Padding: 0, // Crane already applies padding.
FlowControl: FlowControlNone,
UsePriorityDataMsgs: UsePriorityDataMsgs,
}
}
// DefaultHomeHubTerminalOpts returns the default terminal options for a crane
// terminal used for the home hub.
func DefaultHomeHubTerminalOpts() *TerminalOpts {
return &TerminalOpts{
Padding: 0, // Crane already applies padding.
FlowControl: FlowControlDFQ,
UsePriorityDataMsgs: UsePriorityDataMsgs,
}
}
// DefaultExpansionTerminalOpts returns the default terminal options for an
// expansion terminal.
func DefaultExpansionTerminalOpts() *TerminalOpts {
return &TerminalOpts{
Padding: 8,
FlowControl: FlowControlDFQ,
UsePriorityDataMsgs: UsePriorityDataMsgs,
}
}