Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea7a26c

Browse files
committed
Fixes:
This corrects the newline handling when using the readline library.Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
1 parent3bfbe9a commitea7a26c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/bin/psql/psql.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.45 1997/01/02 07:07:32 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.46 1997/01/05 23:46:17 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -401,7 +401,10 @@ gets_noreadline(char *prompt, FILE * source)
401401
char*
402402
gets_readline(char*prompt,FILE*source)
403403
{
404-
return (readline(prompt));
404+
char*s=readline(prompt);
405+
fputc('\r',stdout);
406+
fflush(stdout);
407+
returns;
405408
}
406409

407410
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp