HPlogo Asynchronous Serial Communications Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 Intrinsics Reference

FSETMODE

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

Suppresses the output of linefeed.

          I16V    U16V
FSETMODE(filenum,modeflags);

Use

For asynchronous devices, the only significant use of the FSETMODE intrinsic is to determine whether or not a linefeed is sent to the terminal at the end of each input line. For certain applications, you may need to suppress the linefeed that is sent automatically during normal operating conditions. In such cases, a call to FSETMODE with the modeflags parameter set to 4 should be used. To restore transmission of linefeed, call FSETMODE with modeflags set to 0. FCLOSE also resets this option.

Parameters

filenum

16-bit signed integer by value (required)

The file number of the file whose access modes are to be set.

modeflags

16-bit unsigned integer by value (required)

This parameter uses bit groupings to indicate desired settings of various options. The only option that applies to asynchronous devices is specified by the value of bit (13:1), as follows:

Bit (13:1) —Controls issuing of a linefeed to a terminal after each terminal read.

=1

Inhibit normal terminal control by terminal driver. The result is that the driver does not automatically send out a linefeed at the end of each terminal input line. (modeflags = 4).

=0

Restore normal terminal control by terminal driver. If the terminal operator ends a line of input by pressing [Return], the Echo Facility echoes the carriage return back to the terminal and the driver sends out a linefeed to the terminal. If input reaches the read byte count limit (as set in the length parameter of FREAD or in the expectedlength parameter of READ or READX), the driver sends out a carriage return and a linefeed. (modeflags = 0).

Condition Codes

CCE

Request granted.

CCG

Not returned by this intrinsic.

CCL

Request denied. An error occurred.

Additional Discussion

See also discussions of FCONTROL(12,13) and FCONTROL(41) in this manual.

Feedback to webmaster