njcuk9999 / apero-drs

A PipelinE to Reduce Observations - The DRS for SPIRou (CFHT)
MIT License
12 stars 0 forks source link

Arrow keys do not work in APERO prompt #694

Open vandalt opened 1 year ago

vandalt commented 1 year ago

When using APERO astrometrics, pressing the left arrow key only inserted the keycode (^[[D) after the current prompt.

I'm not sure if this is dependent on the client terminal.

(And I think it is low priority, but wanted to mention it here so it can be fixed in the future)

njcuk9999 commented 1 year ago

It should be just a standard python "input()" nothing special. Could you test a short script with the input() function?

I find weird stuff happens in x2go and in a screen sometimes with the arrow keys, but yer Im not sure this is an apero problem.

vandalt commented 1 year ago

Good point, the problem seems to be with Python's input() function. After some Googling, it seems that adding import readline would fix it.