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).
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?
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?
On 02/09/2026 23:45, Lawrence D?Oliveiro wrote:
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.
(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.)
Lawrence is the sort of guy who always wants to have a reply.
On Thu, 3 Sep 2026 05:30:37 -0000 (UTC), Eli the Bearded wrote:
Lawrence is the sort of guy who always wants to have a reply.Technology is a means to an end, not an end in itself.
On Thu, 3 Sep 2026 09:28:51 +0200
David Brown <david.brown@hesbynett.no> gabbled:
On 02/09/2026 23:45, Lawrence D?Oliveiro wrote:
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.
(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.)
Right, because usenet these days is overflowing with posts and wouldn't
cope
with many more.
On 03/09/2026 17:55, boltar@caprica.universe wrote:
On Thu, 3 Sep 2026 09:28:51 +0200
David Brown <david.brown@hesbynett.no> gabbled:
On 02/09/2026 23:45, Lawrence D?Oliveiro wrote:
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.
(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.)
Right, because usenet these days is overflowing with posts and
wouldn't cope
with many more.
Many of us would rather have just a few interesting threads, than a few interesting threads hidden amongst piles of rubbish.
I'm okay with threads drifting a bit off-topic - and even with threads
that are a bit off-topic to start with.ÿ But they should at least have /some/ relation to C as a programming language.ÿ I'm not okay with AI
slop, endless discussions on wildly different languages, cross-posts to totally random groups, posts that are just curses and insults, or people
who jump into a community of regulars who have been there for decades
and start trying to tell them what they should and should not talk
about.ÿ (Note - that was not a reference to you.)ÿ That's just rude and anti-social.
Right, because usenet these days is overflowing with posts and wouldn't cope >with many more.
Newflash - threads drift, stop being so uptight about it.
*sigh*
On 03/09/2026 17:55, boltar@caprica.universe wrote:
On Thu, 3 Sep 2026 09:28:51 +0200
David Brown <david.brown@hesbynett.no> gabbled:
On 02/09/2026 23:45, Lawrence D?Oliveiro wrote:
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.
(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.)
Right, because usenet these days is overflowing with posts and wouldn't
cope
with many more.
Many of us would rather have just a few interesting threads, than a few >interesting threads hidden amongst piles of rubbish.
David Brown <david.brown@hesbynett.no> writes:
On 03/09/2026 17:55, boltar@caprica.universe wrote:<snip>
On Thu, 3 Sep 2026 09:28:51 +0200
Many of us would rather have just a few interesting threads, than a few
interesting threads hidden amongst piles of rubbish.
Keep in mind that this thread is cross-posted to three different
groups.
It's the cross-posting idiots that start this; I've removed
the unnecessary groups (including comp.windows.x) from this reply.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 4 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 497102:26:52 |
| Calls: | 182 |
| Files: | 744 |
| D/L today: |
65 files (9,837K bytes) |
| Messages: | 73,659 |