randy3k / radian

A 21 century R console
MIT License
2.02k stars 76 forks source link

line break not working on WSL2 #225

Open mattocci27 opened 4 years ago

mattocci27 commented 4 years ago

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??

randy3k commented 4 years ago

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

mattocci27 commented 4 years ago

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!

mr-majkel commented 4 years ago

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.

randy3k commented 4 years ago

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