From bd4399b5fc53a305c58fe83c685bf4a0223edd00 Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 26 Nov 2021 09:26:07 +0800 Subject: [PATCH] ... --- docs/file-transfer-protocol.rst | 16 ++++++++-------- docs/keyboard-protocol.rst | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/file-transfer-protocol.rst b/docs/file-transfer-protocol.rst index dbf79f816..6e9fe32e8 100644 --- a/docs/file-transfer-protocol.rst +++ b/docs/file-transfer-protocol.rst @@ -23,14 +23,14 @@ before any actual data is transmitted, unless a :ref:`pre-shared password is provided `. There can be either send or receive sessions. In send sessions files are sent -from from remote client to the terminal emulator and vice versa for receive -sessions. Every session basically consists of sending metadata for the files -first and then sending the actual data. The session is a series of commands, -every command carrying the session id (which should be a random unique-ish -identifier, to avoid conflicts). The session is bi-directional with commands -going both to and from the terminal emulator. Every command in a session -also carries an ``action`` field that specifies what the command does. The -remaining fields in the command are dependent on the nature of the command. +from remote client to the terminal emulator and vice versa for receive sessions. +Every session basically consists of sending metadata for the files first and +then sending the actual data. The session is a series of commands, every command +carrying the session id (which should be a random unique-ish identifier, to +avoid conflicts). The session is bi-directional with commands going both to and +from the terminal emulator. Every command in a session also carries an +``action`` field that specifies what the command does. The remaining fields in +the command are dependent on the nature of the command. Let's look at some simple examples of sessions to get a feel for the protocol. diff --git a/docs/keyboard-protocol.rst b/docs/keyboard-protocol.rst index 5dacd8faa..1e59686fb 100644 --- a/docs/keyboard-protocol.rst +++ b/docs/keyboard-protocol.rst @@ -67,7 +67,7 @@ modifiers pressed for the key event. The encoding is described in the :ref:`modifiers` section. The second form is used for a few functional keys, such as the :kbd:`Home`, -:kbd:`End`, :kbd:`Arrow` keys and :kbd:`F1`...:kbd:`F4`, they are enumerated in +:kbd:`End`, :kbd:`Arrow` keys and :kbd:`F1` ... :kbd:`F4`, they are enumerated in the :ref:`functional` table below. Note that if no modifiers are present the parameters are omitted entirely giving an escape code of the form ``CSI [ABCDEFHPQRS]``.