mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fixes:
This corrects the newline handling when using the readline library. Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
This commit is contained in:
parent
3bfbe9a7fd
commit
ea7a26c84b
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.45 1997/01/02 07:07:32 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.46 1997/01/05 23:46:17 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -401,7 +401,10 @@ gets_noreadline(char *prompt, FILE * source)
|
|||||||
char *
|
char *
|
||||||
gets_readline(char *prompt, FILE * source)
|
gets_readline(char *prompt, FILE * source)
|
||||||
{
|
{
|
||||||
return (readline(prompt));
|
char *s = readline(prompt);
|
||||||
|
fputc('\r', stdout);
|
||||||
|
fflush(stdout);
|
||||||
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user