Can't press enter in jshell on Linux-terminal - linux

I'm using Xubuntu. When I start jshell in the terminal, I doesn't recognize when I press the enter key. Every other key gets detected normaly. Any suggestions how to fix that?

Solution for laptop users without an number pad on their keyboard:
Plug in an extra keyboard with a number-pad.
Start jshell, try to press enter on your laptop keyboard.
If it still doesn't work: On the extra keyboard: press "Num" key with which you activate the number pad.
Now pressing enter on your laptop keyboard again.
It should work now, otherwise turn the numberpad off and on again and repeat step 4.
Don't know why it works that way, but it does.

Write the following in your terminal:
numlockx on
Now it will work. To make this permanent, let Xubuntu execute this after booting.

Related

MSI Keyboard key works only after another key

I have an MSI laptop, and whenever I want to press the letter 'e' it doesn't work. Only when I press another key and right after I press the key 'e' it works. I tried reinstalling the keyboard driver, restart, even tried going to safe mode and it still didn't work. I opened the key on the keyboard and its whole and not broken. Is it a software problem or do I need to buy a new keyboard?

Keyboard not working while entering root password(Linux)

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

Black Screen with cursor before log in

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!!

How to simulate keyboard button in Bash

I have to simulate button press in my script.
I have a big application running in which I have to put some values in some fields and press enter so proceed to next panel and so on.
I got idea about simulating ENTER using echo "\n", but unable to find out how to simulate buttons like Function keys, arrow keys and pressing alphanumeric characters.
Any idea will be helpful
You can use expect to do this.

strange issue, keyboard inputs locked by emacs?

I have a crazy problem on CentOS.
I was doing some editing in emacs when I accidentally hit some keys. Next thing I know, none of my regular keystrokes work.
I wasn't able to close emacs no matter what I tried (mouse on X doesn't work either).
I logged in from another PC and killed the emacs process.
However, this still doesn't fix the problem. Now, when I click my desktop shortcut, I can open another konsole, however, I can't type anything into that console!
When I click on the X to close it, I get this black hand, not the regular arrow.
Further, hitting enter doesn't do anything, and any keystrokes I type don't show up in the terminal.
However, if I type s, the Search heading on the terminal window drops down.
Does anybody know how to get out of this weird mode so I can use my PC again?
EDIT: More information. I think my linux is stuck in something similar to Windows ALT mode. For instance, in Windows, when you hit ALT, followed by F, the File menu will drop down. On my PC, when I hit F, the File menu immediately comes down on the active terminal. However, I cannot for the life of me get out of this mode. Been stuck for over an hour now!!
Hitting the ALT key may have solved the problem. I'm not sure if that was what ended up fixing it, but after I hit the ALT key a bunch of times, I got the VNC display to work properly again.

Resources