Re: [dev] [st] can't set reverse cursor

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Wed, 19 Oct 2016 18:00:32 +0200

On Wed, Oct 19, 2016 at 11:02:03AM +0100, Cág wrote:
> Hi,
>
> I have 16 colours in config.h from my palette, from 0 to 15,
> with 0 (black) being defaultbg and 7 (white) being defaultfg.
> My cursor is 12 (brblue) and reverse cursor is set 7 (white).
> However, in reality reverse cursor is 0 (black), which is bg.
> Also, setting rcs to any other colour doesn't help and it
> remains the same, that of defaultbg.
>
> Also, compiling gives me this:
> --------------------------------
> st.c:3135:14: warning: 'width' may be used uninitialized in this function
> [-Wmaybe-uninitialized]
> if (term.c.x+width < term.col) {
> ~~~~~~~~^~~~~~
> --------------------------------
>
>
> Cág
>

The warning is exactly like it says: "maybe uninitialized" (it is not).
Gcc warnings can be very useful but can also often be ignored.

-- 
Kind regards,
Hiltjo
Received on Wed Oct 19 2016 - 18:00:32 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 19 2016 - 18:12:12 CEST