I started Firefox from by bash window by entering the command "firefox",
it started the Firefox browser in the user interface.
When I checked the Firefox process by entering "ps" command, I found Firefox process has a controlling terminal attached to it (pts12 / which is evident from above screenshot) and also the firefox process has bash as the parent process.
Now, how am I able to provide the keyboard input directly to the Firefox browser window? (I have typed "Hello world" in the browser)
Since the tty is attached to the process, the input to Firefox should be via terminal window right?
I know there is something called X-11 involved here, but can't get the whole picture
This question is asked keeping the following as base which doesn't provide enough information on the above queries, How do keyboard input and text output work?
But the programs like ls, cd, cat, java -jar which doesn't have an UI are not x11 applications?
– user446659 Dec 16 '20 at 09:55ls
,cd
, Midnight Commander etc. are not X11 applications; some of them expect to run in a terminal (Midnight Commander), others expect to be able to write to their standard output (ls
, interactive shells...) and that is usually handled by a terminal or terminal emulator of some sort, but it could also be an editor buffer etc. – Stephen Kitt Dec 16 '20 at 09:59