<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I think you need a pty instead of just running bash...</p>
<p>try:</p>
<p>srun --pty bash</p>
<p>Or get specific on what resources you need, eg:<br>
</p>
<p>srun --nodes=1 --exclusive --pty bash</p>
<p><br>
</p>
<p>Brian Andrus<br>
</p>
<div class="moz-cite-prefix">On 6/27/2019 2:11 PM, Micael Carvalho
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFP0jNSjoo_fvvy=L+36QQ0voA8P=10k5uU8qFNz0QqeGUD87g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Hello there,
<div><br>
</div>
<div>I am having trouble with arrow keys in srun. </div>
<div>Example of command:</div>
<div>$ srun -u bash</div>
<div><br>
</div>
<div>After running this command, I get an interactive session.</div>
<div>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.</div>
<div><br>
</div>
<div>Example:</div>
<div>$ trying to edit^[[D</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Thank you in advance !! :)</div>
<div><br clear="all">
<div>
<div dir="ltr"
class="gmail-m_-6399426048856515382gmail-m_-3459322910768199158gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Best regards.</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>