HDTenEightyP/NetNews huggingface dataset:
From: gaissmai@xwini.rz.uni-ulm.de (Karl Gaissmaier)
Newsgroups: fj.mail-lists.x-window
Subject: Re: xdm and IBM RS6000
Date: 4 Oct 92 10:19:22 GMT
Distribution: fj
Organization: Universitaet Ulm

Date: Thu, 1 Oct 1992 11:11:46 GMT
Message-Id: <1992Oct1.111146.28282@wega.rz.uni-ulm.de>
Newsgroups: comp.windows.x


In article <1992Sep30.171857.8096@athena.mit.edu>, ellis@athena.mit.edu (Steve Ellis) writes:
|> 
|>     I am having a problem with xdm on a IBM RS6000 (AIX3.2.2).  When
|> running in "debug" mode, everything appears normal, and the X terminals
|> work as expected. However, when running in the default daemon mode, the
|> login window appears on the X terminal, but upon logging in, the login
|> window disappears, but no X session is started. After 20 seconds, the
|> login window re-appears. Any pointers on what to look for, or specific
|> compile options required would be appreciated.

hmm

that looks like an error in the Xsession file, scan
the xdm-error file for errors.
first try an login with loginname and passwd, but after the passwd do not
press <return>, test the <F1> key, because when the Xsession file has the
following code:

.
.
case $# in
1)
        case $1 in
        failsafe)
                exec xterm -title "Help-terminal"
                ;;
        esac
esac

you can  login, when the error occurs in your personal
xsession file

it's also possible, that you start all processes in background mode,
thats wrong, you have to start the last process (e.g. twm or xterm)
in foreground mode,
and that is the session control process, when you terminate this
process, you also terminate your session. our last process in
the Xsession file looks like this:
.
.
        exec xmessage  -g +0+0 -title "Session Control" -n "Logout" \
                       -iconic "terminate Session ? " 

hope i could help you
Charly
=========================================================================
Karl Gaissmaier                      gaissmai@rzmain.rz.uni-ulm.de
Rechenzentrum Uni Ulm               
Albert Einstein Allee 11             Telefon: (Germany) 0731/5022499
W-7900 Ulm / Germany                 Telefax: (Germany) 0731/5022471
=========================================================================
From: irj@inf.rl.ac.uk (Ian R Jenkins)
Newsgroups: fj.mail-lists.x-window
Subject: Aborting from infinite loops
Date: 26 Sep 92 09:03:49 GMT
Distribution: fj
Organization: Rutherford Appleton Laboratory

Date: 25 Sep 92 15:32:59 GMT
Message-Id: <12787@hardy.rl.ac.uk>
Newsgroups: comp.windows.x

I am new to X programming, so if this is a basic or FA question, I apologise.

Consider a program that is in an infinite loop: how is it possible to 'Abort'
the loop by pressing a button widget - the processor is fully occupied with
the loop, so do I use some sort of event pending mechanism, i.e. XtPending.
Please don't tell me to avoid the inffinite loop - that is just an example!!

Ian Jenkins

--

	"I'm not going to die, I've just bought a new pair of trousers"

				Havergal Brian, aged 92

Ian Jenkins				JANET:	irj@uk.ac.rl.inf
Rutherford Appleton Laboratory,		UUCP:	..!mcsun!ukc!rlinf!irj
Chilton, Didcot, Oxon. OX11 0QX.
From: danodom@matt.ksu.ksu.edu (Dan Odom)
Newsgroups: fj.mail-lists.x-window
Subject: Re: To C or not to C...
Date: 3 Oct 92 19:28:47 GMT
Distribution: fj
Organization: Kansas State University

Date: 3 Oct 92 00:56:42 GMT
Message-Id: <1air4aINNbcb@matt.ksu.ksu.edu>
Newsgroups: comp.windows.x,comp.windows.open-look,comp.lang.c,comp.lang.c++,comp.sources.testers

wutcd@chemnitz.guug.de (Joerg Wunsch) writes:

>No sorry, i remember an introducing document of gcc which states that
>this compiler is believed to be portable to any _32bit_ machine. But,
>do you know anyone running a 8086 nowadays (Laptops exclued)??? Most
>of the DOS boxes are sleeping 32 bitters, so the DJGCC will do what
>you're looking for.

   There is a version of GNU C++ 2.1(?) that will run under MS-DOS
