Generic TTY read function.
Reads from TTY into buf
until delimiter del
occurs. The
number of bytes read is returned in n
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tty_type), | intent(inout) | :: | tty |
TTY type. |
||
character(len=*), | intent(inout) | :: | bytes |
Input buffer. |
||
character(len=*), | intent(in) | :: | del |
Delimiter. |
||
integer(kind=i8), | intent(out), | optional | :: | nbytes |
Number of bytes read. |
Reads TTY response into request. The request delimiter is unescaped. The response is escaped before being stored in the request.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tty_type), | intent(inout) | :: | tty |
TTY type. |
||
type(request_type), | intent(inout) | :: | request |
Request type. |