Home | History | Annotate | Line # | Download | only in libsa
      1 /*	$NetBSD: promcons.c,v 1.4 2009/01/12 07:00:59 tsutsui Exp $	*/
      2 
      3 
      4 #include <sys/types.h>
      5 #include <machine/mon.h>
      6 #include <lib/libsa/stand.h>
      7 
      8 #include "libsa.h"
      9 
     10 int
     11 getchar(void)
     12 {
     13 	return ( (*romVectorPtr->getChar)() );
     14 }
     15 
     16 int
     17 peekchar(void)
     18 {
     19 	return ( (*romVectorPtr->mayGet)() );
     20 }
     21 
     22 void
     23 putchar(int c)
     24 {
     25 	if (c == '\n')
     26 		(*romVectorPtr->putChar)('\r');
     27 	(*romVectorPtr->putChar)(c);
     28 }
     29 
     30