StefanSchippers / xschem

A schematic editor for VLSI/Asic/Analog custom designs, netlist backends for VHDL, Spice and Verilog. The tool is focused on hierarchy and parametric designs, to maximize circuit reuse.
Other
318 stars 21 forks source link

cannot copy/paste properly in TCL command window #157

Closed cnMuggle closed 9 months ago

cnMuggle commented 9 months ago

I am using 3.4.5 now from iis-osic. I noticed the copy/paste behavior in xschem is not function correctly and not consistently

I am not able to select the text to copy in the "Tools->Execute TCL command" image

here is what I am trying to do, to copy this text from this TCL command input and paste it to xschemrc. I cannot copy it either by right click or ctrl+c. image

If I press mouse middle button. I think depending on when my mouse pointer is located at. something from originally selected is first copy and then paste into the existing text. image

Here is what I get from the Windows paste board: _PATH "$XSCHEM_LIBRARY_PATH:/foss/tools/xschem/64ca25b/share/xschem/xschem_library/devices/"

here is what I get from the Linux paste board. It's something I previously copied from xschem text window. image

I guess maybe there is no copy/paste for TCL expression input? In other time, the situation is that when I have copied and want to copy something else, the paste board always keep the existing copied content but it cannot be overwrite by the latest copy content. I think outside of the xschem program, the linux terminal works well. What I copied can be pasted properly. What I new copied will replace the old copy content.

Thanks

StefanSchippers commented 9 months ago

Select all the text in the Tools -> execute TCL command dialog box (this is done by going to the first character, press the left mouse button, drag the mouse to the end of the text, releasing the left button and press 'ctrl-c'.

Then open the xschemrc in a text editor and do 'paste' or press middle mouse button or press 'ctrl-v', depending on the editor. Do not close xschem before completing the paste operation because the selection is handled by the application by X11 standards.

cnMuggle commented 9 months ago

Select all the text in the Tools -> execute TCL command dialog box (this is done by going to the first character, press the left mouse button, drag the mouse to the end of the text, releasing the left button and press 'ctrl-c'.

Then open the xschemrc in a text editor and do 'paste' or press middle mouse button or press 'ctrl-v', depending on the editor. Do not close xschem before completing the paste operation because the selection is handled by the application by X11 standards.

Thanks, Stefan. If you first copy half of the text and paste them somewhere else, then come back to copy the text all and then paste somethwere, I will only see the half text copied. Somehow the behavior of copy/paste is not consistent.

In this example below, I first copy $XSCHEM_LIBRARY_PATH and then I want to copy "puts $XSCHEM_LIBRARY_PATH" but I only get $XSCHEM_LIBRARY_PATH pasted twice. image

Let me know if you don't see this issue on your side, then I know it's something else goes wrong.

StefanSchippers commented 9 months ago

I think you are using some virtual machine, may be there are some settings to handle sharing selection / clipboard with the host / guest Operating System. I don't see these issues.

cnMuggle commented 9 months ago

I think you are using some virtual machine, may be there are some settings to handle sharing selection / clipboard with the host / guest Operating System. I don't see these issues.

Just confirmed as well, using WSL->xschem doesn't have such issues. It seems the Windows docker container issue of iic-osic which having xschem.

cnMuggle commented 9 months ago

closed as issue related with OS or container