ceccopierangiolieugenio / pyTermTk

Python Terminal Toolkit - a Spiced Up TUI Library 🌶️
https://ceccopierangiolieugenio.github.io/pyTermTk/
MIT License
585 stars 22 forks source link

How to paste text inside edit line with putty on Windows #211

Open smartkid2024 opened 8 months ago

smartkid2024 commented 8 months ago

Hi In Putty if the right click then the clipboard is pasted but in pyTermTK the right click doesn't work to paste something. is there any way to do that? paste copied text inside TermTk And is it possible to change TermTk in the window title? image

ceccopierangiolieugenio commented 8 months ago

"ctrl+v" or "ctrl+shift+v" normally supported in any terminal

The Right click (Putty) Mid click (any linux WM) is a built in terminal feature that perform a paste in the app input manager

pyTermTk does not have control over it. Any terminal app that capture the mouse, automatically disable the terminal "paste on click" feature

You can still handle the Central/Right mouse press and call the built in the clipboard paste

smartkid2024 commented 8 months ago

Hi i made a video for you and test linux terminal and putty. how could you paste from putty in your app? https://github.com/ceccopierangiolieugenio/pyTermTk/assets/155442769/e7444cd1-43d4-46a7-aee9-bf0b486bc84e

ceccopierangiolieugenio commented 8 months ago

Putty seems kind of an oddball: I managed to paste using:

SHIFT+Ins

or

CTRL+RightClick -> "Paste From CLIPBOARD"

or

SHIFT + Mid Button (I think because it is the linux default)

It seems that there is an option to enable CTRL+SHIFT+V image

smartkid2024 commented 8 months ago

Thanks cool

smartkid2024 commented 8 months ago

I repeat ctrl+right click and select copy doesn't work in puty. is there any solution for that?

ceccopierangiolieugenio commented 8 months ago

I am trying putty under Wine I can paste using

ceccopierangiolieugenio commented 8 months ago

the copy is more complex since via SSH i cannot share the clipboard, you need to rely on the terminal copy mechanism

under Putty you can select using SHIFT+LeftMouse everything selected is copied in the clipboard automatically