lg_readline.c