SOLVED:nemesis: adding mouse control in tty or command line

Arch based Porteus community project

Moderator: M. Eerie

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

SOLVED:nemesis: adding mouse control in tty or command line

Post#1 by francois » 15 Dec 2016, 03:28

Adding mouse control in tty or command line in systemd is done in the following way:

gpm:
adding mouse control to tty (getty) or text terminal outside of xorg as an aid to use mc.
gpm is provided on nemesis in addition to mc (midnight commander) base module. You have to set your mouse though.

Code: Select all

guest ~ $ sudo pacman -S hwinfo
guest ~ $ hwinfo --mouse 
...
Driver Info #0:
    XFree86 Protocol: explorerps/2
    GPM Protocol: [b]exps2[/b]

guest ~ $ GPM_ARGS="-m /dev/input/mice -t exps2"
guest ~ $ sudo systemctl enable gpm
guest ~ $ sudo reboot
Which will set the mouse in tty mode.

How can I achieve that under openrc? Or what is the equivalent of systemctl enable gpm under openrc?
Prendre son temps, profiter de celui qui passe.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Re: nemesis: adding mouse control in tty or command line

Post#2 by Jack » 15 Dec 2016, 04:24

francois now I can add a mouse that will be a great help.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Re: nemesis: adding mouse control in tty or command line

Post#3 by jssouza » 15 Dec 2016, 10:23

Hi François,
Maybe
pman -S gpm-openrc
?

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: nemesis: adding mouse control in tty or command line

Post#4 by francois » 15 Dec 2016, 10:30

Hi jssouza. :)
It is already installed on the system.
Prendre son temps, profiter de celui qui passe.

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Re: nemesis: adding mouse control in tty or command line

Post#5 by jssouza » 15 Dec 2016, 10:47

Oh then have you already tried rc-update?

Code: Select all

/etc/init.d/gpm start
rc-update add gpm default

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: nemesis: adding mouse control in tty or command line

Post#6 by francois » 16 Dec 2016, 02:49

This is it. :D

Code: Select all

 # /etc/init.d/gpm start
 # GPM_ARGS="-m /dev/input/mice -t exps2"
 # rc-update add gpm default
Thanks so much.

Thus with mc (midnight commander) in console mode the mouse is available outside of X environment. :)
Prendre son temps, profiter de celui qui passe.

Post Reply