Re: [dev] [st] Hardcoded colors. Can I change them runtime?

2018-08-01 Thread Daniel Vartanov
Just in case it is still relevant I cite a part of dwm description drom suckless.org where it explains why editing the source code and recompilation is the best way of configuring such type of software: """ dwm is customized through editing its source code, which makes it extremely fast and secur

Re: [dev] [st] Hardcoded colors. Can I change them runtime?

2018-08-01 Thread S. Gilles
On 2018-07-30T18:52:11+0200, Timur Fayzrakhmanov wrote: > Halo! > > I've tried to change color scheme using the following project > https://github.com/chriskempson/base16-shell. But I didn't get a success. > It seems like the colors are hardcoded at config.def.h and can not be > changed then. Unfo

Re: [dev] [st] Hardcoded colors. Can I change them runtime?

2018-08-01 Thread Cág
opal hart wrote: > Yes, it's a normal array of colours. To set colour 215 (starting from > 0), for example, just add a line `[215] = "#123456",` and it will set > that colour as appropriate. However, st already supports both > 256-colour and truecolour so you may not need to do this depending on >

Re: [dev] noice and NetBSD curses

2018-08-01 Thread Cág
Silvan Jegen wrote: > What does running 'locale' print on both machines? Mine's are all en_US.UTF-8, except for LC_COLLATE. I don't set anything other than LANG in profile. -- caóc

Re: [dev] noice and NetBSD curses

2018-08-01 Thread Cág
Hiltjo Posthuma wrote: > Maybe setlocale(LC_CTYPE, ""), not sure if that is correct. You could > technically mix different locales in filenames or use (almost) any byte > sequence though. rover, which I mentioned in the OP, has it too: https://github.com/lecram/rover/blob/master/rover.c#L405 --

Re: [dev] [st] Hardcoded colors. Can I change them runtime?

2018-08-01 Thread opal hart
On Wed, 1 Aug 2018 21:33:50 +0200 Timur Fayzrakhmanov wrote: > Something like printf "\\e]P%x%s" where %x is color index > and %s is RGB color. As I observed it's kind of "standard" way of > applying color schemes. I see. `OSC P` only works for the Linux VT, so it isn't standard as you describe.

Re: [dev] [st] Hardcoded colors. Can I change them runtime?

2018-08-01 Thread Timur Fayzrakhmanov
> Either copy config.def.h to config.h and edit that, or use > . opal hart, thank you for pointing at least the X-way of doing this. However, I expected to be able change a color using just escape sequences. Something like printf "\\e]P%x%s" where %x is

Re: [dev] noice and NetBSD curses

2018-08-01 Thread Silvan Jegen
On Wed, Aug 01, 2018 at 05:29:14PM +0200, Hiltjo Posthuma wrote: > On Wed, Aug 01, 2018 at 11:57:38AM +0200, Silvan Jegen wrote: > > On Wed, Aug 01, 2018 at 09:55:16AM +0200, Hiltjo Posthuma wrote: > > > On Tue, Jul 31, 2018 at 04:35:30PM -0500, Cág wrote: > > > > Hey, > > > > > > > > The thread i

Re: [dev] noice and NetBSD curses

2018-08-01 Thread Hiltjo Posthuma
On Wed, Aug 01, 2018 at 11:57:38AM +0200, Silvan Jegen wrote: > On Wed, Aug 01, 2018 at 09:55:16AM +0200, Hiltjo Posthuma wrote: > > On Tue, Jul 31, 2018 at 04:35:30PM -0500, Cág wrote: > > > Hey, > > > > > > The thread is here[0], and I guess this is more of curses problem, but > > > since I firs

Re: [dev] noice and NetBSD curses

2018-08-01 Thread Silvan Jegen
On Wed, Aug 01, 2018 at 09:55:16AM +0200, Hiltjo Posthuma wrote: > On Tue, Jul 31, 2018 at 04:35:30PM -0500, Cág wrote: > > Hey, > > > > The thread is here[0], and I guess this is more of curses problem, but > > since I first noticed it with noice, here it is. > > > > The question: what do rover

Re: [dev] noice and NetBSD curses

2018-08-01 Thread Hiltjo Posthuma
On Tue, Jul 31, 2018 at 04:35:30PM -0500, Cág wrote: > Hey, > > The thread is here[0], and I guess this is more of curses problem, but > since I first noticed it with noice, here it is. > > The question: what do rover and noice do differently, that the former > displays Unicode filenames right, a