Skip to content

Conversation

@alexrudd2
Copy link
Collaborator

Closes #1497

New behaviour:

❯ pymodbus.server run --modbus-server tcp --framer socket --slave-id 1 --slave-id 4 --random 2

__________                          .______.                    _________
\______   \___.__. _____   ____   __| _/\_ |__  __ __  ______  /   _____/ ______________  __ ___________
 |     ___<   |  |/     \ /  _ \ / __ |  | __ \|  |  \/  ___/  \_____  \_/ __ \_  __ \  \/ // __ \_  __ \\
 |    |    \___  |  Y Y  (  <_> ) /_/ |  | \_\ \  |  /\___ \   /        \  ___/|  | \/\   /\  ___/|  | \/
 |____|    / ____|__|_|  /\____/\____ |  |___  /____//____  > /_______  /\___  >__|    \_/  \___  >__|
           \/          \/            \/      \/           \/          \/     \/                 \/


SERVER > exit
Bye Bye!!!

@alexrudd2 alexrudd2 requested a review from dhoomakethu April 18, 2023 05:18
@alexrudd2
Copy link
Collaborator Author

Also, the REPL client catches CTRL+C and CTRL+D.
CTRL+D exits the entire client.
CTRL+C only exits the current command.

The server has no such difference.

(this PR doesn't change anything)

Copy link
Collaborator

@janiversen janiversen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@janiversen janiversen merged commit d6dce90 into dev Apr 18, 2023
@janiversen janiversen deleted the repl-server-exit branch April 18, 2023 06:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

REPL server needs CTRL+C twice to exit

3 participants