[ Home | Main Table Of Contents | Table Of Contents | Keyword Index ]

cmdr::tty(n) 1 doc "Cmdr, a framework for command line parsing and dispatch"

Name

cmdr::tty - Cmdr - Check if stdin is a tty, i.e. terminal

Table Of Contents

Synopsis

  • package require Tclx
  • package require cmdr::tty

Description

Welcome to the Cmdr project, written by Andreas Kupries.

For availability please read Cmdr - How To Get The Sources.

This package provides a single utility command testing if the stdout channel is a tty or not, and reporting the result.

API

::cmdr::tty stdout

When invoked this command returns a boolean value indicating if the stdout channel is a tty (true), or not (false).

Bugs, Ideas, Feedback

Both the package(s) and this documentation will undoubtedly contain bugs and other problems. Please report such at Cmdr Tickets.

Please also report any ideas you may have for enhancements of either package(s) and/or documentation.

Keywords

arguments, command hierarchy, command line completion, command line handling, command tree, editing command line, help for command line, hierarchy of commands, interactive command shell, optional arguments, options, parameters, processing command line, tree of commands