Sun-Spots Digest, v6n60

William LeFebvre Sun-Spots-Request at RICE.EDU
Fri Apr 22 01:29:32 AEST 1988


SUN-SPOTS DIGEST        Wednesday, 20 April 1988       Volume 6 : Issue 60

Today's Topics:
                       Re: Two Displays on a 3/60FC
             Re: Help needed with SunView background proc's 
                          Re: cua0 configuration
                    Re: Changes in user mail interface
                                icon2troff
                               le0 problems
               Multipartition Dump On Single Cartridge Tape
                      450E controller in Sun-2/120?
                      BIND on a Sun 3/180 with 3.5?
           Experience with 3rd party service on Sun equipment?
                   SCSI limitations on Sun 3/50, 3/60?
                   SUN screendump to Apple laserwriter?
                      using line drawing characters?

Send contributions to:  sun-spots at rice.edu
Send subscription add/delete requests to:  sun-spots-request at rice.edu
Bitnet readers can subscribe directly with the CMS command:
    TELL LISTSERV AT RICE SUBSCRIBE SUNSPOTS My Full Name
Recent backissues are available via anonymous FTP from "titan.rice.edu".
For volume X, issue Y, "get sun-spots/vXnY".  They are also accessible
through the archive server:  mail the request "send sun-spots vXnY" to
"archive-server at rice.edu" or mail the word "help" to the same address
for more information.

----------------------------------------------------------------------

Date:    Wed, 13 Apr 88 11:24:10 MST
From:    tomlin at hc.dspo.gov (Bob Tomlinson)
Subject: Re: Two Displays on a 3/60FC

The 3/60C also has the Prism hardware in it (10 planes; 8 color, 1 B/W,
and 1 enable) so you can also have two window systems on the same physical
screen (one in the color planes and one in the B/W plane).  I'm doing that
with two different NeWS servers now.  The name of the B/W plane is
/dev/bwtwo1.  If anyone wants an example of how to set all this up to
automaticly happen on NeWS startup, send me mail.

        -- bob
           tomlin at hc.dspo.gov

------------------------------

Date:    Wed, 13 Apr 88 13:49:36 -0400
From:    mesard at bbn.com
Subject: Re: Help needed with SunView background proc's 
Reference: v6n50

> I set up the base frame and populated it with two panels and a canvas.  In
> the canvas, I set WIN_CONSUME_PICK_EVENTS to include WIN_UP_ASCII_EVENTS

Don't you want WIN_CONSUME_KBD_EVENTS?  Are ASCII events even defined for
the pick input mask?

> To get all panels and panel_items to respond to keystrokes, I do the
> following in both PANEL definitions:
> 
> PANEL_ACCEPT_KEYSTROKE,  TRUE,
> PANEL_BACKGROUND_PROC,   my_bgnd_p,
> PANEL_EVENT_PROC,        my_bgnd_p,

Right.

> The event proc handles events falling on the panel (ie: not over a panel
> item) and the background proc handles events falling on all the member
> panel items.  This is my understanding, correct me if I'm wrong.

That's backwards (see Table 18-15 in the programmer's guide).

> However if its a panel_item, then WIN_OWNER doesn't find the frame or the
> parent panel.

That's because panel items aren't windows.  So WIN_* attributes don't
apply to them.  (This wasn't at all clear to me my first time through the
manual.)

You didn't include your code, so it's hard to guess what's going on.  But
my first stab would be to say that you're using {panel,window}_get
operations on objects which don't have them defined.  (Something that the
compile- and run-time environs will silently let you do.) "window_get()"
works on windows--that is, frames, canvases and panels, tty's and
textsw's--"panel_get()" works on *panel_items*.

> I should point out that I can't seem to find a clean way to find out if
> my_bgnd_p is getting a Panel or a Panel_item.  It looks like either type
> can be passed to my_bgnd_p but how do I find out which it is?

Here's some code from a program I'm working on that (I think) does roughly
what you want:

The panel gets defined as:

	window_create(RILframe, PANEL,
		      PANEL_ACCEPT_KEYSTROKE, TRUE,
		      PANEL_BACKGROUND_PROC, RILkeys,
		      PANEL_EVENT_PROC, RILkeys,
		      0);

