Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 38940 for trunk/base/src

Show
Ignore:
Timestamp:
08/03/08 01:05:42 (4 months ago)
Author:
raimue@…
Message:

pextlib1.0:
Add a wrapper for isatty(3). Add term_get_size to find the size of a connected
terminal for a channel using ioctl(2).

Location:
trunk/base/src/pextlib1.0
Files:
2 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/base/src/pextlib1.0/Makefile

    r27297 r38940  
    22                fs-traverse.o strcasecmp.o vercomp.o filemap.o \ 
    33                sha1cmd.o compat.o curl.o rmd160cmd.o readline.o uid.o\ 
    4                 tracelib.o 
     4                tracelib.o tty.o 
    55SHLIB_NAME=     Pextlib${SHLIB_SUFFIX} 
    66INSTALLDIR= ${DESTDIR}${datadir}/macports/Tcl/pextlib1.0 
  • trunk/base/src/pextlib1.0/Pextlib.c

    r37913 r38940  
    115115#include "uid.h" 
    116116#include "tracelib.h" 
     117#include "tty.h" 
    117118 
    118119#if HAVE_CRT_EXTERNS_H 
     
    12151216         
    12161217        Tcl_CreateObjCommand(interp, "tracelib", TracelibCmd, NULL, NULL); 
     1218        Tcl_CreateObjCommand(interp, "isatty", IsattyCmd, NULL, NULL); 
     1219        Tcl_CreateObjCommand(interp, "term_get_size", TermGetSizeCmd, NULL, NULL); 
    12171220 
    12181221        if (Tcl_PkgProvide(interp, "Pextlib", "1.0") != TCL_OK)