HP3000-L Archives

August 1998, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
David Sanders <[log in to unmask]>
Reply To:
David Sanders <[log in to unmask]>
Date:
Fri, 14 Aug 1998 11:53:28 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
The POSIX write() to STDOUT works fine.  I have also noticed that the
intrinsic
function FWRITE(STDOUT_FILENO,Array,length,%320) works fine.  ( Notice
that the %320 is what makes it work.. )

Has anyone successfully FOPENed a '/dev/tty' and used FWRITE to output to
the file without carriage controls being thrown in?

Thanks,
David



Bill Bennett CSY wrote in message <[log in to unmask]>...
>On Wed, 12 Aug 1998 10:49:34 -0700, David Sanders ([log in to unmask])
wrote:
>: "MPE/iX Question:
>
>: I've been trying to use the POSIX functions read() and write()
>: to read and write to/from a /dev/tty ( created using mknod
>: command ) and have noticed that these commands throw
>: in a newline after each call!  Is there a way to make this
>: not happen?
>
>: Thanks,
>: David"
>
>David,
>
>I'm not sure what happens with /dev/tty on the 3K, but to control line
feeds
>take a look at FCONTROL 25 and 41.  You will also need to use _MPE_FILENO
>(check the C manual for proper spelling/usage) to convert the C file number
>to an MPE file number.
>
>--
>---------------------------------------------------------------------------
>Bill Bennett                                            [log in to unmask]
>

ATOM RSS1 RSS2