positron icon indicating copy to clipboard operation
positron copied to clipboard

Brighter console prompt `>`

Open rjake opened this issue 1 year ago • 11 comments

In all of the dark theme options, the prompt is very hard to see. Is there a way to make the > line brighter? I looked through the console. setting options and haven't found anything that updates this. I know the 🟥 indicates that my code is still running but I'm so used to looking for the > to reappear.

image

rjake avatar Jul 11 '24 14:07 rjake

In vscode/terminal I have a visible pink prompt via the .Rprofile: options(prompt = "\001\033[0;35m\002>\001\033[0m\002 ")

maybe this helps :)

LGraz avatar Jul 11 '24 15:07 LGraz

@LGraz nice suggestion. This works in the terminal but not in the console unfortunately

Terminal: image

Console: image

rjake avatar Jul 11 '24 16:07 rjake

Can you tell me specifically tell me which theme you are using? And are you saying the active prompt is always dim, even when the console is idle? Or only while code is executing?

juliasilge avatar Jul 11 '24 19:07 juliasilge

I'm using Positron Dark. And the active prompt is dim when nothing is being typed. I agree, it's hard to tell that the console is ready to use again.

In this image, where I wrote some code, the prompt is bright, and was bright as I was typing. But then when it's "waiting" again, it's dim, and almost impossible to see.

image

rmflight avatar Jul 11 '24 21:07 rmflight

OK, turns out this a Linux-only problem with the console!

image

Thanks so much to both of you for the report.

juliasilge avatar Jul 15 '24 15:07 juliasilge

@juliasilge I'm using Windows 10 and seeing this behavior. Am I misunderstanding your note about Linux-only?

rjake avatar Jul 15 '24 15:07 rjake

Oh hmmmm, nope, you do not misunderstand. We were only able to reproduce it on Linux internally. I'll remove the Linux tag and we'll see how things turn out as we solve the problem.

juliasilge avatar Jul 15 '24 15:07 juliasilge

I've noticed this issue in all 10 of the dark themes that I've tried (in Ubuntu). I'm messing around with some theming for other colors. Can the console prompt color be controlled in a theme? If so, what is the theme component to control it?

JeffreyRStevens avatar Jul 18 '24 19:07 JeffreyRStevens

I don't think so, unfortunately @JeffreyRStevens. I don't think there is a workaround and we just need to fix this bug. 😬

juliasilge avatar Jul 18 '24 22:07 juliasilge

OK, thanks, @juliasilge!

JeffreyRStevens avatar Jul 18 '24 23:07 JeffreyRStevens

Reported again at https://github.com/posit-dev/positron/discussions/4443 but on Windows

juliasilge avatar Aug 22 '24 16:08 juliasilge

Verified Fixed

Positron Version(s) : 2024.09.0-33
OS Version          : OSX/Ubuntu

Test scenario(s)

Console prompt easily visible on OSX/Ubuntu in dark mode

Link(s) to TestRail test cases run or created: N/A

testlabauto avatar Sep 12 '24 18:09 testlabauto