on [34]86 machines.
-- 
Dan Odom
Kansas State University
danodom@matt.ksu.ksu.edu
From: hrp@pecan.cray.com (Hal Peterson)
Newsgroups: fj.mail-lists.x-window
Subject: Problem with f.raiselower in tvtwm
Date: 3 Oct 92 01:06:04 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Fri, 2 Oct 92 13:48:36 CDT
Message-Id: <9210021848.AA01328@pecan03.cray.com>

VERSION:
    R5, tvtwm patchlevel 7

CLIENT MACHINE and OPERATING SYSTEM:
    Sparc/SunOS 4.1.1

DISPLAY TYPE:
    Sun BW2, Sun CG4

WINDOW MANAGER:
    tvtwm

COMPILER:
    native cc

AREA:
    tvtwm

SYNOPSIS:
    f.raiselower can leave the windows in the panner with a different
    stacking order than the windows they represent on the desktop.

DESCRIPTION:
    f.raiselower uses XConfigureWindow (CWStackMode <- Opposite) to
    juggle windows both on the desktop and in the panner.  Given the
    right conditions, though (see REPEAT BY, below), the stacking of
    the windows in the panner can differ from the stacking on the
    desktop, and so XConfigureWindow does the wrong thing.

    This seems to happen because when tvtwm scales the windows to fit
    into the panner, windows that are adjacent on the desktop overlap
    in the panner, changing the stacking order that XConfigureWindow
    manipulates.

REPEAT BY:
    Start tvtwm with a panner and three windows (I used xlogo) with
    the following geometries:
	VirtualDesktop:	2x2
	PannerGeometry:	+0+0
	window-a:	500x700+0-0
	window-b:	500x700+508-0
	window-c:	811x433+0-0
    Note that windows a and b do not overlap on the desktop but they
    do in the panner.

    Use f.raise (I have this on Button1:title) on the windows in the
    order c, b, a: this should leave window-c on the bottom and
    windows a and c side by side.  If you look carefully, though, you
    may notice that the edges of window-a and window-b overlap in the
    panner.

    Move the mouse cursor to the area of window-a that overlaps
    window-c.  This is near the lower left corner of the visible
    desktop.

    Use f.raiselower (I have this on "F1") four times.

    Note that on the desktop, window-c is on top of window-a, but in
    the panner, window-c is on the bottom.

SAMPLE FIX:
    I don't have one, but two approaches come to mind.  One could do
    f.raiselower by hand rather than using XConfigureWindow, or one
    could do the scaling from desktop to panner so that the stacking
    order in each is always identical.  But the former is hard work
    and the latter may not be possible for the general case.  Any
    suggestions?


--
Hal Peterson				Internet:  hrp@cray.com
Cray Research, Inc.			Telephone:  +1 612 683 5440

	Statistics:  the quantification of ignorance.
From: devuns@alsys.fr (Olivier Devuns)
Newsgroups: fj.mail-lists.x-window
Subject: RE: XDM and Console Windows
Date: 1 Oct 92 11:51:31 GMT
Distribution: fj
Organization: Workstation Div., Supermicro Systems Group, Sony Corporation

Date: Thu, 1 Oct 92 11:07:21 +0100
Message-Id: <9210011007.AA20006@venus.alsys_sa>


The console problem was solved with OpenWindows 3.0 by setting the good
protection bits on /dev/console during xdm initialization :

In the file /usr/lib/X11/xdm/Xstartup :

#!/bin/sh
#
# Xstartup
#
# Run as root...
# test is builtin in sh...
if test "$DISPLAY" = ":0"; then
  #  Set up the protection of the console the same way as init...
  #  else the -C option of Xterm or Cmdtool won't work.
  #chmod ugo+rw /dev/console
  # or better?
  /etc/chown $USER /dev/console
  /usr/bin/chgrp tty /dev/console
  /usr/bin/chmod o-wr /dev/console
fi

Of course, Sun did not provide this, since xdm operation was not activated by
default in the standard OpenWindows delivery ...

