News for hackers. Stuff that matters.
Re:New startup sells coffee through SSH by orblivion on Wednesday May 01, 2024 @03:10PM (#40227879)
So unless you mean to exclusively sell coffee to users who don't have a white terminal background, you may want to consider your color scheme. I was missing the white text.

(I know this is considered an atrocity by some, but I happen to not really care enough about my terminal color to change the default)

Re:New startup sells coffee through SSH by bee_rider on Wednesday May 01, 2024 @03:49PM (#40228454)
The atrocity was committed by whoever set that default, we can work out a plea deal as long as you rat them out.
Re:New startup sells coffee through SSH by Tijdreiziger on Wednesday May 01, 2024 @05:52PM (#40229984)
Mac OS X’s Terminal.app used to be black-on-white by default, wouldn’t be surprised if that’s still the case.
Re:New startup sells coffee through SSH by int_19h on Wednesday May 01, 2024 @11:04PM (#40232307)
Xterm is black on white by default.
Re:New startup sells coffee through SSH by gavindean90 on Wednesday May 01, 2024 @04:21PM (#40228837)
The whole system wide light/dark stuff came about too late to help our terminal sessions.
Re:New startup sells coffee through SSH by zzo38computer on Wednesday May 01, 2024 @05:06PM (#40229414)
Is there an environment variable defined for specifying if you want light or dark colours? If so, then it would help with local programs, and also with remote programs (such as this one) if you add a SendEnv command into the SSH configuration file to specify that SSH should use this environment variable.
Re:New startup sells coffee through SSH by ammar2 on Thursday May 02, 2024 @09:53AM (#40236348)
A little non-portable but there is an xterm escape sequence[1] that gets the user's background color: \e]11;?\a

You might also be able to use the reverse-video[2] escape sequence to get something that works depending on the user's color scheme.

[1] https://stackoverflow.com/a/7767891

[2] https://en.wikipedia.org/wiki/Reverse_video

Re:New startup sells coffee through SSH by adamdotdev on Thursday May 02, 2024 @03:00PM (#40240161)
we meant to have this fixed before launch, but ran into some snags with charm's `wish` and adaptive colors.

shipped an improved light mode today!