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'm using the jobs output pane to render the progress of some background computations and I notice that the text there is far uglier than the equivalent in the terminal that comes with ubuntu.
Here's what I get in ubuntu terminal:
Which looks great. In contrast, this is what I get in the Jobs output pane:
Code to generate:
jobID=rstudioapi::jobAdd('test')
bar_width=80-2warmup_width= floor(bar_width/2)
sampling_width=bar_width-warmup_widthbar= paste0(
'\U00C '#scroll to next page (hack bc the clear screen and cursor set control sequences don't work)
, strrep('\U2592',warmup_width) #lighter shade block
, strrep('\U2593',sampling_width) #darker shade block
, '\n'
, '['
, strrep('\U2588',warmup_width-1) #full block character
, '\U258B'#partial block character (full set: c('\U258F','\U258E','\U258D','\U258C','\U258B','\U258A','\U2589','\U2588') )
, strrep('',sampling_width)
, ']\n'
)
rstudioapi::jobAddOutput(jobID,bar)
There's a small chance that this will be improved when we next update xterm.js (via the new canvas renderer) but I'm not sure when we'll be able to approach that work.
Activity
[-]Prettier rendering of job's output[/-][+]Prettier rendering of job output[/+]kevinushey commentedon Jun 9, 2021
There's a small chance that this will be improved when we next update xterm.js (via the new canvas renderer) but I'm not sure when we'll be able to approach that work.
gtritchie commentedon Jun 9, 2021
Xterm.js is only used for the terminal; the ANSI support in console, build pane, etc. is a separate implementation.