]> arthur.barton.de Git - bup.git/commit
ftp: output a newline on EOF when on a tty
authorGabriel Filion <lelutin@gmail.com>
Sat, 14 May 2011 23:07:56 +0000 (19:07 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 15 May 2011 21:23:40 +0000 (17:23 -0400)
commit65c3cba0df54c455d2848d2c4629f1a4a8a2d969
tree5369abed54990c4034e1bb3a8ca5e8dda531836f
parenta78fed9692af220b8e6fc5f3bce93e2f11f752ed
ftp: output a newline on EOF when on a tty

Using the 'quit' command with ftp while in interactive mode -- attached
to a tty -- ends up clearing the line for the shell to use a fresh one
for the next prompt.
Using Ctrl-D to send an EOF to the application's input while in
interactive mode currently does not clear the line in the same way.

Let's force a newline when an EOF is received from a tty so that the
program exits in a more aesthetic way.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
cmd/ftp-cmd.py