-----------------------------------------------------------------------
Olivier Devuns -- Ada Tools Development Engineer
ALSYS          -- 29 Ave. LR Duchesne, 78170 La Celle St Cloud - FRANCE
Voice          : (33-1) 30781717
Email          : devuns@alsys.fr (spare : devuns%alsysfr@inria.fr)

                     "Views expressed are my own."
-----------------------------------------------------------------------
From: achille@leland.StanFord.EDU ( Achille Hui, the Day Dreamer )
Newsgroups: fj.mail-lists.x-window
Subject: Re: Wanted: "bitmap gallery" utility
Date: 28 Sep 92 21:09:13 GMT
Distribution: fj
Organization: Dept. of Physics, Stanford University.

Date: 26 Sep 92 19:06:31 GMT
Message-Id: <achille.9209261206311756@leland.Stanford.EDU>
Newsgroups: comp.windows.x

>    Hi folks,
>I need a utility which displays many bitmaps in a single window 
>(e.g. displays 25 30x30 bitmaps), preferably ALL the bitmaps contained 
>in a directory. Does such an animal exist?
>
>-- 
>        Massimo Campostrini, 
>Istituto Nazionale di Fisica Nucleare, Sezione di Pisa,
>Piazza Torricelli 2, I-56126 Pisa, Italy  ||  Phone: (+39)(50)42093
>Internet: campo@sunthpi3.difi.unipi.it    ||  Fax:   (+39)(50)48277

If you have John Ousterhout's Tk toolkit on you system, the following
wish scripts will do the job. If you don't have one, demand your system
admin to have one. 

	Hopefully this helps....		

------------------------------------achille (eillihca@drizzle.stanford.edu)
JAXU -- Just Another X-window User

P.S:	you should modify the first line of the following script
	to reflect the correct location of the program "wish" on
	your system.
---- WISH SCRIPT FOLLOWS ----cut-here-------------------------------------
#!/usr/local/bin/wish -f
#
#	usage: bitmaps bitmap1 [ bitmap2 ..... ]
#
proc centerString str {
    global maxlen
    set len [expr $maxlen-[string length $str]]
    if $len<=0 {
        return "$str"
    } else {
        return [format "%*s%s%*s" $len "" "$str" $len ""]
    }
}
if $argc<=0 {
    exit
} else {
    set ncol 1
    while {$ncol * $ncol < $argc} {
        set ncol [expr $ncol+1]
    }
    set nrow 1
    while {$nrow * $ncol < $argc} {
        set nrow [expr $nrow+1]
    }
    label .label -borderwidth 2 -relief sunken \
        -font -*-helvetica-medium-r-normal--*-180* -text bitmaps
    pack append . .label {top pady 10 expand fill}
    set k 0
    set maxlen 7
    for {set i 0} {$i < $nrow} {set i [expr $i+1]} {
        frame .$i -borderwidth 0 -relief flat
        pack  append . .$i {top expand fill}
        for {set j 0} {$j < $ncol} {set j [expr $j+1]} {
            if $k<$argc {
                set fname [lindex $argv $k]
                set bname [file tail $fname]
                set len [string length $bname]
                set len [string length $bname]
                if $len>$maxlen {
                    set maxlen $len
                }
                button .$i.$j -borderwidth 2 -relief raised -bitmap @$fname
                bind .$i.$j <Any-Enter> "
                        %W activate; set tk_priv(window) %W
                        .label config -text [centerString $bname]
                "
                bind .$i.$j <Any-Leave> "
                        %W deactivate; set tk_priv(window) {}
                        .label config -text [centerString bitmaps]
                "
                bind .$i.$j <3> {exit}
		pack append .$i .$i.$j {left expand fill}
            }
            set k [expr $k+1]
        }
    }
    focus .
    .label config -text [centerString bitmaps]
}
From: frite@vlsi.polymtl.ca), (Michel Besner)
Newsgroups: fj.mail-lists.x-window
Subject: Problems using translations : (
Date: 2 Oct 92 13:47:50 GMT
Distribution: fj
Organization: Ecole Polytechnique de Montreal, lab. INFO

Date: 29 Sep 92 18:54:08 GMT
Message-Id: <1992Sep29.185408.654@vlsi.polymtl.ca>
Newsgroups: comp.windows.x.motif,comp.windows.x


	Hi there !


	I'm trying to receive events while keeping the shift+left button
down. I want to continue receiving those events while I'm moving the
mouse around (with the shift+left button still down ...).

	So far I've tried using :

	Shift<Btn1Down>,<Btn1Motion> -> I get the first event but nothing
after ....

	Shift<Btn1Motion> doesn't seem to work -> I get a code dumped
in BindActions :(


Is there a way to do it ?
Or what I'm doing wrong ?
Did I miss something ?

Any hints are welcome :)

Thanx in advance !!	
--
			Michel Besner, eng
			Sacred Heart Hospital research center

"life is a big bowl of JELL-O  :) :) "
From: kmo@sae.com (Mike Ovington)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X regions: why or why not?
Date: 3 Oct 92 00:00:49 GMT
Distribution: fj
Organization: Software Architecture & Engineering, Inc.

Date: Wed, 30 Sep 1992 14:30:50 GMT
Message-Id: <1992Sep30.143050.13470@sae.com>
Newsgroups: comp.windows.x

In article <1992Sep29.171244.2490@lsl.co.uk>, snail@lsl.co.uk writes:
|> In article <THOTH.92Sep27125200@beach.cis.ufl.edu>, thoth@beach.cis.ufl.edu (Robert Forsman) writes:
|> > 
|> >> I've noticed, however, that not much of the freeware
|> >> X software that I can ftp uses regions.  Why is this?
|> > 
|> >   I believe it's just that not many people know how to accumulate
|> > Expose events properly.  It's a darn shame too because programs like
|> > xdu really lose when you OpaqueDrag across them.
|> 
|> Could someone show me (and others :) ) how please? JUst curious....
|> --

Look at Xlib Programming Manual Volume One of the O'Reilly series.
An example code fragment is on page 72 in my edition, but just check the
index for:
regions
   coalescing Expose events

In our applications, smart redraws can make a huge difference in the
speed of the application.
-- 
________________________________________________________________________________
    Michael S. Ovington                         Template Software 
       uunet!sae!mikeo                   13100 Worldgate Drive, Suite 340       
        mikeo@sae.com                         Herndon, VA 22070-4382
From: janm@Wien.docs.uu.se (Jan Mattsson)
Newsgroups: fj.mail-lists.x-window
Subject: Dirt
Date: 5 Oct 92 21:17:55 GMT
Distribution: fj
Organization: Uppsala University

Date: 5 Oct 92 15:35:27 GMT
Message-Id: <janm.718299327@Wien>
Newsgroups: comp.windows.x


I'd like to hear some opinions about Dirt from people who have used it.
Thanks in advance.

--
Jan Mattsson, CS student, Uppsala University, Sweden
janm@bern.docs.uu.se or janm@minsk.docs.uu.se
From: m.roch@reading.ac.uk (Mike Roch)
Newsgroups: fj.mail-lists.x-window
Subject: Performance Impact of Different X's
Date: 30 Sep 92 18:38:41 GMT
Distribution: fj
Organization: University of Reading CSC

Date: 30 Sep 92 13:46:12 GMT
Message-Id: <BvE8x1.FLM@csug.cs.reading.ac.uk>
Newsgroups: comp.windows.x,comp.windows.open-look

Does anyone have any information (preferably quantitative) about the 
relative impact on the performance of Sun Sparc 1s (16MB memory)
of		MIT X with (say) twm, Motif with mwm and Open-Look with olwm.

Which will allow the greatest number (adequately performing) X-clients/
X-terminals.

Mike

=======================================================================
Mike Roch, Computer Services Centre,               M.Roch@Reading.ac.uk
University of Reading, Whiteknights,                   Tel: 0734 318430
Reading, RG6 2AX                        	       	      Fax: 0734 753094
From: kwan@netcom.com (Kwan-Seng Low)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Free software and the future of support for Diamond products
Date: 28 Sep 92 13:21:24 GMT
Distribution: fj
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

Date: Sat, 26 Sep 92 01:36:39 GMT
Message-Id: <570nnyp.kwan@netcom.com>
Newsgroups: comp.unix.sysv386,comp.windows.x,comp.os.linux,comp.unix.bsd,comp.os.mach,comp.sys.ibm.pc.misc,comp.sys.ibm.pc.hardware

