diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-07-11 17:09:04 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-12 08:22:44 +0200 |
| commit | c1147c8df73eb61bc9d66e6628e0369e21f28670 (patch) | |
| tree | 1f5f75bf13a32941025c134fdd236fb137cf3181 /vm/vmimpl/console.go | |
| parent | 0faffd0438df859fb66236085ac3992735900d26 (diff) | |
all: fix comments format
Fix capitalization, dots at the end
and two spaces after a period.
Update #1876
Diffstat (limited to 'vm/vmimpl/console.go')
| -rw-r--r-- | vm/vmimpl/console.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vm/vmimpl/console.go b/vm/vmimpl/console.go index fbc05942f..74449cab4 100644 --- a/vm/vmimpl/console.go +++ b/vm/vmimpl/console.go @@ -31,11 +31,11 @@ func OpenConsole(con string) (rc io.ReadCloser, err error) { if errno != 0 { return nil, fmt.Errorf("failed to get console termios: %v", errno) } - // no parity bit, only need 1 stop bit, no hardware flowcontrol + // No parity bit, only need 1 stop bit, no hardware flowcontrol, term.Cflag &^= unixCBAUD | unix.CSIZE | unix.PARENB | unix.CSTOPB | unixCRTSCTS - // ignore modem controls + // Ignore modem controls. term.Cflag |= unix.B115200 | unix.CS8 | unix.CLOCAL | unix.CREAD - // setup for non-canonical mode + // Setup for non-canonical mode. term.Iflag &^= unix.IGNBRK | unix.BRKINT | unix.PARMRK | unix.ISTRIP | unix.INLCR | unix.IGNCR | unix.ICRNL | unix.IXON term.Lflag &^= unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN |
