]> Git Repo - J-u-boot.git/commitdiff
tools: kwboot: Print trailing newline after terminal is terminated
authorPali Rohár <[email protected]>
Fri, 23 Jul 2021 09:14:19 +0000 (11:14 +0200)
committerStefan Roese <[email protected]>
Sat, 31 Jul 2021 07:49:31 +0000 (09:49 +0200)
Print trailing newline as the last printed byte can be something
different.

Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Reviewed-by: Chris Packham <[email protected]>
Tested-by: Chris Packham <[email protected]>
tools/kwboot.c

index 7fa742d84cc32d99173db09675bc5f1e5755a327..941f4228f9828f13831a0c934bf12f3fc717f689 100644 (file)
@@ -560,6 +560,7 @@ kwboot_terminal(int tty)
 
        if (in >= 0)
                tcsetattr(in, TCSANOW, &otio);
+       printf("\n");
 out:
        return rc;
 }
This page took 0.034693 seconds and 4 git commands to generate.