You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created an issue 11 days ago but didn't get any reply. GH-45213
Does no one here need automatic indentation of the code with Readline?
I wanted to add it to my REPL but it gives a lot of problems when copy-paste text, the indentation is applied twice. I tried to use some hacks to prevent this but it's still broken.
Paste Bracket solves this problem but NodeJS doesn't support Paste Bracket modes in the Readline library.
To enable Paste Bracket mode you need to use \033[?2004h escape and then when you paste text "lorem ipsum" you should get \033[200~lorem ipsum\033[201~ but all you have is ~lorem ipsum~ because the NodeJS readline library strips the ANSI escapes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created an issue 11 days ago but didn't get any reply. GH-45213
Does no one here need automatic indentation of the code with Readline?
I wanted to add it to my REPL but it gives a lot of problems when copy-paste text, the indentation is applied twice. I tried to use some hacks to prevent this but it's still broken.
Paste Bracket solves this problem but NodeJS doesn't support Paste Bracket modes in the Readline library.
To enable Paste Bracket mode you need to use
\033[?2004h
escape and then when you paste text "lorem ipsum" you should get\033[200~lorem ipsum\033[201~
but all you have is~lorem ipsum~
because the NodeJS readline library strips the ANSI escapes.Beta Was this translation helpful? Give feedback.
All reactions