Subject: [gwr@bach: tty ONLCR bug?]
To: None <tech-kern@NetBSD.ORG>
From: Gordon W. Ross <gwr@mc.com>
List: tech-kern
Date: 01/12/1998 19:16:25
[ Here is the test program mentioned earlier. ]

/* Link this with: libreadline.a -ltermcap */
#include <stdio.h>

extern char * readline(char *prompt);

main()
{
	char *prompt = "(rlbug) ";
	char *s;

	while ((s = readline(prompt)) != NULL) {

		printf("[%s]\n", s);
		if (s[0] == '.')
			break;
	}

	exit(0);
}