notebook
notebook copied to clipboard
Need to press Enter to display terminal's prompt
Description
When opening a new terminal, the user needs to hit Enter in the terminal window in order to "activate" it, otherwise they are presented with a flashing cursor with no prompt:
When opening new terminals afterwards, the issue disappear. Seems to be happening only in Firefox, but JupyterLab doesn't have the issue.
Reproduce
- Click "New Terminal".
- See a flashing cursor in a new empty terminal page.
- Hit Enter to display the prompt.
Expected behavior
The prompt should be displayed without having to first hit Enter.
Context
- Operating System and version: Linux Ubuntu 21.04
- Browser and version: Firefox 94.0
- ReotrLab version: 0.3.13
Thanks @davidbrochart for reporting.
I wonder if this is specific to the default shell on the host?
but JupyterLab doesn't have the issue.
Or maybe just a race condition somewhere in the initialization process.
For example it doesn't seem to be the case when testing on Binder with this gist: https://gist.github.com/jtpio/4a6a34da66b32249e28df718ec30e4d7
https://user-images.githubusercontent.com/591645/144884152-7e101a4c-b865-4adc-bc39-c1eefffc0382.mp4
I don't know, I'll report back if I have the time to investigate.