mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 08:24:18 +00:00
Upload
Digital Research
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/* ttyname - find name of a terminal */
|
||||
/* returns "CON:" if isatty, NULL o.w., under CP/M */
|
||||
#include <portab.h>
|
||||
#include <cpm.h>
|
||||
EXTERN BYTE __tname[]; /* CON: String */
|
||||
BYTE *ttyname(fd)
|
||||
WORD fd;
|
||||
{
|
||||
if( isatty(fd) )
|
||||
return(__tname);
|
||||
else return((BYTE *)NULL);
|
||||
}
|
Reference in New Issue
Block a user