splixson
Posts: 13
Joined: Sun Dec 09, 2012 8:02 am

Is multiple keyboard input to pi possible?

Mon Mar 25, 2013 9:27 pm

Is it possible to have two keyboards in control of a bash session? Where one keyboard is a Logitech wireless keyboard (main pi keyboard) and the other keyboard is actually a laptop connecting through to the pi from a ssh session.

One scenario is being able to correct typing entered by the Logitech using input from the ssh session. Other scenario is to play a two player game.

From my googling, it doesn't sound possible but it would be nice to confirm that is so.

Cheers

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5623
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Is multiple keyboard input to pi possible?

Mon Mar 25, 2013 9:41 pm

splixson wrote: Is it possible to have two keyboards in control of a bash session? Where one keyboard is a Logitech wireless keyboard (main pi keyboard) and the other keyboard is actually a laptop connecting through to the pi from a ssh session.

One scenario is being able to correct typing entered by the Logitech using input from the ssh session. Other scenario is to play a two player game.
...
The main keyboard and the ssh session "keyboard" are effectively separate "terminals". Hence "scenario one" is unlikely. However, since different users can be logged in either directly or via the ssh session "scenario two" should be possible since linux is a "multi-user" O.S. Exactly how one would achieve that aim is another matter - I can think of a few possibilities but I'm not a "game programmer".
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Is multiple keyboard input to pi possible?

Mon Mar 25, 2013 9:53 pm

The "write" command might be what you are looking for.
Or linuxvnc or a solution with , again , GNU screen ...


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

splixson
Posts: 13
Joined: Sun Dec 09, 2012 8:02 am

Re: Is multiple keyboard input to pi possible?

Mon Mar 25, 2013 10:09 pm

Gnu screen looks great, didn't know that existed. I will investigate that, thanks.

Return to “Beginners”