From owner-freebsd-questions@FreeBSD.ORG Mon May 26 09:55:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1B0837B401 for ; Mon, 26 May 2003 09:55:09 -0700 (PDT) Received: from smtp0.adl1.internode.on.net (smtp0.adl1.internode.on.net [203.16.214.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73EB843F75 for ; Mon, 26 May 2003 09:55:08 -0700 (PDT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp1969.sa.padsl.internode.on.net [150.101.26.176]) h4QGt6MO022195; Tue, 27 May 2003 02:25:06 +0930 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: "Katinka Mills" , "Freebsd-Questions" Date: Tue, 27 May 2003 02:25:05 +0930 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200305270225.05759.malcolm.kay@internode.on.net> Subject: Re: ncurses X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 16:55:10 -0000 On Tue, 27 May 2003 00:04, Katinka Mills wrote: > Hi all, > > I have googled and I have RTFM'd but I am missing something :o( > > How do I set the background colour of the ENTIRE window and screen ? > > I just hate black lol and would like blue :o) > > I can make the text a colour and the background around the text a colou= r. > It is a while since I worked with ncurses; but here is a small extract of code I have used following window creation which sets the attributes and the overall background: wattrset(curwin,CYAN_ON_BLACK); wbkgd(curwin,(CYAN_ON_BLACK)|0x20); clearok(curwin,1); wclear(curwin); =20 CYAN_ON_BLACK is defined somewhere as a color pair plus attribute Hope this helps Malcolm