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]

 



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
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux