Monday, July 19, 2021

Digest for comp.lang.c++@googlegroups.com - 6 updates in 2 topics

Paulo da Silva <p_d_a_s_i_l_v_a_ns@nonetnoaddress.pt>: Jul 19 08:15PM +0100

Hi!
 
I have tried lots of ideas from Google search but still didn't get any
success debugging a C program with ncurses using eclipse! I think that's
mainly because the suggestions are for older eclipse versions.
 
This should be simple. It's only a matter of being able to insert
-tty=/dev/pts/X in the gdb command line issued by eclipse, I think. X is
obtained by tty command on a pretended terminal.
 
But I can't do this. Besides the command line "issued" by eclipse uses
-nx which tells eclipse to not read any command from .gdbinit file!
 
Does anyone here have used eclipse for such purpose that could perhaps help?
 
Thank you.
MrSpud_2fxg@cligh74ct.info: Jul 19 07:50AM

On Sat, 17 Jul 2021 16:30:12 -0000 (UTC)
>I have two text inputs, so I must write text editing code. I have a scrollable
>selection window, so I must write logic to update the selection, and to handle
>the ScrollUp and ScrollDown buttons.
 
You can obviously add as many bells and whistles as you like, but ultimately
all you need for a basic login system is username and password - 1 window,
2 textboxes. For the other stuff you don't need a drop down, you could just
have them pre-listed which can then be clicked on, much simpler.
 
>And, then there's other, non-window logic, such as the logic to start the X
>server (if necessary), the logic to validate usernames and passwords (both
>locally and remotely), and the logic to start the user's WM of choice.
 
Basic *nix fork-exec stuff.
 
 
>I have, at my fingertips, the Athena widget set (both Xaw and Xaw3d), and
>Motif,
>supplied as part of the Slackware Linux distribution I work in. I also have
 
I do have a soft spot for slackware - mainly the lack of the god awful
systemd - but its hardly a standard distro these days and was last updated 5
years ago so obviously not much happening these days. I doubt any of the
common distros will have those libraries installed so if you want it to be
used by others....
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Jul 19 12:53AM -0700

> all you need for a basic login system is username and password - 1 window,
> 2 textboxes. For the other stuff you don't need a drop down, you could just
> have them pre-listed which can then be clicked on, much simpler.
[...]
 
Humm...
 
https://secure.login.gov/
 
;^)
MrSpud_X19y3su@nl5uzoqa76.info: Jul 19 08:16AM

On Mon, 19 Jul 2021 00:53:47 -0700
>[...]
 
>Humm...
 
>https://secure.login.gov/
 
Have a look at the MacOS login screen. 2 textboxs, nothing else (for normal
use), not even a window, just a background picture and a few buttons down
the bottom for reboot etc.
Lew Pitcher <lew.pitcher@digitalfreehold.ca>: Jul 19 03:20PM

On Mon, 19 Jul 2021 07:50:50 +0000, MrSpud_2fxg wrote:
 
> all you need for a basic login system is username and password - 1 window,
> 2 textboxes. For the other stuff you don't need a drop down, you could just
> have them pre-listed which can then be clicked on, much simpler.
 
You apparently misunderstand what I'm working with. X11 is a communications
protocol, with the "client" end implemented in Xlib and the server end implemented
in the X server.
 
X11 doesn't have "textboxes", and it's "windows" are simply rectangular regions
of the display that can be drawn on. Such a "window" can receive keystrokes and/or
mouse activity, if it chooses. I'm working at a much lower level than you think
I am.
 
As for "all you need ... is username and password", that might be true in a single
system network, but in a multi-system network, using the facilities of X11, I
also need a "hostname" to connect to (it may be "localhost", but, then again, it
may also be "desktop_computer.my.lan" or "game_server.my.lan"). For me, this
becomes a scrollable selector with three windows (a next-selection downarrow
window, a previous-selection uparrow window, and a selection output window).
 
What you are describing is a simple, one-system display manager implemented with
one of the X11 widget sets (such as GTK+, or QT or Athena), and not the more
comprehensive multi-system display manager that I'm trying to build.
 
[snip]
 
HTH
--
Lew Pitcher
"In Skills, We Trust"
MrSpud_K_o53g2z@wl4yrs_t67fb214q.gov: Jul 19 03:31PM

On Mon, 19 Jul 2021 15:20:43 -0000 (UTC)
>protocol, with the "client" end implemented in Xlib and the server end
>implemented
>in the X server.
 
Given I already told you I wrote my own window manager (along with half a
dozen games and more utilities than I can count in the last 25 years) I'm
wondering why you think I need some patronising heads up on what constitutes
X11 and Xlib?
 
>mouse activity, if it chooses. I'm working at a much lower level than you
>think
>I am.
 
Writing your own buttons and textboxes in raw X11 is fairly trivial *IF* you
know the API well and arn't too fussed about pretty graphics.
 
>may also be "desktop_computer.my.lan" or "game_server.my.lan"). For me, this
>becomes a scrollable selector with three windows (a next-selection downarrow
>window, a previous-selection uparrow window, and a selection output window).
 
Or you could have a textbox with intelligent autocomplete of hostnames since
presumably you'll have a list anyway if you're planning on having a pull down.
 
>with
>one of the X11 widget sets (such as GTK+, or QT or Athena), and not the more
>comprehensive multi-system display manager that I'm trying to build.
 
No, I wasn't. But it doesn't matter, I was just trying to be helpful. You do
what you like.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: