Re: OT What does RET (Enter) do and how does it do it ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2007-08-25 at 17:24 -0500, Mikkel L. Ellertson wrote:
> Aaron Konstam wrote:
> > 
> > It seems to me that there is a point that is being missed. What you type
> > on the keyboard is just a continuous stream of characters. A line feed
> > which you get in Linux when you hit return is just a character like any
> > other. When you hit a g the letter g is printed. When  a text editor is
> > analyzes the line feed it knows to go to the next line. When the shell
> > sees the line feed it knows it is to treat everything on the line up to
> > the line feed as a command. No magic is involved and it is really very
> > simple.
> > 
> It is on an even lower level that that - when you hit a g, a g may
> or may not be printed, depending on what is being done with the
> input. (For example, if I am playing a movie with mplayer, f toggles
> full screen mode, but is never printed.) Now, there are some
> libraries that make thing easy for the programmer. The reason that
> the editing keys work the same in so many programs is that they are
> using the readline library routines. (man readline)
> 
> You also have all the terminal control characters that can come into
> play, depending on the interface and settings. (man stty)
> 
> Mikkel
Ok, I went too far. Whatever program contols processing the keyboard
input uses anything typed in the way it wants to use it. The point is
that lf is not unique in that regard.
--
=======================================================================
Universities are places of knowledge. The freshman each bring a little
in with them, and the seniors take none away, so knowledge accumulates.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@xxxxxxxxxxxxx


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux