Article View: comp.windows.x.motif
Article #1IUP (was: Re: a battery monitor)
From: Johann 'Myrkraverk' Oskarsson
Date: Fri, 04 Sep 2026 02:34
Date: Fri, 04 Sep 2026 02:34
89 lines
6025 bytes
6025 bytes
On 03/09/2026 3:28 PM, David Brown wrote: > On 02/09/2026 23:45, Lawrence D’Oliveiro wrote: >> On Tue, 01 Sep 2026 14:28:40 -0300, Anton Antimo wrote: >> >>> So, yes, xbattery.c (source code below) is able to read the desired >>> window geometry from the command line (as it's typical of X >>> programs). >> >> Instead of writing all that C code, why not using a preexisting >> GUI utility that can display simple widgets like progress bars, >> under the control of a shell script? >> > > The OP wrote a cross-post that was devoid of any C relevant content or > question for comp.lang.c. But he helpfully set follow-ups to a group > that presumably /is/ relevant - comp.windows.x. We already suffer from > far too many rambling off-topic threads, and suffer even more from some > of the obnoxious trolls that have followed. (To be clear, I am /not/ > counting the OP here!) If you want to give the OP advice on writing gui > programs for X, that's great - but please do so in a group that is > appropriate, and which the OP clearly thought was appropriate. Now that we are cross posting again, and not discussing programming for X windows specifically, we can start to discuss how to make graphical applications in C, in general. As it happens, there has been a tool for just that since the 90s, called IUP. I believe I've mentioned it before, but we can mention it again. A good mnemonic [1] is iup.sf.net -- you don't need to write more in the browser to land on its homepage. So, the question to you, David Brown, where /would/ you discuss IUP? I mean, it's cross platform, and in C, and the two programming languages I know that are C backwards compatible are Objective-C, and C++. So I've added comp.lang.c++ and comp.lang.objective-c to this discussion. On the cross platform front, it works on both Motif and Win32, so I've added comp.os.ms-windows.programmer.win32, and comp.windows.x.motif to this discussion. Isn't Rust meant to be able to call C functions too, so I've added comp. lang.misc to this discussion, as comp.lang.rust is still being debated in news.groups.proposals. There is also a third party port to Mac OS, so I've added comp.sys.next. misc to this discussion; after all, the current-era API for programming OS X, or is it OS XI these days?, is built on NeXT's. It should be tri- vial to either backport the current driver for NeXT, or write a new one from scratch. So, David Brown, do you think I should add more newsgroups to this dis- cussion, or do you think this is sufficient? I mean, I don't know what future drivers for IUP might exists, so why not add the newsgroups first? I don't think there is a graphical interface for the current incarnation of OpenVMS, so I did not add comp.os.vms, nor comp.sys.vms to this dis- cussion. The people there can just follow up, and add that cross post themselves. > > (For those in the other groups listed who might be wondering - > comp.lang.c is about the C /language/ - the language and the standards. > Just because a program happens to be written in C, does not mean it is > relevant or topical in the group, any more than a random post written in > the English language is topical for linguistics.languages.english. There > are millions of lines of C code written every day, and they cannot all > be topical in a single group. But if anyone wants to discuss details of > the language itself, comp.lang.c is the place to be.) That's also bullshit. Comp.lang.c is an eminently useful place to ask about how to program anything in C. That includes how to make graphical applications. And as everyone who's ever bothered to read any of comp. lang.c, you guys don't actually code anything in C -- I mean, the usual trolls -- so none of you knew about IUP in the first place. How pathetic is that? Best wishes, and happy coding graphical applications in C! [1] Unrelated to Johnny, the short story by William Gibson, and made into a semi-famous movie with Keanu Reeves, who now plays a different character on a regular basis. So I've added alt.fantasy to this dis- cussion. -- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Technical Details
Message-ID:
<77qmS.51340$kqHe.26075@fx07.ams4>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.105.104.MISMATCH!feed-5.dca.netnews.com!news-out.netnews.com!netnews.com!s1-4.netnews.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!fx07.ams4.POSTED!not-for-mailReferences:
<87v78oop87.fsf@safunu.org> <117a5eg$35q9q$4@dont-email.me> <117b7jj$3ep01$2@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.105.104.MISMATCH!feed-5.dca.netnews.com!news-out.netnews.com!netnews.com!s1-4.netnews.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!fx07.ams4.POSTED!not-for-mail MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: IUP (was: Re: a battery monitor) Newsgroups: comp.unix.programmer,comp.windows.x,comp.lang.c,alt.fantasy,comp.windows.x.motif,comp.os.ms-windows.programmer.win32,comp.lang.c++,comp.lang.objective-c,comp.sys.next.misc,comp.lang.misc References: <87v78oop87.fsf@safunu.org> <117a5eg$35q9q$4@dont-email.me> <117b7jj$3ep01$2@dont-email.me> Content-Language: en-US From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> Organization: Watcom Pro Ltd. In-Reply-To: <117b7jj$3ep01$2@dont-email.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 89 Message-ID: <77qmS.51340$kqHe.26075@fx07.ams4> X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Fri, 4 Sep 2026 10:34:42 +0800 X-Received-Bytes: 5436