← index #2497PR #3343
Related · high · value 0.411
QUERY · ISSUE

ESP8266: WebREPL truncates pasted data

openby cpoppopened 2016-10-09updated 2023-12-07
port-esp8266

I'm running 1.8.4 and I notice that data pasted into the WebREPL is truncated.

Start up the WebREPL and trying pasting the following

"*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************"

The result is that only around 256 characters of what is pasted actually shows up. This is most troublesome when trying to use paste mode (CTRL-E) to bring in some existing code.

This might be related to the dupterm ringbuffer getting filled: https://github.com/micropython/micropython/blob/master/esp8266/esp_mphal.c#L39

CANDIDATE · PULL REQUEST

esp8266/esp_mphal: Send data in chunks to mp_uos_dupterm_tx_strn.

closedby dpgeorgeopened 2017-10-03updated 2022-07-08

Sending byte-by-byte is inefficient and leads to errors in the WebSocket protocol when sending utf-8 encoded characters.

Fixes #3342.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied