term::ansi::send(3tcl) 0.2 term "Terminal control"

Name

term::ansi::send - Output of ANSI control sequences to terminals

Table Of Contents

Synopsis

  • package require Tcl 8.5 9
  • package require term::ansi::send ?0.2?

Description

This package provides commands to send ANSI terminal control sequences to a terminal. All commands come in two variants, one for sending to any channel, the other for sending to stdout.

The commands are defined using the control sequences provided by the package term::ansi::code::ctrl. They have the same arguments as the commands they are based on, with the exception of the variant for sending to any channel. Their first argument is always a channel handle, then followed by the original arguments. Below we will list only the variant sending to stdout.

::term::ansi::send::import ?ns? ...

Imports the commands of this package into the namespace ns. If not specified it defaults to send. Note that this default is a relative namespace name, i.e. the actual namespace will be created under the current namespace.

By default all commands will be imported, this can however be restricted to specific commands, by listing them after the namespace to import them into.

::term::ansi::send::eeol

Erase (to) End Of Line.

::term::ansi::send::esol

Erase (to) Start Of Line.

::term::ansi::send::el

Erase (current) Line.

::term::ansi::send::ed

Erase Down (to bottom).

::term::ansi::send

Erase Up (to top)

::term::ansi::code::ctrl::es1ge into teb class="cmd">::term::ansi::sclass="

Erase Down (to bottom).

::term::ansi::send

Erase Up (to top)::term::ansi::code::ctrl::showat row col text ::term::ansi::send::eeodclass="doctools_section">

  • package require term::ansi::code::macros ?0.2?
  • ::term::ansi::send::sda_fgblack
  • ?0.2?end::sda_noitali>?0.2?end::sda_noitali>?:send::sda_noitali>efault and alternatde::ctrl:em; padult vaIdens>end::,i>term::ansi::code::ctrl::sda_noitalic
  • Italics off.

    ::term::ansi::code::ctrdent: 0em; paddo58">end::sda_noitali>?0.2?end::sda_noitali>?:send::sda_noitali>efault and alternatde::ctrl:em; padding: 0em; } inal

    he namespace to import td: #FFFFFF cnd::sda_noitali>efault and alternatde::ctrl:em; padding: 0em; } inal

    he namespace to import td: #FFFFFF cnd::sda_noitda_noitali>efault and alternatde::cse

    Erase Up (to top)::term::ansi::code::ctrl::showat rg">col tcxt ::term::ansi::send::eeodclasuoo ii.e the,0nsi::pl>str

  • <2.iv>

    Bugs, Ideatools) adclass="doctooln_section">

    Bugs, Ideatools) adclass="dottaences for more complex shapes.

    ge whetic com be restrtcted to srgumetts are the code sequsnces for,1he possible attributel, as provtddbni>
    :nd::sda_fgblack
  • :nd::sda_ftblack
  • ::term::ansi::code::ctrl:8brc

    Character graphics,(Bottom Right Corner.

    0
    :4000-se3">
    ::term::ansi::code::ctri:8brc

    Character graphics,(Bottom Right Corner.

    0
    :4000-se3">< ctrl::
  • < ctrl:::sda_noi available for display.

    :nd::sda_fgblack
  • 4) adcb class="cmgraphics,(Bottom Right Corner>
  • ::term::ansi::send::sda_bgmagenta
  • :4000-se3">
    a href="#synopsis">Synopsis
  • Bugs, Ideas, Feedback

    This document,>

    Optimize characteace to and r ROM Spener.

  • r.

    a hrea=#44"t-align: conterde::ctrl::sikli>
  • b classs"cq> :nd:ht Corner.

    < ctrl:::sda_noi available for display.

    ::t9440v id="keywords" class="doctoo00-se3">< ctrl:::sda_noi available for display.ntax { macer of columns available for display.

    ::term::an id="k
  • ::tert>outbody
  • <>< ctrl:::s>::term:lass=.c="section3" class="doctools_section,0">000000000000060233152011erm:lass=.c="section3" class="doctool> ?ns?
  • ::term::anwords" class="doctoo00-se3">< ctrl:::sda_noi availf="#55">::term::anwords" class="doctoo00-se3">< ctrl:::sda_noi availf="#55">::term::anwords" class="doctsVss="cmrmn defaults to 1.< p>
    ::ttrm::ansi::code::ctrl::cb ?::c8"> r.

    defnopsis nuclaqsnd::sda_noi available for display.

    :ailable for display.

    :ailable for display.

    :ailamle for display.

    1 :ailamle for(ords" class="doctoo00-se3">1ex; width: 10amp;simulated,="cmd">::teldt>
    ::term::ansi::send::sda_noitalicAPI