-
Notifications
You must be signed in to change notification settings - Fork 192
Open
Labels
enhancementNew feature or requestNew feature or request
Description
currently reedline sends a \e[6n to the terminal after every redraw (pressing any key).
this causes reedline to block until it gets the cursor-position back from the terminal.
lets say you have a 500ms ping (Geo-stationary satellite internet, cross-continent, etc):
- you send a single keypress lets say
a - 500ms: pass and it arrives at the server
- 1sec: reedline requests the cursor position (
\e[6n)- 500ms your terminal receives the request
- 500ms reedline recieves the response
- 500ms: reedline sends the updates to your terminal
so it takes 2 seconds to render 1 character change.. and half of it is caused by the cursor-position-request.
i found this by running nu via ^nu | ^tee test.bin and checking test.bin after every key-press in a separate terminal.
References
discussions about reedline being slow over ssh:
waltmckkands-code
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request