Received: (at submit) by bugs.debian.org; 21 Apr 2001 12:16:25 +0000 From M.Buckett@dcs.hull.ac.uk Sat Apr 21 07:16:25 2001 Return-path: Received: from lehar.ucc.hull.ac.uk (mailhub4.hull.ac.uk) [150.237.196.3] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14qwJN-0006b3-00; Sat, 21 Apr 2001 07:16:25 -0500 Received: from humus1.ucc.hull.ac.uk (actually host humus.ucc.hull.ac.uk) by lehar.ucc.hull.ac.uk; Sat, 21 Apr 2001 13:16:16 +0100 Received: from cs8mb by humus1.ucc.hull.ac.uk with local (Exim 1.60 #1) id 14qwJ1-0000QE-00; Sat, 21 Apr 2001 13:16:03 +0100 Subject: xmessage foreground color To: submit@bugs.debian.org Date: Sat, 21 Apr 2001 13:16:03 +0100 (BST) Reply-To: M.Buckett@dcs.hull.ac.uk X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: "M.Buckett" Delivered-To: submit@bugs.debian.org Package: xbase-clientsVersion: 4.0.2-13 I found this bug in the stable xcontrib package but have submitted to bug for xbase-clients as xmessage seems to have moved between the two packages. xmessage package seems to have a bug and here is a fix: in xmessage/makeform.c 300c300 < XtVaSetValues(text, XtNwidth, width, XtNheight, height, NULL); --- > XtVaSetValues(XtParent(text), XtNwidth, width, XtNheight, height, NULL); xmessage -fg green doesn't give green text in the message box. Explanation: xmessage included in the xcontrib package for my debian distribution seemed to have a problem displaying a message. All I would get was a white empty box and the Okay message but the box was the correct size for the text. I discovered that this was due to my Xresources setup as clearing them displayed the message correctly. No matter how I tried I did not seem to be able to keep my Xresources and have xmessage work. Looking at the source and comparing it with xmotd (both use asciiTextWidget) I discovered that xmessage made a different call to set the values of the widget, so I made xmessage the same and hey presto it works. I'm no X programmer so I'm not sure how correct this is but it seems to work.