[ 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); }