radian icon indicating copy to clipboard operation
radian copied to clipboard

line break not working on WSL2

Open mattocci27 opened this issue 5 years ago • 4 comments
trafficstars

  • radian version: 0.5.8
  • r version: 4.0.2
  • Ubuntu 20.4 on WSL2

Copying and pasting this

rnorm(3,
  1,
  0)

to an radian console on WSL2 ubuntu results in the following output.

r$> rnorm(3,)
[1] -0.225570560 -0.003819365  0.330800087

r$>   1,
Error: unexpected ',' in "  1,"

r$>   0)
Error: unexpected ')' in "  0)"

The above command works on an R console on WSL2 ubuntu and an radian console on a local ubuntu (not in WSL). Any suggestions??

mattocci27 avatar Oct 05 '20 08:10 mattocci27

What app are you using? It doesn't seem that it supports bracketed paste mode.

randy3k avatar Oct 05 '20 12:10 randy3k

Yes, that's true. It seems the problem of a terminal side. Line break doesn't work on Windows terminal but it works on Alacritty, and terminal in VS Code. Thanks!

mattocci27 avatar Oct 06 '20 08:10 mattocci27

I can confirm this is an issue with radian on Windows 10, with Neovim-Qt and Goneovim built-in terminals. R.exe doesn't have this issue.

mr-majkel avatar Oct 09 '20 13:10 mr-majkel

By the way, you could turn off auto match to make things behave better.

randy3k avatar Oct 09 '20 14:10 randy3k