all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Replace with CR
Date: Mon, 06 Jul 2015 12:34:38 +0200	[thread overview]
Message-ID: <87zj39shfl.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.6423.1436172566.904.help-gnu-emacs@gnu.org

"Gian Uberto Lauri" <saint@eng.it> writes:

> Stefan Monnier writes:
>  > > Again, there's no such thing as ENTER.  The key is RETURN.
>  > 
>  > FWIW, my keyboard (US thinkpad) has no "RETURN", but it does have a key
>  > labelled "Enter".
>
> I have "Return" on my old VIC20, but I doubt Emacs will be ever ported
> there...
>
> "Return" was a tty-derivative labeling and was once common, even when
> it sent a LF o CR/LF[1] pair. 

NO. THE "RETURN" KEY NEVER EVER SENT A LINE-FEED CODE! Not even in CR-LF
pair.  It only sent a CARRIAGE RETURN code.

It is the system that echoed this carriage return along with a line feed
(or just a line feed when local echo was activated).  And in the case of
unix, it is the keyboard driver that translates the CARRIAGE RETURN code
it reads into a LINE FEED in the buffer (and even, only according to the
tty configuration).  In linux, check n_tty_receive_char and
do_output_char in drivers/tty/n_tty.c



> Enter is much common now and closer to
> semantic the keys has today for most computer users. Enough common to
> build jokes on, see the two strips I posted.
>
> [1] for those who still do not know it: the pair is CR/LF and not
> LF/CR because on old TTY the carriage return was a longer operation
> that could be controlled without keeping the tty controller busy: you
> could start the head carriage, and while the it was going home move
> the paper drum one line.

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


      parent reply	other threads:[~2015-07-06 10:34 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-05 14:40 Replace with CR Andrea Venturoli
2015-07-05 15:22 ` tomas
2015-07-05 15:24 ` Pascal J. Bourguignon
2015-07-05 15:47   ` Óscar Fuentes
2015-07-06  8:41     ` Gian Uberto Lauri
     [not found]     ` <mailman.6422.1436172122.904.help-gnu-emacs@gnu.org>
2015-07-06 10:18       ` Pascal J. Bourguignon
2015-07-05 15:55   ` tomas
2015-07-05 17:03   ` Ian Zimmerman
     [not found]   ` <mailman.6379.1436115793.904.help-gnu-emacs@gnu.org>
2015-07-05 17:34     ` Pascal J. Bourguignon
2015-07-05 19:25       ` Barry Margolin
2015-07-05 20:01         ` Óscar Fuentes
2015-07-05 20:47         ` Pascal J. Bourguignon
2015-07-05 22:59           ` Richard Wordingham
2015-07-06 13:51           ` Barry Fishman
2015-07-06 16:04             ` Stefan Monnier
     [not found]   ` <mailman.6368.1436111238.904.help-gnu-emacs@gnu.org>
2015-07-06  9:49     ` Andrea Venturoli
2015-07-06 14:37       ` Barry Margolin
2015-07-06 15:33         ` Andrea Venturoli
2015-07-07  0:29         ` Robert Thorpe
     [not found] ` <mailman.6367.1436109760.904.help-gnu-emacs@gnu.org>
2015-07-05 15:36   ` Pascal J. Bourguignon
2015-07-05 16:30     ` Stefan Monnier
2015-07-05 16:39       ` Paul Smith
2015-07-06  8:49       ` Gian Uberto Lauri
     [not found]       ` <mailman.6423.1436172566.904.help-gnu-emacs@gnu.org>
2015-07-06 10:34         ` Pascal J. Bourguignon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zj39shfl.fsf@kuiper.lan.informatimago.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.