Unable to paste in terminal opened by App Lab

Continuing the discussion from UNO Q: Possible to connect Python (not containerized) with Arduino ?:

I tried but failed. This is the error message. In shell terminal, I cannot do copy/paste of a command. So, typing such a long command ie error prone:

Hi @GolamMostafa.

You typed release%2F00.8.0 instead of release%2F0.8.0.

You should definitely be able to do so. Try using Ctrl+Shift+V to paste the copied command.

Using Ctrl + V or Ctrl+Shift+V, I can paste in Command Prompt window. There is no way, I can do it in Shell Window.

For copying, I use Ctrl+C. Anyway, I will type the command again. It is good to learn about running script in the MPU bypassing the App Lab.

I'm not sure I understand what you mean by "Shell Window".

This one -- Shell terminal, sorry!

I'm not familiar with that. If it doesn't support pasting, then it is not suitable for any serious use. Discard it and use something better!

The preinstalled "Windows PowerShell ISE" application is usable.

My personal preference is the Git Bash terminal that is part of the Git for Windows installation:

https://gitforwindows.org/#bash

If you ever use Git, you most likely already have it installed.

1 Like

I call "Shell Terminal" to that terminal which comes up when I click on >_ located at the left-bottom of App Lab Interface.
image

I have the Windows Terminal program installed.
I often use KiTTy windows instead, but when I connect like this.

If you are using the >_ window, I usually on windows machine
find if I use the mouse left button to select text:

And Right mouse button will do a paste:
image

I don't remember if there might be some settings for this somewhere...

Try this:

  1. Click the >_ button ("Connect to the board's shell") at the bottom of the Arduino App Lab window.
    The shell terminal will open.
  2. Right click on the empty part of the tab bar at the top of the terminal window.
    A context menu will open.
  3. Select "Settings" from the menu.
    The "Settings" view will open in the terminal window.
  4. Select "Actions" from the navigation pane at the left hand side of the window.
    The "Actions" view will open in the right hand pane of the window.
  5. Scroll down through the list of actions to find the "Paste" action.

If you find the action, verify that your preferred keyboard shortcut is configured for the action. If not, hover the mouse button over the "Paste" action, click the pencil button that appears, and configure the action's keyboard shortcut according to your preferences.

If you don't find the action in the list, click the "+ Add new" button at the top of the "Actions" view, then add the missing "Paste" action, configuring your preferred keyboard shortcut.

1 Like

I undestand that --
Window Terminal (opened via Command Prompt) talks with the Windows OS of my PC.

Shell Terminal (Opened via App Lab) talks with the Linux OS of the UNO Q Board.

TTy/CoolTerm/IDE Terminals talk with external UART devices.

Referring to your #22, I have done Step-1 to get the above "Shell Termial"; I cannot perform step-2 as I don't recognize:

(a) "top of the terminal window" -- is it the title bar where I see "arduino@gm123456: ~ ?"

(b) "tab bar" -- which one is it?

(c) "empty part" -- which one is it?

I'm referring to the interface you can see in the screenshot on post #21:

I see now that the interface of your terminal is different, and so the instructions I provided are not applicable. I apologize for any confusion.

Are you using Windows 10 or 11?

1 Like

Windows 10.

turn on copy/paste in windows command line..
right click on the title bar for the command prompt window..
choose settings from the pop-up menu..
and yes, it's off be default, last edit option..

good luck.. ~q

I have no problem for copy/paste in Command Prompt window; I have problem with Shell Terminal that comes up from App Lab Interface.

@GolamMostafa @ptillisch and all
Wondering if maybe something similar to tmux is active within the terminal window.

I remember that @Merlin513 when playing with containers earlier had mentioned TMUX and I remember that my keyboard/mouse operations changed. It was back in
this thread:

And for example I have noticed that in my monitor window (in this case kitty),
if I ctrl+(right mouse button) a context menu does pop up that includes paste.

1 Like

I think this is the explanation for the differences in the user interface of the terminal you are presented with compared to the PowerShell terminal shown in the screenshot KurtE shared.

If you open the "shell terminal" via Arduino App Lab, then open Windows Task Manager, what is the command line you see for the process associated with the "shell terminal" application?

Note: I don't think it maters but I don't use powershell, I use old command prompt

Actually with Terminal the ctrl+click is not bringing up menu, it still just does paste.
But the settings in Terminal...
Under Actions it shows bindings: For example paste:

and ctrl+shift+v
Does appear to paste

Sorry, I meant "Windows Terminal", not "PowerShell":

I believe @GolamMostafa is using the older "Windows Console":

1 Like

Now, copy/pase works. I have followed these steps:

I have clicked on C:\ icon located at left-top of the title bar of Shell Terminal.
---> Properties
---> Options
---> Put Tick mark on "Use Ctrl+Shify+C/V as Copy/paste"

Thanks,

Notes: Referring instructions of #8

The above command does not work. This is the error message: (I have followed your instructions in sequence of that post #8).)

arduino@gm123456:~$ uv run python/main.py
Traceback (most recent call last):
  File "/home/arduino/python/main.py", line 5, in <module>
    from arduino.app_utils import *
ModuleNotFoundError: No module named 'arduino'
arduino@gm123456:~$