[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Blank lines in paste event in Screen
From: |
Morteza NourelahiAlamdari |
Subject: |
Blank lines in paste event in Screen |
Date: |
Thu, 4 Jan 2024 15:52:22 +0100 |
Hi,
When I paste a multi-line text in an app like IPython, inside the
screen, it will put a blank line in every text and therefore IPython
tries to execute every single line as it thinks is a separated
command.
While, when I paste the same text into IPython outside of Screen or
even inside of Tmux, it works perfectly fine.
For example this is my multi-line text:
```python
class Screen:
"""Screen class."""
_screen_id = None
def __init__(self, name: str):
"""Initialize the class."""
self._name = name
```
Inside IPython with Tmux or without/outside of Tmux:
In [1]: class Screen:
...: """Screen class."""
...:
...: _screen_id = None
...:
...: def __init__(self, name: str):
...: """Initialize the class."""
...: self._name = name
Inside IPython with Screen:
In [4]: class Screen:
...: """Screen class."""
...:
In [5]: _screen_id = None
In [6]:
In [6]: def __init__(self, name: str):
...: """Initialize the class."""
...: self._name = name
Do you have any idea how to fix this?
I searched a lot and nothing I've found in that regard.
Cheers,
Morteza NourelahiAlamdari
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Blank lines in paste event in Screen,
Morteza NourelahiAlamdari <=