14B ClearOutBuffer¶
Stub MON 14B (12 decimal) · Mnemonic COBUF · Group: Input and Output Monitor Calls (manual section 2.5)
Available from: All programs (manual compatibility box)
Emulation source: src/handlers/mon_14B_ClearOutBuffer.c
Description¶
Clears a device output buffer. Output to character devices, e.g. terminals, are temporarily stored in this buffer.
Notes¶
- You can use logical device number 1 for your own terminal in background programs.
Parameters¶
| Name | Type | Direction | Description |
|---|---|---|---|
DeviceNumber |
INTEGER | In | Logical device number. See appendix B. Use 1 for your own terminal. |
Direction: In = the program supplies the value, Out = the call returns it, In/Out = both.
See also¶
@CLEAR-DEVICE, ClearInBuffer, DeviceControl
Compatibility¶
| Machines | Users | Programs |
|---|---|---|
| ND-100 and ND-500 | All users | All programs |
The manual's compatibility box for this call, word for word.
Yes/no fields from the YAML extraction (not in the manual's words):
| ND-100 | ND-500 | User programs | RT programs | System programs |
|---|---|---|---|---|
| Yes | Yes | Yes | Yes | No |
Examples¶
From the manual (OCR text, not corrected).
INTEGER : DeviceNumber
...
ON ROUTINEERROR DO
IF ErrCode <> 0 THEN ...
ENDON
Monitor_Call('ClearOutBuffer', DeviceNumber)
INTEGER DeviceNumber
...
Monitor Call ('ClearOutBuffer', DeviceNumber)
IF (ErrCode .NE. 0) THEN ...
DeviceNumber : INTEGER2;
...
ClearOutBuffer (DeviceNumber);
IF ErrCode <> 0 THEN ...
01 DeviceNumber COMP.
01 ErrCode COMP.
...
MONITOR-CALL "ClearOutBuffer" USING DeviceNumber.
CALL "CbError" USING ErrCode.
IF ErrCode NOT = 0 GO ...
DeviceNumber : W BLOCK 1
ErrCode : W BLOCK 1
ClearOutBuffer : EQU 37B9 + 14B
...
CALLG ClearOutBuffer, 1, DeviceNumber
IF K GO ERROR
...
ERROR : W1 := ErrCode %ErrorCode in W1 register.
LDT DEVNO %Load register T with logical device number.
MON 14 %Monitor call ClearOutBuffer.
JMP ERROR %Error return from monitor call.
... %Normal return.
ERROR, ... %Error number in register A.
...
DEVNO, ...
ndmonlib implementation¶
Stub Registered MON_STATUS_NOT_IMPLEMENTED: the handler is a stub. mon_dispatch() in src/core/mon_dispatch.c reports the call as unimplemented without calling it.
| Handler | mon_14B_ClearOutBuffer |
| Code lines | 6 (non-blank, non-comment lines in the file) |
Source¶
SINTRAN III Monitor Calls (ND-860228.2 EN).