notebook icon indicating copy to clipboard operation
notebook copied to clipboard

Need to press Enter to display terminal's prompt

Open davidbrochart opened this issue 2 years ago • 2 comments

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:

image

When opening new terminals afterwards, the issue disappear. Seems to be happening only in Firefox, but JupyterLab doesn't have the issue.

Reproduce

  1. Click "New Terminal".
  2. See a flashing cursor in a new empty terminal page.
  3. 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

davidbrochart avatar Dec 06 '21 14:12 davidbrochart

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

jtpio avatar Dec 06 '21 16:12 jtpio

I don't know, I'll report back if I have the time to investigate.

davidbrochart avatar Dec 06 '21 16:12 davidbrochart