8000 Update _terminal.py · pycom/pycom-micropython-sigfox@da9f545 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit da9f545

Browse files
committed
Update _terminal.py
Fix terminal redirection
1 parent e3f7111 commit da9f545

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

esp32/frozen/Pybytes/_terminal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
'''
88

99
from machine import UART
10+
import os
1011

1112

1213
class Terminal:
1314

1415
def __init__(self, pybytes_protocol):
1516
self.__pybytes_protocol = pybytes_protocol
16-
self.original_terminal = UART(0, 115200)
17+
self.original_terminal = os.dupterm()
1718
self.message_from_pybytes = False
1819
self.message_to_send = ''
1920

0 commit comments

Comments
 (0)
0