I'm unable to paste text at CLI prompts when running tfx-cli.
I've just installed Node v8.9.1 LTS. Unfortunately, the tfx-cli install hung the first time through. I pressed Ctrl+C to cancel it, ran it again, and the second time it completed. (In the text that flashed across my screen during the second run, I believe I saw something about 'failed' and 'rollback.')
I don't know whether the initial failure is contributing to my problem.
When I run tfx login, I get this prompt first:
> Service URL:
I can type at this prompt, but I can't paste. Once I type the URL and press Enter I get this:
> Personal access token:
I can neither paste nor type at this prompt (or at least the cursor doesn't advance when I type). The only keys that seem to work here are Enter and Ctrl+C. Pressing Enter without typing anything results in this:
error: Invalid input for Personal access token:
Pressing Enter after typing a few random characters sends no output to the console and simply dumps me back at the C:\> prompt.
How to fix this? How can one determine whether it's a Node problem or a tfx-cli problem? I suspect the latter but I'm not sure.
--EDIT--
Are others able to paste text at these prompts?
I tested on my side with Node v8.9.1 LTS installed. Everything works correctly.
Make sure you have activated the command line window before pasting the text.
For Personal access token or password, it's implicit (non-visible) in the command line. The token strings will not show there when pasting the PAT/password. But it works if you enter the correct token.
So, just make sure you activated the cmd window before paste action:
Copy PAT/password (Sometimes you need to try this several times to make sure the strings are copied)
Activate the command line window (click within the window to active
it)
Paste the PAT/password (It's implicit, just make sure you pasted the
correct token )
Enter
UPDATE:
Seems related to the OS or permission. Whatever, you can try running the cmd as Administrator, then check whether you can copy and paste now.
Besides, you can also try to enable "QuickEdit Mode" for CMD console. ( Right-click on the title-bar of your cmd window. --> [Properties] - Options - check "QuickEdit Mode"
Also try the ways mentioned in this article: How to Enable CTRL+C / Ctrl+V for Pasting in the Windows Command Prompt
Related
I get this error:
Failed to launch preferred application for category "TerminalEmulator".
Step 1
Go to applications and search for qterminal and open QTerminal.
This will open a terminal.
Step 2
Type sudo apt install xfce4-settings, hit enter, wait for process to complete.
Now you can use all your applications.
After a lot of scrapping through various answers which asked to install or update various things, all just was for NO LUCK!
Then I decided to do it in my own lazy way.
I donot have any problem with QTerminal, hence I just tweak some parts in the thunar and settings.
In thunar(file manager) > Edit > Configure custom actions > Open Terminal Here (If this tag is not available then create it or if there is multiple tags with same value then keep only one and delete other)>double click on it to open and customize it.
In the next box you'll see "command" which will be run when clicking on "Open Terminal Here". Just dont write any command manually. There on the right side a "Select Application" icon is present. Just click it and select your preferred terminal. Save this change and Bingo! you'll be opening the folder in your preferred terminal.
now you'll see the command (basically path to the terminal application with a modifier f to open folder). Select only the application path and copy it, we'll need it in step 2.
In this step we will set up just tweak setting
Setting>Keyboard>Shortcuts
if Ctrl+Alt+T is already defined here then just edit it or create new "Custom shortcut"
paste the copied path of the terminal (what we copied in step 1) in the command section. Save it
DONE!!! *** You can set any shortcut key for your convenience ***
I'm using Parrot security OS MATE. The keyboard working fine elsewhere but when I try to enter my root password for using any elevated privileges, the keyboard stops working.
I think you don't know that Linux terminal Hide password type feedback.
Just type your password correctly and hit enter. It you will works. If you enter wrong password then It will show you
Sorry, try again.
If you want to see your keystroke feedback in terminal then open your terminal Ctrl + Alt + T and Run
sudo visudo
And enter your password correctly
You will see file like one below. Using arrow keys, navigate to the end of line:
Defaults env_reset
Add this line with ,pwfeedback . Result should look like this:
Defaults env_reset,pwfeedback
Save with Ctrl + X and then typing y and hit “Enter” to accept
Now close and re-launch command prompt to see if this worked or not.
It will not show the password while typing the password. So it's not your keyboard error. It's yoir error. I think u need to start from ubuntu
I'm tasked with creating a simple calculator application for entry to a programming course. I'm having issues with Terminal :(
I'm not looking for an answer to my overall task, I just want to know why Terminal wont RUN!! What am I doing wrong?
Steps as follows:
Create a directory that you will keep your Calculator application in. Call it
something sensible, like "Calculator".
Open up a command prompt and navigate to your calculator directory
Run npm init to create a new Node.js project. Use the default answer to every
question it asks you (just press "Enter") - don't worry if you don't understand
what all the questions mean!
If it doesn't do anything after the final question "Is this ok?", double-check
there's a file in the folder called package.json . If it's there, everything went
smoothly and you can exit the npm init process by typing in the console
Ctrl + C .
So my problem is... when I run npm, all that happens is my Mac asks if Terminal can access or change files in my system, I click yes, then Terminal doesn't do anything from there, no questions etc I just get:
I can't see package.json, so I take it it hasn't worked properly? How can I fix this to move on?
I'm using zsh on terminal.
Well, first off. What ide do you use? (Personally I like Visual Studio Code).
I'm not sure what the short command is for you to open up the terminal but just google it. Otherwise, you can click "Terminal" on the very top and open a new terminal.
When you do this, you will get a new window at the bottom of your screen. This window has some tabs, make sure you are in the terminal tab.
While there, type "npm init".
This will give you your package.json-file.
If you want to use your terminal for outputs I recommend you get nodejs too.
I have tried all the possible solutions to solve it given in the internet. But my problem does not solved.
So I want to reset my pc. If so is my pc get back to normal state. Previously I have resetted my pc for another problem. Is my resetting option works again. My friends said that reset options works only once...
Can anybody suggest me what to do??
The issue here seems to be that Windows thinks you have a new monitor that does not exist.
The most common solution that seems to have worked for many people (did not actually work for me, but worth a try): Wait long enough so the mouse cursor to appear when you move the mouse. (blank screen with a white mouse cursor) Then press the Ctrl and enter your login password. Wait until login competed then press Win+P keys, down arrow keys twice, and enter to extend display. (this spans your monitors onto one display)
The solution that worked for me was to unplug all monitors, reboot (hard reset, holding down power button), then plug in just one monitor. (may need to reboot again)
I solved the issue by pressing
Press Ctrl+alt+Esc.
Task Manager Window Appears,Then Click File
Option above,then Select Run New Task from the options that are
listed.
3.Create New Task Window appears and type "explorer" and press Ok. Screen Appears and Restart your laptop again .
You can try the following solution. It works perfectly. 1. Press Ctrl+alt+del 2. Select Task manager 3. Select File option above 4. Click Run new task 5. Type "explorer.exe" and press Enter You'll screen appears again!!
My cygwin terminal (known as Mintty) can't work, when I minimize it to the windows taskbar, and restore it, and it will receive the Ctrl-C signal, but i didn't touch any key.
This is wierd. when a long time command is running, i swith it to see wether is finishe, then it is interputed my Ctrl -C. I refresh intall it several times. it's still there.
This situation can also happened when i select some text on the terminal.
Thanks
Some translator software have the "Hyper Translate" function, which will copy texts selected then tries to translate it, the way how it copy strings is to simulate a Ctrl-C from keyboard. When using cygwin or some ssh/telnet terminal tools (e.g. SecureCRT, putty, NX Client..) and the Ctrl-C is not set as the hotkey for copy action, and you tries to select a block of texts, trouble comes.
I guess the one who asking this question is also a Chinese like me. Then, the famous software which will bring this trouble is "Youdao Dictionary".
Disabling the "Hyper Translate / HuaCiFanYi" function of the "Youdao Dictionary" is a remedy.
As Leif Zhang mentioned, if you are using Lingoes or other dictionary you should uncheck the option Translate Selected Text as the following image.