In article <bill.717458450@chaos.cs.umn.edu> bill@chaos.cs.umn.edu ( Hari Seldon     psychohistorian ) writes:
>In <7s0nqk-.hasty@netcom.com> hasty@netcom.com (Amancio Hasty Jr) writes:
>
>>In article <1992Sep25.075815.10416@thunder.mcrcim.mcgill.edu> mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
>>>In article <Bv034L.DEJ@usenet.ucs.indiana.edu>, ntaib@silver.ucs.indiana.edu (Iskandar Taib) writes:
>>>> In article <c3xn+a=.kwan@netcom.com> kwan@netcom.com (Kwan-Seng Low) writes:
>>>>> Here's my dream card: User contributed, VESA compliance SVGA card.
>>>>> Given enough hardware design tools ([...]), one would
>>>>> came up a hardware design that only utilize standard component
>>>>> that's readily available in any large electronics shop [...].
>>>>> Complete schematics, parts list, how to obtain it, complete doc. on
>>>>> how to build it, everything available on public domain.
>>>> Why bother, when you can buy a very good card for under $200?
>>>
>>>Why?  To quote the posting you replied to, complete schematics, parts
>>>list, how to obtain it, [...], everything available on public domain.
>>>
>>>Of course, perhaps your "very good card for under $200" *has* all of
>>>that.  If so, please tell me where to get it!  Tell the whole net
>>>where, for that matter - the Diamond flap has demonstrated the
>>>existence of plenty of people who'd love to find such a thing.
>>>
>>I just finished speaking to customer marketing out of S3
>>Corporation.
>>If you are interested, S3 can make readily available the 
>>complete schematics on how to build an S3 based svga card.
>>Maybe we could just build an 8C928 based card which could
>>be 2 to 3 times faster than the 8C911 used in the Stealth.
>
>>And, I can provide an X11R5 server which can used the
>>extended graphics functions on the S3 card.
>
>>So, the ball is now in the hands of the EE types.
>
>>How about it guys? Shall we make a run for it?
>
>so what will we do if the schematic call out asic's? who has access to 
>a foundry??
>
>bill pociengel
>--
>llbi locgeenpi " i'm a little confused right now"

Volume, that's the key issue. If we could get enough volume, most vendor will
supply you with asic chipset.
Kwan
From: anja@rcc.de (Anja-Maria Seelig)
Newsgroups: fj.mail-lists.x-window
Subject: problems with OpenWindows2 / OpenWindows3
Date: 7 Oct 92 00:09:42 GMT
Distribution: fj
Organization: Home

Date: 6 Oct 92 13:50:51 GMT
Message-Id: <1992Oct6.135051.873@rcc.de>
Newsgroups: comp.windows.x


Hello,

I've been developing my final study work with OpenWindows3 in XView on a 
SPARCstation.
Unfortunately, the program is to be run with OpenWindows2, too. 

