posit-dev / positron

Positron, a next-generation data science IDE
Other
2.24k stars 66 forks source link

Ascii control character \b is not recognised and renders as tofu #3683

Open shikokuchuo opened 1 month ago

shikokuchuo commented 1 month ago

Positron Version:

Positron Version: 2024.06.1 build 27 Code - OSS Version: 1.90.0 Commit: a893e5b282612ccb2200102957ac38d3c14e5196 Date: 2024-06-26T01:22:29.024Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Linux x64 6.5.0-41-generic

Steps to reproduce the issue:

cat("hello  \bworld")
> hello   world

What did you expect to happen?

Expectation would be (as there are 2 spaces after 'hello'):

cat("hello  \bworld")
> hello world

\r works as expected:

cat("hello  \rworld")
> world

Were there any error messages in the output or Developer Tools console?

None

petetronic commented 1 month ago

I'm able to reproduce this in a Positron R Console on Ubuntu 24.04, R 4.4.0 and Positron 2024.06.1-27.

Using the R cli via the Terminal shows hello world>.