I think you need a pty instead of just running bash...

try:

srun --pty bash

Or get specific on what resources you need, eg:

srun --nodes=1 --exclusive --pty bash


Brian Andrus

On 6/27/2019 2:11 PM, Micael Carvalho wrote:
Hello there,

I am having trouble with arrow keys in srun.
Example of command:
$ srun -u bash

After running this command, I get an interactive session.
If I type anything there (like "test", "ls", or anything else), and then press the left arrow (<-) to go back and edit something in the middle, it just outputs the special characters.

Example:
$ trying to edit^[[D

Is this something fixable? I am debugging python code in a cluster, and the arrows could be really useful here... But I'm sort of lost. Tried the readline package, and many others, but ultimately discovered the problem is coming from srun, and not python.

Thank you in advance !! :)

Best regards.

Reply via email to