Skip to content

Commit

Permalink
multiline command on 1 line
Browse files Browse the repository at this point in the history
  • Loading branch information
joknarf committed Sep 14, 2024
1 parent 5d13a41 commit 3a4e442
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssh_para/ssh_para.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ def __init__(
super().__init__()
self.th_status = [JobStatus() for i in range(nbthreads)]
self.command = " ".join(command)
self.cmd = self.command.replace("\n","\\n")
self.job_status = []
self.nbthreads = nbthreads
self.nbfailed = 0
Expand Down Expand Up @@ -630,7 +631,7 @@ def display_curses(
],
)
addstr(self.stdscr, 1, 0, f" Dirlog: {self.pdirlog} Command: ")
addstrc(self.stdscr, self.command[: curses.COLS - self.stdscr.getyx()[1]])
addstrc(self.stdscr, self.cmd[: curses.COLS - self.stdscr.getyx()[1]])
addstrc(self.stdscr, 2, 0, "")
self.print_finished(line_num + (nbrun > 0))
if self.paused:
Expand Down

0 comments on commit 3a4e442

Please sign in to comment.