adamm@encore.UUCP (Adam S. Moskowitz) (12/23/87)
I've noticed that programs that use 'curses' seem to move the cursor to the
bottom of the screen before exiting. When my multi-line prompt is output,
the top few lines scroll off the top of my screen. When a program such as
'less' does this, I am forced to then type 'cat !$' if I needed to see what
the first n lines were. IS THERE A WAY TO TELL CURSES TO NOT DO THIS? If
so, how? As usual, please email responses and I will post a summary.
Thanx,
AdamM
--
Adam S. Moskowitz ...!{decvax,ihnp4,linus,necntc,talcott}!encore!adamm
"And while we're here with our friends so dear we'll drive dull
care away." -- _The_Sacred_Harp_, B.F. White & E.J. Kingseindal@diku.dk (Rene' Seindal) (03/03/88)
I have been reading the man page for plot(5) a few times recently, since I was supposed to write a plot to PostScript filter. The problem is the specification for "arc" command. I quote from the manual: "arc: The first four bytes give the center, the next four give the starting point, and the last four give the end point of a circular arc. The least significant coordinate of the end point is used only to determine the quadrant. The arc is drawn counter-clockwise." My question: What is the least significant coordinate of a point? Even with my best will, this sentence is nonsenses. Those plot filters that implements this function assumes that the end point lies on the circle given by the first two points (but doesn't bother to check it). Given other points, they will draw various strange circular arcs. Points on the tangent at the starting point is especially amusing. I can make the specification make sense if the offending sentence is removed. It is then clear that the end-point *must* be on the circle. If anybody can help clarify this, I am greateful. Rene' Seindal, DIKU, U. of Copenhagen. (seindal@diku.dk) "Parentheses is (not) of much use."
dsg@mbunix.mitre.org (David S. Goldberg) (05/12/89)
I am trying to find a way to change a macro without having to call the
change on the command line. In Sun's make, there is a := operator
that allows such changes, but the make in Ultrix 2.3 doesn't have this
feature. One thing that has worked is to do a recursive make, but
that doesn't seem as clean. I wonder if the :: operator, which I
unfortunately can't find documented anywhere (the Sun man page has a
little blurb on it, but nothing definitive - nothing in the tutorial
or any of the Ultrix docs mentions it). I prefer to RTFM, but haven't
been able to find this in any of the manuals I have.
Basically what I want to do is this:
CFLAGS = -I. -O
OBJECTS= *.o # I won't bore you with the real filenames
program: $(OBJECTS)
cc $(CFLAGS) $(OBJECTS) -o program
debug: # here I want to change CFLAGS to CFLAGS= -I. -g -DDEBUG and
# force recompilation of the whole thing. I tried:
make clean
make CFLAGS="-I. -g -DDEBUG" program
And that worked. It seems like there should be a better way. I
remember a similar question being asked a while ago, but I
unfortunately can't find any of those articles to see if they are
relevant to my problem.
I prefer not to generate a lot of net traffic with what seems (to my
embarassment) a pretty basic problem so please mail any replies to
dsg@mbunix.mitre.org or ...!linus!mbunix!dsg if you use UUCP.
Thanks in advance for any help.
Dave
--------------------------------------------------------------------------
Dave Goldberg ARPA: dsg@mitre.org
The Mitre Corporation UUCP: linus!mbunix!dsg
MS B020
Bedford, MA 01730
617-271-2460