All VM output goes to stderr by default. These routines provide the helpers for such output.
#include <windows.h>
#include <stdio.h>
#include "hyport.h"
#include "portpriv.h"
#include "hyportpg.h"
Functions | |
I_32 VMCALL | hytty_startup (struct HyPortLibrary *portLibrary) |
PortLibrary startup. | |
void VMCALL | hytty_shutdown (struct HyPortLibrary *portLibrary) |
PortLibrary shutdown. | |
void VMCALL | hytty_printf (struct HyPortLibrary *portLibrary, const char *format,...) |
Write characters to stderr. | |
IDATA VMCALL | hytty_get_chars (struct HyPortLibrary *portLibrary, char *s, UDATA length) |
Read characters from stdin into buffer. | |
void VMCALL | hytty_err_printf (struct HyPortLibrary *portLibrary, const char *format,...) |
Output message to stderr. | |
IDATA VMCALL | hytty_available (struct HyPortLibrary *portLibrary) |
Determine the number of characters remaining to be read from stdin. | |
void VMCALL | hytty_vprintf (struct HyPortLibrary *portLibrary, const char *format, va_list args) |
Output message to stderr. | |
void VMCALL | hytty_err_vprintf (struct HyPortLibrary *portLibrary, const char *format, va_list args) |
Output message to stderr. |
|
Determine the number of characters remaining to be read from stdin.
|
|
Output message to stderr.
|
|
Output message to stderr.
|
|
Read characters from stdin into buffer.
|
|
Write characters to stderr.
|
|
PortLibrary shutdown. This function is called during shutdown of the portLibrary. Any resources that were created by hytty_startup should be destroyed here.
|
|
PortLibrary startup. This function is called during startup of the portLibrary. Any resources that are required for the TTY library operations may be created here. All resources created here should be destroyed in hytty_shutdown.
|
|
Output message to stderr.
|