Probably not what you want to hear,  but:

>         - Looking in the termcap or terminfo databases.  The termcap and
>           terminfo sections for 3270 are quite incomplete.  As a result,
>           programs like /bin/clear don't function properly.

Presumes that the console driver would interpret the
data stream from Linux apps in such a way as to effect a clear.
The driver(s) doesn't have such support.

>         - In looking around, I found a diagnose 58 call that appears
>           to work in CMS, but fails with an invalid instruction in Linux.
>           Either I am not calling it correctly, or it doesn't work
>           unless you are using CMS.

Doesn't work unless you are in supervisor mode.   Diagnose is always a
privileged op code.   You do a DIAG 58 from a Linux user space program,
and the supervisor (the Linux kernel in this case) traps it
and kills the process which it thinks is misbehaving.

The fun stuff we can do in CMS is often because
CMS is like MS-DOS in that it runs in supervisor state all the time.
(Well ... most of the time.)

> I am looking for an easy way to clear the 3270 screen from Linux.

Cannot be done apart from a console (or terminal) device driver.

IFF you are using 3270 support (ie: that contributed by UTSGlobal)
then you might be able to effect a 3270 clear screen operation
by feeding the right 3270 program down the 3270 side of that driver.
But this also requires that your virtual console is in 3270 mode
rather than in 3215 mode.   (HWC operation can probably go
either way.)

Reply via email to