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]

 



> programs like emacs.  But you are saying that this equally applicable to
> all programs.  That I could, if I wanted change the function of RET by
> changing the keymap a particular application uses.  It is just that the
> use of RET is fairly well standardized. 

Its partly wired in. Certain parts of the behaviour are encoded into the
terminal layer in the kernel (originally designed from the days people
sat at terminals with serial links (or current loop) to the box in the
data centre.

In normal line by line behaviour the return key is fixed (you can pick
between carriage-return and line feed that is all), but the other
'special' characters like the delete key can be changed. This is so
called "canonical" or "cooked mode". You can turn this off to do character
by character processing (as emacs does) which is "raw mode".

The idea of cooked mode is that most programs at the time wanted lines of
typed input so the kernel handles this to ensure the editing behaviour was
standard, it was efficient and on big machines (with hundreds of
terminals) you didn't wake processes each keypress. Indeed some machines
had serial ports that didn't wake the machine but supported all the line
editing features in hardware until you hit return.

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