just like yours.  Then, in the event proc, when I need to know where the
event came from (in this case, I only care if it's a menu button event) I
find out if it's a panel_item, and if it is, I find out its parent (via
panel_get()) and use that instead:

  RILkeys(panel_or_item, event)
  caddr_t panel_or_item;
  Event *event;
  {
    int curr;

    switch (event_id(event)) {
      case MENU_BUT:
        /* This may be a Panel_item.  Check and get its dad if it is. */
        if ((Window_type)(window_get(panel_or_item, WIN_TYPE)) != PANEL_TYPE)
	    panel_or_item = (Panel) panel_get(panel_or_item, PANEL_PARENT_PANEL);
        menu_show(mainMenu, panel_or_item, event, 0);
        return;
      case 13:
        window_return(TRUE);
        return;
	[.
	 .
	 .]
    }
    panel_default_handle_event(panel_or_item, event);
  }


Notice that this works because the typedef's of Panel and Panel_item
happen to be the same (that is, caddr_t).  Notice also, that 

	window_get(panel_or_item, WIN_TYPE)

is technically illegal if the 1st arg is an item (since window_get() on a
non-window is a no-no), but thankfully it seems to always return a 0 (well
actually, ATTR_PKG_ZERO) in this case.

Hope this helps.

MESARD at BBN.COM
BBN Labs, Cambridge, MA

------------------------------

Date:    Wed, 13 Apr 88 11:02:07 PDT
From:    ultra!shj at ames.arc.nasa.gov (Steve Jay)
Subject: Re: cua0 configuration
Reference: v6n43

When I read Ron Hitchens' <vixen!ronbo at cs.utexas.edu> assertion in v6n43
that you can't dial in & out on the same line, I was greatly confused,
beacuse we have been successfully doing just that (dial in & out on one
line) simply by following the instructions in section 5.4 of the System
Administration manual.  Then John Gardiner Myers <jm36+ at andrew.cmu.edu> in
v6n52 said it works fine as long as your modem doesn't assert Carrier
Detect (CD) all the time.

I have a possible explanation for why dial in/out won't work on some
systems.  If you are using a Systech MTI (16 line mux, device mti[n])
port, instead of a CPU port (device zs[n]), you must use a special cable
to connect the modem to the port, as explained on page 149 of the System
Administration manual (Rev. B of 17-Feb-86).  The same info also appears
on pages 19-20 of the Installation & Service Manual for the MTI board (Sun
part 813-1004-05).

The special cable connects pin 8 from the modem to pin 6 of the port.  The
Systech board apparently uses pin 6 (DSR) to tell when the connection is
active/ready instead of pin 8 (CD). Most modems assert pin 6 (DSR)
continuously as long as they are powered up.  If you used a straight
through cable to an MTI port, it would think a call was active all the
time, leading to the behavior observed by Hitchens.  If you use the
special cable, everything works.

I consider the need for special cables to be evidence of brain damage in
either the Systech board or the mti driver.  Needing special cables is
absurd.  I thought the use of the various RS232 signals was settled many,
many years ago.

RTFM, every * page & line.

-Steve

Steve Jay                       domain: shj at ultra.com
Ultra Network Technologies	Internet: ultra!shj at ames.arc.nasa.gov
2140 Bering drive               uucp: ...ames!ultra!shj
San Jose, CA 95131		
408-922-0100

[[ * - explitive deleted.  --wnl ]]

------------------------------

Date:    13 Apr 88 19:46:23 GMT
From:    eos!jaw at ames.arc.nasa.gov (James A. Woods)
Subject: Re: Changes in user mail interface

>...Sun has decided to reverse the sense of the 'R' and 'r' commands...

another theory is that since bill joy often types e-mail without use of
the shift key, the 'r' default makes sense.

[[ Uh, huh.  And his car's dashboard has no gauges and only one idiot
light:  a question mark....  --wnl ]]

this holds only if he doesn't want the wide audiences in private
correspondence that he prefers with public pronouncements.

now that there's a lot of traffic at&t<->sun, and since it is well-known
that bell labs tends to memo-heavy with wide distribution lists, there's
undoubtedly much action on these keys.

------------------------------

Date:    Wed, 13 Apr 88 13:04:04 CDT
From:    ables at mcc.com (King Ables)
Subject: icon2troff

as long as I'm at it, I might as well leave this little gem...
-king

ARPA: ables at mcc.com
UUCP: {gatech,ihnp4,nbires,seismo,ucb-vax}!ut-sally!im4u!milano!ables