Running my program with OW2 results in many XView warnings and  finally in
segmentation faults. :-(

Here are some problems with OW2, I do not have with OW3:

I cannot open a popup-window for a second time if it was destroyed by pushing 
the pushpin.
A '\n' in a notice-message-string is not evaluated.

I get many warnings like:
 
Xiew warning: Object 0x2580f0, invalid object (embedding seal incorrect), xv_get
Xiew warning: Object 0x2580f0, invalid object (embedding seal incorrect), xv_set
...

Help is very urgent! 

Many thanks in advance! 
-- 
+------------------------------------------------------------------------+
|  Anja-Maria Seelig             INTERNET : a@rcc.de                     |
|  Heinrichstr. 42                                                       |
|  4800 Dortmund 1                                                       |
From: wutcd@hadrian.hrz.tu-chemnitz.de (Joerg Wunsch)
Newsgroups: fj.mail-lists.x-window
Subject: Re: To C or not to C...
Date: 28 Sep 92 01:27:07 GMT
Distribution: fj
Organization: tu-chemnitz

Date: 27 Sep 92 20:45:26 GMT
Message-Id: <wutcd.717626726@hadrian>
Newsgroups: comp.windows.x,comp.windows.open-look,comp.lang.c,comp.lang.c++,comp.sources.testers

>In article <28634@vedge.UUCP> hendrik@vedge.UUCP (Hendrik Boom) writes:
>>sm86+@andrew.cmu.edu (Stefan Monnier) writes:
>>...
>>: And GCC is widely available now !
>>: So just go to C++ (or better) !
>>
>>Is GCC also available on 8086 PC's?  Maybe even as a cross-compiler?

No sorry, i remember an introducing document of gcc which states that
this compiler is believed to be portable to any _32bit_ machine. But,
do you know anyone running a 8086 nowadays (Laptops exclued)??? Most
of the DOS boxes are sleeping 32 bitters, so the DJGCC will do what
you're looking for.

	enjoy,
	J"org
--
J"org Wunsch, TCD GmbH Dresden, R"ahnitzgasse 18, D-O-8060 Dresden
                                                              \     ~.~. 
	joerg_wunsch%bonnie@hadrian.hrz.tu-chemnitz.de         \   ~  | ~ 
	voice: +49-351-5965 137                                 \    ===
From: Markku.Savela@tel.vtt.fi (Markku Savela)
Newsgroups: fj.mail-lists.x-window
Subject: Shared widget library (SunOS 4.1.3) with Gnu C 2.2.2? Possible?
Date: 28 Sep 92 07:10:36 GMT
Distribution: fj
Organization: Technical Research Centre of Finland

Date: 27 Sep 92 21:58:32 GMT
Message-Id: <Bv9BpK.KJB@tik.vtt.fi>
Newsgroups: comp.windows.x


  I have to write a Widget Libary, but would like to use ANSI C while
  doing it. Also, I would like to be able to make it as shared
  library. Is this possible with SunOS 4.1.* and Gnu C 2.2.2?

  I was planning to use the Imakefile and setup from the lib/Xaw as a
  template, how should I change the Imakefile to work with Gnu C and
  still produce the shared libraries?

  SharedLibraryCCOptions = -fpic  SharedThisAndThat... there seems to
  be so many of them... if someone has worked out a working
  combination, I would like to have a copy :-)

thanks,
--
Markku Savela (savela@tel.vtt.fi), Technical Research Centre of Finland
Telecommunications Laboratory, Otakaari 7 B, SF-02150 ESPOO, Finland
From: tonyf@peacock.ims.com (Antonio Freixas)
Newsgroups: fj.mail-lists.x-window
Subject: RE: Color string to nearest match converter?
Date: 30 Sep 92 11:31:19 GMT
Distribution: fj
Organization: Integrated Measurement Systems, Inc.

Date: Mon, 28 Sep 1992 14:51:40 GMT
Message-Id: <1992Sep28.145140.2484@ims.com>
Newsgroups: comp.windows.x

In article <920925083648.21c00207@TGV.COM>, mahan@TGV.COM (Patrick L. Mahan) writes:
|> #
|> #Before I write it could somebody help me out and send me the code
|> #for a converter that takes a string (matching one of the entries
|> #in rgb.txt) and returns the nearest matching color available in
|> #the current colormap if it cannot get that exact color.  I imagine
|> #it should be quite easy to do, just request the contents of the
|> #entire colormap using XQueryColors and then scan it. If you've
|> #already written this please could I have a copy?
|> #
|> 
|> George,
|> 
|> Have you ever tried: XAllocNamedColor()?
|> 
|> From "X Window System" by Robert Scheifler & James Gettys, Third edition
|> 
|>   "To allocate a read-only color cell using a color name and return the
|>    closest color supported by the hardware in RGB format, use 
|>    XAllocNamedColor" (p 122).
|> 
|> XAllocNamedColor() looks up the color by name and returns both the
|> closest RGB values supported by the hardware and the exact RGB values.

I can't help kibbitzing.

I believe that the "closest color supported by the hardware" is not
the same as the "closest color in the colormap".  The former has to do
with the fact that you can specify 256 levels for the red gun, but the
hardware may only support four levels.

So the matching algorithm is to knock off the insignificant bits of
the RGB values and then look for an EXACT match in the colormap.  If
there isn't any, XAllocNamedColor returns a status of 0.

It would still be handy to have a function that returns the closest
color in the colormap, although someone would have to define
"closest".

					         -- tonyf@ims.com
					       (503) 626-7117 x1349