/*
* 18. Insertions from the standard input
*/
void
r_rd(int argc, Rune **argv)
{
char buf[100];
char *s;
Rune *p;
Fmt fmt;
static int didstdin;
static Biobuf bstdin;
/*
* print prompt, then read until double newline,
* then run the text just read as though it were
* a macro body, using the remaining arguments.
*/
if(fd2path(0, buf, sizeof buf) >= 0 && strstr(buf, "/dev/cons")){
if(argc > 1)
fprint(2, "%S", argv[1]);
else
fprint(2, "%c", 7/*BEL*/);
}