zsh-users
 help / color / mirror / code / Atom feed
From: Kurtis Rader <krader@skepticism.us>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: print color escapes
Date: Thu, 1 Jan 2015 18:58:49 -0800	[thread overview]
Message-ID: <CABx2=D8M5Sj5AG_RAJh4uymv1SyGM2DRz+fFZwv=_H74-yR41Q@mail.gmail.com> (raw)
In-Reply-To: <54A604FB.2020603@eastlink.ca>

[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]

On Thu, Jan 1, 2015 at 6:39 PM, Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> I'm just realizing something that might not be true:  In the old days, it
> would have been the hardware terminal itself that interpreted these codes,
> but now, it's my 'terminal emulator', not the screen itself, which is why
> it's called an 'emulator'.  Correct?  And I can't believe I'm saying this,
> but too bad that these control characters are part of the data stream,
> there should have been a 'vi' insert vs. control mode.  One special char,
> and you're in control mode until you toggle out of it again.
>

The "hardware terminal" you refer to was itself a computer that executed
code. The only difference between it and the "terminal emulator" you're
likely using today is that the former was embedded in a piece of hardware
with a very narrow function whereas the modern terminal emulator (e.g.,
iTerm2 that I use on Mac OS X) runs on a device with a very broad function.
But they both execute programs that recognize specific input sequences and
act accordingly (e.g., clearing the "screen").

The whole point of the ANSI X3.64 standard (as partially implemented by the
DEC VT100) was to implement  a vi style of insert versus control mode. The
CSI sequence (ESC [) switched the terminal from "insert" to "control" mode.
And once the control command (e.g., clear screen) was recognized and acted
upon the input mode reverted to "insert".

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

  reply	other threads:[~2015-01-02  2:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-01  5:47 Ray Andrews
2015-01-01  6:35 ` Bart Schaefer
2015-01-01 19:24   ` Ray Andrews
2015-01-01 21:29     ` Bart Schaefer
2015-01-01 23:02       ` Ray Andrews
2015-01-01 23:26         ` Bart Schaefer
2015-01-02  2:30           ` Ray Andrews
2015-01-02  2:45             ` Kurtis Rader
2015-01-02  3:50               ` Ray Andrews
2015-01-02  4:18                 ` Bart Schaefer
2015-01-02 17:43                   ` Ray Andrews
2015-01-02  1:21         ` Kurtis Rader
2015-01-02  2:39           ` Ray Andrews
2015-01-02  2:58             ` Kurtis Rader [this message]
2015-01-02  3:48               ` Ray Andrews

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='CABx2=D8M5Sj5AG_RAJh4uymv1SyGM2DRz+fFZwv=_H74-yR41Q@mail.gmail.com' \
    --to=krader@skepticism.us \
    --cc=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.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 public inbox

	https://git.vuxu.org/mirror/zsh/

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