So I wrote a new serial terminal - Terminal S https://github.com/makerdiary/terminal-s. It has about 100 lines of Python code.
Install & Run
Code: Select all
pip install terminal-s
terminal-s
Code: Select all
pip install terminal-s
terminal-s
Code: Select all
python3 -m serial.tools.miniterm
Code: Select all
$ find_port.py -n MicroPython
/dev/ttyACM0
I also use the miniterm, but it can not handle arrow keys and terminal color, which is one of the reason to write a new one.scruss wrote: ↑Tue May 19, 2020 2:52 pmNice!
I tend to just usewhen I know I'm on a system that doesn't have minicom, c-kermit or screen on it.Code: Select all
python3 -m serial.tools.miniterm
It supports both here under Linux. I invoke it with:
Code: Select all
miniterm.py /dev/pyboard 115200 --raw
Code: Select all
def print_tests():
st = '''Available functions:
test(0) Print this list.
test(1) Test message acknowledge.
test(2) Test Messge and Lock objects.
test(3) Test the Barrier class.
test(4) Test Semaphore
test(5) Test BoundedSemaphore.
test(6) Test the Condition class.
test(7) Test the Queue class.
'''
print('\x1b[32m')
print(st)
print('\x1b[39m')
print_tests()
Code: Select all
[b'\x00', b'K']
Code: Select all
[b'\xe0', b'K']
Code: Select all
[b'\x1b', b'[', b'D']
Code: Select all
--raw Do no apply any encodings/transformations
have you triedminiterm.py raw mode doesn't support arrow keys
Code: Select all
--filter direct