LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2017, 09:51 AM   #1
Assomnia
Member
 
Registered: May 2017
Posts: 38

Rep: Reputation: Disabled
Virtual Keyboard in command line


Hey everyone !

I was wondering if there is any software that would bring up a virtual keyboard in command line. I could have access to a "Window" but I'd like to stay in the shell.
I'm running Raspbian.

Something similar to this : IMAGE

And be able to just use the keyboard arrows and enter key to write anything in the prompt.

I use buttons attached to the GPIO to simulate keyboard press. And I don't/can't have any touchscreen.

If anyone has a idea feel free

Thanks for helping
 
Old 06-30-2017, 10:00 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
You can run onboard from the command line.
 
Old 06-30-2017, 10:21 AM   #3
Assomnia
Member
 
Registered: May 2017
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
You can run onboard from the command line.

Hey and thanks !

I tried on my desktop computer. Anything I enter like apt-get update wont work or send the command. Normal ?
In command line, using the arrow key to choose which key to press on onboard is possible ? Because on my desktop it is sending like : ^[[A for example.
 
Old 06-30-2017, 10:36 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Ah, perhaps I misunderstood your requirements then, sorry. No, Onboard is used with a mouse/trackpad. I hope you can find an alternative that allows you complete access using only the keyboard without recourse to clicking.

I just opened MATE Terminal, ran onboard, and successfully used onboard to issue sudo apt-get update (including the password). It worked fine (although we are using different platforms - I'm running Mint 18.1 MATE on a laptop). After you had completed the command did you click on the Enter key on Onboard?
 
Old 06-30-2017, 12:23 PM   #5
Assomnia
Member
 
Registered: May 2017
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Ah, perhaps I misunderstood your requirements then, sorry. No, Onboard is used with a mouse/trackpad. I hope you can find an alternative that allows you complete access using only the keyboard without recourse to clicking.

I just opened MATE Terminal, ran onboard, and successfully used onboard to issue sudo apt-get update (including the password). It worked fine (although we are using different platforms - I'm running Mint 18.1 MATE on a laptop). After you had completed the command did you click on the Enter key on Onboard?
Yes I pressed enter, but it goes on the next line and nothing else.
I will continue to search, if anyone has a other idea feel free

Thanks again
 
Old 06-30-2017, 12:41 PM   #6
Assomnia
Member
 
Registered: May 2017
Posts: 38

Original Poster
Rep: Reputation: Disabled
I managed to launch the keyboard with a .desktop file (to try). It actually launch a .sh file (via the .desktop file) which contains onboard thats it. Works well and I can use the mouse and click on stuff and it's working. It also sends the command in the terminal when I press enter.

If there is any way to use the keyboard and select the key you want to press with the arrows and not using the mouse at all that would be it !
 
Old 07-01-2017, 10:57 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Is your application a workaround for a disabled user. If it's not, then what you are trying to do is counterproductive. You're using the keyboard to use a keyboard. You could just use the keyboard without the other keyboard. The result is the same.

But I think you have a different angle on this that you're not telling us about.
 
Old 07-02-2017, 05:47 AM   #8
Assomnia
Member
 
Registered: May 2017
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
Is your application a workaround for a disabled user. If it's not, then what you are trying to do is counterproductive. You're using the keyboard to use a keyboard. You could just use the keyboard without the other keyboard. The result is the same.

But I think you have a different angle on this that you're not telling us about.
It's a bit hard to explain. Yes I could use a normal keyboard via USB. The thing is that i'm running a pi zero W in a PSP console. And the buttons from the PSP are connected to the GPIO. As it is a console I'd like not to have any keyboard. But a virtual one instead. The buttons from the PSP are simulating keyboard press, like up down left right on the pad of the PSP are the arrows from the keyboard. The X button is Enter, the triangle is Escape etc...
I installed Raspbian and I can choose to boot on Kodi, emulationstation or raspbian from the console via a script I created.
Basically I boot on command line on every startup.

I'm looking for a virtual keyboard that can be used with the keyboard. The arrows, enter and backspace. And a virtual keyboard that is running in command line like the picture I showed in my first post.
If anything like that exist would be awesome !
 
Old 07-02-2017, 05:55 AM   #9
Assomnia
Member
 
Registered: May 2017
Posts: 38

Original Poster
Rep: Reputation: Disabled
This guy in this video has a virtual keyboard. I don't know how he uses it and what it is but he is also running a linux on PSP. I don't know if its ssh or what but it can't be a touchscreen. What could it be ?
 
Old 07-02-2017, 06:10 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,910

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
probably: https://sourceforge.net/projects/tabletvk/ But probably you need to improve it. How do you want to switch between physical and virtual keyboard?
also you may check this page: https://stackoverflow.com/questions/...-linux-console

Last edited by pan64; 07-02-2017 at 06:13 AM.
 
Old 07-02-2017, 07:13 AM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Assomnia View Post
This guy in this video has a virtual keyboard. I don't know how he uses it and what it is but he is also running a linux on PSP. I don't know if its ssh or what but it can't be a touchscreen. What could it be ?
That could well be μClinux.

http://psplinux.info/2011/09/how-to-...kson-mos-port/

http://www.uclinux.org/
 
Old 07-02-2017, 07:44 AM   #12
Assomnia
Member
 
Registered: May 2017
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
probably: https://sourceforge.net/projects/tabletvk/ But probably you need to improve it. How do you want to switch between physical and virtual keyboard?
also you may check this page: https://stackoverflow.com/questions/...-linux-console
I will use script to launch the virtual keyboard or remove it. I can plug a real keyboard + mouse in the usb port of the PSP in case. Again the aim is to have just the button and the virtual keyboard may help to do some more complicated stuff.
Thanks for the links

@hydrurga : Is this uClinux a OS ? Thats exactly this keyboard whise !
I have to figure out if it's possible to get this keyboard in download or something, without downloading the OS (if it's the case and possible).


Thanks guys I really appreciate, long time I'm looking for that.
 
Old 07-02-2017, 07:56 AM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Assomnia View Post
@hydrurga : Is this uClinux a OS ? Thats exactly this keyboard whise !
I have to figure out if it's possible to get this keyboard in download or something, without downloading the OS (if it's the case and possible).
Yes it is. See the second link I posted - why don't you contact them and ask about the onscreen keyboard (assuming that it wasn't an add-on provided by the port mentioned in the first link).
 
Old 07-02-2017, 09:45 AM   #14
Assomnia
Member
 
Registered: May 2017
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Yes it is. See the second link I posted - why don't you contact them and ask about the onscreen keyboard (assuming that it wasn't an add-on provided by the port mentioned in the first link).
This is what I did, thanks for the link indeed, a step forward !
 
Old 07-02-2017, 09:54 AM   #15
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Assomnia View Post
This is what I did, thanks for the link indeed, a step forward !
Let us know if/when you get a response.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard shortcut for last entered param in command line ? hongkildong Linux - Newbie 6 11-22-2012 04:16 AM
[SOLVED] Install Virtual Machine using command line shivakumargone Linux - Virtualization and Cloud 8 10-12-2010 05:07 AM
how to switch to command line from GUI using keyboard shortcut tj_linux Linux - Newbie 16 05-16-2010 07:29 AM
Changing keyboard layout from command line wimnat Linux - General 0 02-02-2006 04:28 AM
command-line way of switching virtual consoles? chrisgr Red Hat 1 10-31-2003 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration