-/* $NetBSD: hack.tty.c,v 1.14 2009/08/12 07:28:41 dholland Exp $ */
+/* $NetBSD: hack.tty.c,v 1.16 2011/08/06 20:42:43 dholland Exp $ */
/*-
* Copyright (c) 1988, 1993
#if 0
static char sccsid[] = "@(#)hack.tty.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: hack.tty.c,v 1.14 2009/08/12 07:28:41 dholland Exp $");
+__RCSID("$NetBSD: hack.tty.c,v 1.16 2011/08/06 20:42:43 dholland Exp $");
#endif
#endif /* not lint */
void
settty(const char *s)
{
- clear_screen();
- end_screen();
+ clearscreen();
+ endscreen();
if (s)
printf("%s", s);
(void) fflush(stdout);
if (change) {
setctty();
}
- start_screen();
+ startscreen();
}
va_start(ap, fmt);
if (settty_needed)
- settty((char *) 0);
+ settty(NULL);
vprintf(fmt, ap);
va_end(ap);
putchar('\n');
bufp--;
putstr("\b \b"); /* putsym converts \b */
} else
- bell();
+ sound_bell();
} else if (c == '\n') {
*bufp = 0;
return;
putstr("\b \b");
}
} else
- bell();
+ sound_bell();
}
}
morc = c;
break;
}
- bell();
+ sound_bell();
}
}
}