[LBo] write command

Jisao dimark at securenet.net
Sat Dec 2 17:37:15 CET 2006


Rafi Gabzu wrote:
> Hi ,
> What is the difference between Konsole to Xterm , seems that the write
> command works only between two Xterm . Also the "who" command display
> pts/ and not tty .
> Thanks,
> Rafi
An xterm is a terminal based on command line. You have no GUI capability 
there.  Like the old screens on mainframes, hence the tty appellation.

A konsole is a terminal emulator >sitting on a GUI software<. It behaves 
like a terminal... most of the time.  The difference lies mainly in it 
depends/deals with video display. If you video server is glitchy or 
gives you grievances, the chances are very likely your konsole will give 
you a hard time too.  Then you have to get to the >non Xserver side< of 
the computer, the terminal, to fix or work on X (or whatever else 
doesn't work in Xserver).

A better image would be if you are sitting on a big branch in a tree, 
and all of a sudden you have to cut or prune the branch, for instance.  
You better be sitting on the >tree side< of the branch when you cut (a 
tty terminal), than on the >far side< (a konsole). Same with xterms and 
konsoles: in some cases, it is better to deal with some applications 
closer to the core of Linux (an xterm) than the other end of the branch 
(a konsole).  Less hassles.  I like to compare the xterm to a bulldozer: 
when all else fails, time to lauch the heavy machinery.

I did a test with Badatom on the chat list, and for pts (which are GUI 
consoles), what seems to work is something like this (presuming that you 
are at pts/0):

jisao at mybox:~$echo "Hey, care for a pizza at lunch time?" > /dev/pts/0

In my case, a Kwrited window opens on /dev/pts/0, with the message "Hey, 
care for a pizza at lunch time?"in there.

Hope this helps (and that I haven't confused the terminal names).

Jisao





More information about the QnA mailing list