Skip to content

Commit df6c871

Browse files
authored
Merge pull request #15 from gizmo1904/minorcorrections
Thread call updated and spelling mistakes corrected.
2 parents 1037ef2 + 6beb5cb commit df6c871

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sterm/cli.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838

3939
cli = argparse.ArgumentParser(
40-
description="A minimal serial ternimal.",
40+
description="A minimal serial terminal. To exit the program, press the escape key and enter 'exit' followed by enter.",
4141
formatter_class=argparse.ArgumentDefaultsHelpFormatter
4242
)
4343

@@ -46,13 +46,13 @@
4646
cli.add_argument("-n", "--noecho", default=False, action="store_true",
4747
help="Direct character transmission. Does not echo the user input to stdout.")
4848
cli.add_argument( "--escape", default="\033", type=str, action="store",
49-
help="Change the default escape character (escape)")
49+
help="Change the default escape character (␛).")
5050
cli.add_argument("-b", "--baudrate", default=115200, type=int, action="store",
5151
help="The baudrate used for the communication.")
5252
cli.add_argument("-f", "--format", default="8N1", type=str, action="store",
5353
help="Configuration-triple: xyz with x=bytelength in bits {5,6,7,8}, y=parity {N,E,O}, z=stopbits {1,2}.")
5454
cli.add_argument("-w", "--write", metavar="logfile", type=str, action="store",
55-
help="Write received data into a file")
55+
help="Write received data into a file.")
5656
cli.add_argument("device", type=str, action="store",
5757
help="Path to the serial communication device.")
5858

@@ -81,7 +81,7 @@ def ReceiveData(uart, term):
8181
8282
# Shutdown receiver thread
8383
ShutdownReceiver = True
84-
if ReceiverThread.isAlive():
84+
if ReceiverThread.is_alive():
8585
ReceiverThread.join()
8686
8787
@@ -233,7 +233,7 @@ def main():
233233
# Shutdown receiver thread
234234
global ShutdownReceiver
235235
ShutdownReceiver = True
236-
if ReceiverThread.isAlive():
236+
if ReceiverThread.is_alive():
237237
ReceiverThread.join()
238238

239239
# Clean up everything

0 commit comments

Comments
 (0)