aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-01-05 23:46:17 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-01-05 23:46:17 +0000
commitea7a26c84bad5ae6e5ff05bc4a3494a2c5efc51f (patch)
treeef0e76f7408a3c45b45fc647fa31ee8e0f0ac4c5 /src
parent3bfbe9a7fd0e4d00f9d635aba780d0c10cd17174 (diff)
downloadpostgresql-ea7a26c84bad5ae6e5ff05bc4a3494a2c5efc51f.tar.gz
postgresql-ea7a26c84bad5ae6e5ff05bc4a3494a2c5efc51f.zip
Fixes:
This corrects the newline handling when using the readline library. Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/psql.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c
index e217c268cda..683f7663455 100644
--- a/src/bin/psql/psql.c
+++ b/src/bin/psql/psql.c
@@ -7,7 +7,7 @@
*
*
* 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 *
gets_readline(char *prompt, FILE * source)
{
- return (readline(prompt));
+ char *s = readline(prompt);
+ fputc('\r', stdout);
+ fflush(stdout);
+ return s;
}
/*