[SOLVED] Is the terminal in gui mode a pesuoterminal?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
To set reboot with text mode.
When login in with text mode,to input tty ,you get tty1.
Now,to input `startx` to jump into gui mode.
To enter terminal in the gui mode started from tty1 to inupt.
tty
/dev/pts/0
Is the terminal in gui mode a pesuoterminal?
Someone said it is just a X server started from tty1,not pesuoterminal.
Hi, it's rather hard to tell exactly what you're talking about.
However a terminal in UI mode, showing on the desktop, is a terminal. Same as if you boot to non-GUI mode and type into a console. Both are a Linux process which you are running. The only differences are the visual attribute differences of them; such as the UI based one may have scrollbars and a recall buffer to allow you to see some large number of lines, whereas the non-GUI one does not have a scrollbar.
Hi, it's rather hard to tell exactly what you're talking about.
However a terminal in UI mode, showing on the desktop, is a terminal. Same as if you boot to non-GUI mode and type into a console. Both are a Linux process which you are running. The only differences are the visual attribute differences of them; such as the UI based one may have scrollbars and a recall buffer to allow you to see some large number of lines, whereas the non-GUI one does not have a scrollbar.
Does this answer your question?
When the tty device is identified as "pty" it is a pseudoterminal. This means that to the application/shell it appears and is used exactly like a hardware terminal. The kernel provides the emulation of the device. When used as part of a GUI based terminal, the GUI part is usually emulating a terminal using a Window for output, and the keyboard/mouse for input. The kernel is given the keyboard input which then passes it through the pseudoterminal emulation. That emulation usually causes an echo (not always, as terminal based editors usually turn that off) which is passed back to the GUI part to decide how and where to display it. This is how the various terminal types are emulated.
In the case of the linux tty devices, these are ALSO emulated - by the kernel as if they were a hardware device without a GUI.
One specific difference between between a real terminal and emulated terminals is that the speed (stty speed) can be set to anything - it really doesn't make any sense as there is no hardware UART involved (it usually defaults to 38400).
The default serial lines on most PCs are identified as /dev/ttyS0 and /dev/ttyS1 (there may be more than two shown, but by default only two would work depending on the motherboard and/or extra interfaces). These actually use the baud rate for sending/receiving as well as the modem control signals, and hardware control signals (clear to send, ready to send).
The pseudoterminals are also used for remote connections (ssh and others). If there are no ptys defined (accidentally deleted?) then remote ssh connections using a terminal cannot be established.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.