sam-fans - fans of the sam editor
 help / color / mirror / Atom feed
From: John (Farewell Horizontal!) Mackin <john@physiol.su.oz.au>
To: Sam Fans <sam-fans@hawkwind.utcs.toronto.edu>
Subject: Re: How do I reference carriage returns?
Date: Mon, 17 Jan 1994 05:26:51 -0500	[thread overview]
Message-ID: <199401172126.27123.sam.babad@physiol.su.oz.au> (raw)
In-Reply-To: <9401141339.AA18744@beirnek>

[Just making a guest appearance on the Sam Fans list.]

This is a good question.  The fact is that sam handles control characters
rather well, always excepting null characters, but control-M presents a
particular problem because (at least on UNIX under most conditions)
you can't _type_ it.  If you could type it, you could just deal with
it directly -- try this with characters like control-A, control-G, et al.
They work great, inserting themselves when typed, and functioning correctly
inside commands.  (You may have problems _displaying_ these characters,
since they come down to the font you are using, presumably under X --
try to use a font which displays control characters somehow.)

To return to control-M, though, you can't deal with it since there is no
way to type it.  This isn't too bad, usually, since in the typical case
the file you want to fix up has a control-M as the last character of
_every_ line, and so the trivial

	,x/.$/d

deals with it very effectively.  If you aren't convinced that every line
ends with control-M, then yes, old faithful tr is the best solution.

OK,
John.


  reply	other threads:[~1994-01-17 10:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-01-17 10:07 Beirne Konarski
1994-01-17 10:26 ` John Mackin [this message]
1994-01-17 16:54   ` Castor Fu
1994-01-18  2:47 Byron Rakitzis

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=199401172126.27123.sam.babad@physiol.su.oz.au \
    --to=john@physiol.su.oz.au \
    --cc=sam-fans@hawkwind.utcs.toronto.edu \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).