From 1e7e10f96f212741532c8da55e9eb92487a562fe Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 27 Jan 2023 13:39:27 +0800 Subject: [PATCH 1/2] Docs: Fix mixed tab and space indentation in the example code --- docs/graphics-protocol.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/graphics-protocol.rst b/docs/graphics-protocol.rst index 19858ba4e..11373e442 100644 --- a/docs/graphics-protocol.rst +++ b/docs/graphics-protocol.rst @@ -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) From 907f658fccf69a6a494e4bcf6ecff8cf3ee1e524 Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 27 Jan 2023 13:40:31 +0800 Subject: [PATCH 2/2] ... --- kitty/options/definition.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/kitty/options/definition.py b/kitty/options/definition.py index d5ea2c803..fb9a24b6d 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -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. ''' )