🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1201

curses problem

#1201
From: Rebecca Marvil
Date: Fri, 16 Nov 1990 21:14
32 lines
1797 bytes
I have been having trouble porting a program which
uses curses, from a MIPS M-2000 running RISC-OS 4.51 
(Berkeley environment) to a DEC station 3100 running 
Ultrix 4.0.

Throughout the program I use wmove() and waddstr()
to print a string to the specified location in the
specified window.  All of these function calls work
fine on the MIPS, but on the DEC, occasionally the
wmove() will not move the logical cursor where I 
specify, and thus the waddstr() function prints the
string in the wrong location.  This only happens when
the x argument to wmove() is 0, yet it doesn't happen for
all values of y.  In other words, calling wmove(datawin,5,0)
may work just fine, but wmove(datawin,6,0) won't.  When
it doesn't work right, it ALWAYS moves the logical cursor
to the previous line, in the last column.  So, in the above
example, the wmove(datawin,6,0) would put the logical cursor
at (5,79) - assuming the window is 80 columns wide.

NOTE: If I never print anything to the last column of the 
window, the program works fine.

If anyone has any suggestions that might help with this
problem, they would be most appreciated.


Becky Marvil        marvil@boulder.colorado.edu
MCD Biology
Univ. of Colorado
Boulder, CO 80309
303-492-5938
Technical Details
Message-ID: <29882@boulder.Colorado.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!ub!boulder!marvil

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!ub!boulder!marvil
From: marvil@boulder.colorado.edu (Rebecca Marvil)
Newsgroups: comp.unix.programmer,comp.sys.dec,comp.unix.ultrix
Subject: curses problem
Message-ID: <29882@boulder.Colorado.EDU>
Date: 16 Nov 90 21:14:07 GMT
Sender: news@boulder.Colorado.EDU
Reply-To: marvil@boulder.colorado.edu (Rebecca Marvil)
Organization: University of Colorado, Boulder
Lines: 32
Nntp-Posting-Host: beagle.colorado.edu