#!/bin/sh
#
# icon2troff - convert a Sun icon into troff input
#
# usage: icon2troff icon-file
#
#   troff source is written to stdout
#
# based on article in Vol. 13 #1 ;login (Usenix Association Newsletter)
# January/February 1988, p. 9.
#
echo ".nf
.nr y \n(.lu/2
.ps 9
.tr #.
.cs R 3
.vs \w' 'u
.in \nyu-\w'########################'u
"
#
# convert the icon
#
/lib/cpp -P $* | sed '
s/ //g
s/	//g
s/0x//g
' | awk -F, '{printf "%s%s%s%s\n%s%s%s%s\n", $1,$2,$3,$4,$5,$6,$7,$8}' | sed '
s/0/    /g
s/1/   #/g
s/2/  # /g
s/3/  ##/g
s/4/ #  /g
s/5/ # #/g
s/6/ ## /g
s/7/ ###/g
s/8/#   /g
s/9/#  #/g
s/[Aa]/# # /g
s/[Bb]/# ##/g
s/[Cc]/##  /g
s/[Dd]/## #/g
s/[Ee]/### /g
s/[Ff]/####/g' | sed 's/ *$//'
#
#
echo ".cs R
.tr ##
.ps
.vs
.in
.fi"

------------------------------

Date:    Wed, 13 Apr 88 09:44:08 PDT
From:    claris!clay at ames.arc.nasa.gov (Clay Maeckel)
Subject: le0 problems

Alright, I give up.  What is happening when I get this message on the
console of a 3/50 running OS 3.4?

  le0: Transmission stopped
  le0: csr: 2e3<TINT,INTR,INEA,RXON,STRT,INIT,>

The only other device on cheapernet is a Kinetics box running KIP 0987
code. The only traffic is 2 or 3 telnet session from Macs running the NCSA
Telnet code. Thanks for whatever help.

Clay Maeckel
UUCP: {ames,apple,portal,sun,voder}!claris!clay
Arpanet: claris!clay at ames.arc.nasa.gov
AppleLink: Maeckel1   *   CompuServe: 73057,255

------------------------------

Date:    Wed, 13 Apr 88 22:19:09 EST
From:    umix!lokkur!scs at rutgers.edu (Steve Simmons)
Subject: Multipartition Dump On Single Cartridge Tape

OK, here's the dump script I use to get multiple disk partitions onto a
single cartridge tape.  Note this covers 2 70Mb disks, configured roughly:

sd0a -- 7.5 MB /
sd0g -- 42 MB  /usr2
sd2c -- 65 MB  /usr

and requires a total of two tapes.

------------------------ cut here -----------------------------------
echo Insert Tape Set for /dev/sd0a and /dev/sd0g, please.  Hit
echo -n return when ready.
read dummy
dump 0ucfsb /dev/nrst8 3825 1750 /dev/sd0a
dump 0ucfsb /dev/nrst8 3825 1750 /dev/sd0g
mt -f /dev/rst8 rew
echo Insert Tape Set for /dev/sd2c, please.  Hit
echo -n return when ready.
read dummy
dump 0ucfsb /dev/rst8 3825 1750 /dev/sd2c
------------------------ cut here -----------------------------------

Note the use of st8 to get QIC-24 format, and the large blocking factor.
The first increases the density and hence the capacity of the tape, the
second radically improves throughput.  Both of these ideas were something
we picked up thru SunSpots.

In theory st8 will hold up to 60Mb.  Practice says it's somewhat smaller
-- when sd2c is particularly full it requires a second tape.

There is some small risk that sd0a+sd0g will overfill a tape.  It's never
happened to me, but your mileage may vary.

Steve Simmons
Schlumberger CAD/CAM, Ann Arbor, MI.
scs at lokkur.uucp

------------------------------

Date:    13 Apr 88 02:54:39 GMT
From:    prcrs!elijah!tarsa at uunet.uu.net (Greg Tarsa)
Subject: 450E controller in Sun-2/120?

I have an Xylogics 450E controller that I'd like to put in my Sun 2/120.
Is this possible?  Does anyone know what I need to do to get it to run?

Supposedly it was running in a 2/170 file server, prior to its being sent
in for repairs and being purchased by me.  I always hangs while booting on
my machine.

Any suggestions?

Greg Tarsa	{decvax,decuac}!elijah!tarsa

Tarsa Software Consulting
33 Seabee Street
Bedford, NH 03102
(603)668-8349		{decuac,decvax}!elijah!tarsa

------------------------------

Date:    Wed, 13 Apr 88 11:21 5
From:    "I am only and egg." <JOHNSON at nuhub.acs.northeastern.edu>
Subject: BIND on a Sun 3/180 with 3.5?

Hi group.

I'm trying to build Berkeley BIND 4.7.3  on a Sun 3/180 with 3.5 source.
Maybe this is my mistake.  Not sure.  I NEED BIND and am having REALLY BAD
times doing something about it.  Some of the problems I face are: 

     o  Sun UNIX and Berkeley UNIX are close but not the same.  I keep 
        finding that BIND's makefiles want things Sun doesn't haveor has 
        in a hidden place.

     o  Sun seems to have consolidated some things that the BIND 
        makefiles want separated.

     o  What little BIND documentation there is has errors and isn't 
        very helpful to a UNIX novice.

     o  It takes too long to figure out which, if any, of the above is 
        the problem.

H E L P ! ! 

please

After three weeks I THINK I've MAYBE built /lib/libc.a but aren't sure.

Anyone who has built Berkeley BIND 4.7.3 or whatever on a Sun 3/180 with
3.5 please contact me.  I need help! 

Chris Johnson
Computing Resource Center
Northeastern University

(617) 437-2335

johnson at northeastern.edu

Thank you.

------------------------------

Date:    Wed, 13 Apr 88 14:35:43 EDT
From:    ittfb at dcatla.UUCP (Thomas F. Blakely)
Subject: Experience with 3rd party service on Sun equipment?

We are considering going to 3rd party service on our Sun equipment, mostly
because Sun won't cover so much of what we are planning to buy (8mm tape,
3rd party drives, etc.).  We've been real pleased with the service (on
hardware anyway) that we've gotten from Sun (good response time, minimal
down time, etc.) and we're a little leery of 3rd party service.  Thus we
are seeking the experiences of others who are currently using (or have
used in the past) 3rd party service vendors (we are primarily looking for
maintenance contracts equivalent to Sun's "on-site" level).  We are
especially interested in anyone's expereince with Motorola Service, as
they are claiming to have exactly what we want.

Thanks in advance,

Tom Blakely
DCA, Inc.
(404)442-4866
gatech!dcatla!ittfb

------------------------------

Date:    Thu, 14 Apr 88 00:57 EDT
From:    "W. Olin Sibert" <Sibert at dockmaster.arpa>
Subject: SCSI limitations on Sun 3/50, 3/60?

Are the Sun 3/50 and 3/60 SCSI interfaces in some way inherently limited
to two disk devices?  It appears that Sun only sells configurations with
zero, one, or two, but what would happen if I attached three expansion
disk units to a 3/60?

Is there:
   a hardware (controller/other) limitation?
   a problem with the cables in Sun SCSI disk expansion boxes?
   a problem with terminators?
   a software limitation?
   no problem at all?

 Olin Sibert
 Sibert at Dockmaster.ARPA

------------------------------

Date:    13 Apr 88 19:48:17 GMT
From:    kddlab!ndsuvax!ncnagesh at uunet.uu.net (Kadaba Nagesh)
Subject: SUN screendump to Apple laserwriter?

Could someone please direct me to some PD software for printing out
screendumps on Apple laser writer.

I tried suntops (screendump | suntops -r | lpr -Plw) it creates a 2 Meg
file, the lw takes all this file but nothing gets printed.

Thanks.

[[ Check out "sun-source/psraster.shar" in the sun-spots source archives.
It was written by Leonid Rosenboim from Tel-Aviv University, and it claims
to convert a byte-encoded format rasterfile directly to a Postscript file.
I believe that you can get a byte-encoded screendump with "screendump -t 2".
The program can be retrieved via anonymous FTP from the host
"titan.rice.edu" or via the archive server with the request "send
sun-source psraster.shar".  For more information about the archive server,
send a mail message containing the word "help" to the address
"archive-server at rice.edu".  --wnl ]]

------------------------------

Date:    Thu, 14 Apr 88 08:37:07 CDT
From:    pgpbmt!andy at housun.UUCP (Andy Galewsky)
Subject: using line drawing characters?

I am new to the sun world (sun-light?) and am trying to port a program
over from the pc to the sun.  The program uses pc line drawing characters
quite a lot.  I thought no problem - ill just use the pcfont character
set.  BUT - a little test program that displays all characters from 0-255
shows nothing above 0x7f.  In fact the alpha characters repeat, which
leads me to believe that there is some sort of parity manipulation going
on (masking off the high bits).  The question is how can I make the line
drawing characters show up!!!

Any hints, code fragments etc will be apprieciated.  I've tried different
stty settings to no avail.....

Andy Galewsky				UUCP ...!housun!pgpbmt!andy
Pinkerton/Galewsky, Incorporated
Beaumont,TX

------------------------------

End of SUN-Spots Digest
***********************



More information about the Comp.sys.sun mailing list