*BSD News Article 16719


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!noc.near.net!das-news.harvard.edu!husc-news.harvard.edu!husc.harvard.edu!haley
Newsgroups: comp.os.386bsd.questions
Subject: Oleo and/or curses problem
Message-ID: <haley.738974465@husc.harvard.edu>
From: haley@scws5.harvard.edu (Elizabeth Haley)
Date: 1 Jun 93 22:41:05 GMT
Nntp-Posting-Host: scws5.harvard.edu
Lines: 50

HiHo:
I am having a problem with oleo or maybe curses. If I start it up and
wander around the spreadsheet, everything is fine, up until I try to go
"out-of-bounds". The program prints a "You can't do that" message, and
there after uses the wrong codes in lines where there is nothing on
the line after the title for the line... A chunk of a script folows...

6c1 "Electrcity"NewsElectrcity     R6  
6c1 "Electrcity"News%!1Electrcity     R6  
                                     ^^^^^
          Here's where it's wrong------|

All the codes are ANSI except "^[%!1" which is the Tektronix' code to
select the ANSI code set. (The 4107/4109 are graphics terminals and
use the ANSI codes for the dialog area, and are also capable of
emulating a vt100 or a vt52... The Esc%! code switches between the
various code sets...)

This code appears in my termcap only in the initialization strings:
ti, te, is, and rs; and in "cl" and "vb"

It should be noted that it *NEVER* appears by itself, but always with
another call to switch the code to the TEK codes: "^[%!0".

The sequence is always ^[%!0Some_TEK_Codes_Here^[%!1.

The code ^[[K is an "erase-in-line" and is mentioned only in the "ce" entry.

It is not clear to me whether this behavior is caused by oleo or
curses, but it would appear to be some sort of off-by-one(or several)
error in reading the termcap array after printing the "Can't go up"
message.

BTW This termcap is *NOT* the one supplied with BSD, 'cause theirs is a
lose on many things such as "cl" which attempts to fill the space with
blank lines instead of actually calling a clear screen, which is what
mine does...

It should be noted that this behavior is not seen with GNU emacs.

A more complete script and a copy if the Termcap entry in question are
available upon request.

This has been mail to bug-oleo@prep.ai.mit.edu as well as posted to
c.o.386bsd.questions.
--
If you love your fun...
|[{(<=--=>)}]|David Charles Todd, tHE mAN wITH tHREE fIRST nAMES|[{(<=--=>)}]|
|||||||||||||||||||||||||hacksaw@headcheese.daa.uc.edu||||||||||||||||||||||||
                                                                ...Die for it!