Commit d463d100 authored by Sébastien Luttringer's avatar Sébastien Luttringer
Browse files

shell/console: print prompt on a new line

parent a1cada86
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -106,6 +106,8 @@ class Command_shell(TqlCommand):
            signal.signal(signal.SIGWINCH, signal.SIG_DFL)
            # close tunnel if sjrpc doesn't do it
            tun.shutdown()
            # print prompt at beginning of a new line
            self.printer.out()

    def remote_functions(self):
        return set(("shell",))
@@ -137,7 +139,10 @@ class Command_console(TqlCommand):
        try:
            tun.wait_shutdown()
        finally:
            # close tunnel if sjrpc doesn't do it
            tun.shutdown()
            # print prompt at beginning of a new line
            self.printer.out()

    def remote_functions(self):
        return set(("console",))