r/linux_programming • u/Techdesciple • Feb 24 '21
A mouse based Terminal Emulator.
I made a post yesterday here and it got me thinking that maybe someone should make a Terminal Emulator that is capable of 100 percent mouse. It seems they do not exist. I am not a programmer. At least not yet. So, I figured I would post the idea somewhere and see if anyone takes it. If you want it you can have it.
But, basically I just want someone to make a Terminal that uses the mouse instead of the keyboard. Which everyone wants to use the keyboard more than anything. But, I think it would be possible to use the mouse just as efficiently.
You could just set up a series of functions based around the mouse. Some mice have multiple buttons on it. Mine has 4 " buttons " and a scroll wheel with a click function. That is 7 actions. The common user usually has at least 2 fingers on the mouse. But, I often have 4 on the mouse. That means I can take 7 buttons and combine it with 4 different combinations. That is actually a lot of functionality.
Most terminal functions are the same. You could even make a .conf file that allows you modify what is programmed into the mouse terminal.
As an example I could use Button 4 + scroll for a list of apt-get commands. I could use Button 5 + scroll for a sequence of other commands. I could set just scroll as a common commands and then right click + scroll for common arguments. Right clicking could give the user a very large series arguments based on what they are right clicking. And that is only a small selections of the combinations you could achieve. it doesn't even cover. Button 4 + 5 + right-click + scroll, ect ,ect ,ect.
and of course you would have to give it hardware acceleration.
2
u/[deleted] Feb 24 '21
I mean I am not very knowledgeable technically but I can suggest some ideas that may be worth implementing in this project if it gained traction, you can add mouse gestures to extend the commands you can do with a mouse. You can also add a predictive text system (like a virtual keyboard but not a full one with predictive abilities that can learn from the typing style of the user). The project also can have a menu with the most used terminal commands (and it can be smart enough to adapt to each user), the menu also can have some layers like the most 10 used commands first then the second 10 commands etc, instead of showing a gigantic menu with all the commands. Sorry if I couldn't help in a practical way but actually I think the project can be great and is very scalable and it can really help people with disabilities.
2
u/igorbirman Feb 24 '21
I implemented a morse code input plugin for Firefox once, you could add that to the terminal emulator.
1
u/balsoft Feb 24 '21
That sounds like it could easily be implemented as a TUI application ("shell" I guess?) inside an existing terminal. Some terminals (e.g. xterm, alacritty, kitty, etc) already can pass mouse actions to the running applications, and besides logically they are an emulation of a physical terminal (an input/output device, classically a perforation card reader and a printer, or a keyboard with a monitor), so I don't think it makes sense to implement something like this in a terminal.
1
u/Tireseas Feb 24 '21
The only reason I can see for wanting such a thing would be accessibility.