This commit is contained in:
Kovid Goyal 2023-01-27 11:19:54 +05:30
commit 0a4ad1fe12
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 9 additions and 10 deletions

View file

@ -94,7 +94,7 @@ code to demonstrate its use
import "golang.org/x/sys/unix"
fd, err := unix.Open(fd, unix.O_NOCTTY|unix.O_CLOEXEC|unix.O_NDELAY|unix.O_RDWR, 0666)
sz, err := unix.IoctlGetWinsize(fd, unix.TIOCGWINSZ)
sz, err := unix.IoctlGetWinsize(fd, unix.TIOCGWINSZ)
fmt.Println("rows: %v columns: %v width: %v height %v", sz.Row, sz.Col, sz.Xpixel, sz.Ypixel)

View file

@ -2768,23 +2768,22 @@ this even works over SSH connections. The default setting of :code:`no`
prevents any form of remote control. The meaning of the various values are:
:code:`password`
Remote control requests received over both the TTY device and the socket are
confirmed based on passwords, see :opt:`remote_control_password`.
Remote control requests received over both the TTY device and the socket are
confirmed based on passwords, see :opt:`remote_control_password`.
:code:`socket-only`
Remote control requests received over a socket are accepted unconditionally.
Requests received over the TTY are denied. See :opt:`listen_on`.
Remote control requests received over a socket are accepted unconditionally.
Requests received over the TTY are denied. See :opt:`listen_on`.
:code:`socket`
Remote control requests received over a socket are accepted unconditionally.
Requests received over the TTY are confirmed based on password.
Remote control requests received over a socket are accepted unconditionally.
Requests received over the TTY are confirmed based on password.
:code:`no`
Remote control is completely disabled.
Remote control is completely disabled.
:code:`yes`
Remote control requests are always accepted.
Remote control requests are always accepted.
'''
)