Changeset 35120 in project


Ignore:
Timestamp:
02/14/18 21:45:59 (10 months ago)
Author:
sjamaan
Message:

man/5: Add terminal port procedures to Module (chicken port) chapter, drop unit posix from TODO

Location:
wiki/man/5
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/man/5/Module (chicken port)

    r35113 r35120  
    4444{{#:line}} or {{#:none}}. If {{BUFSIZE}} is specified it
    4545determines the size of the buffer to be used (if any).
     46
     47
     48=== Terminal ports
     49
     50==== terminal-name
     51
     52<procedure>(terminal-name PORT)</procedure>
     53
     54Returns the name of the terminal that is connected to {{PORT}}.
     55
     56On Windows, this procedure always raises an exception.
     57
     58==== terminal-port?
     59
     60<procedure>(terminal-port? PORT)</procedure>
     61
     62Returns {{#t}} if {{PORT}} is connected to a terminal and
     63{{#f}} otherwise.
     64
     65
     66==== terminal-size
     67
     68<procedure>(terminal-size PORT)</procedure>
     69
     70Returns two values, the number of columns and rows of the terminal
     71that is connected to {{PORT}} or {{0}}, {{0}} if the terminal size can
     72not be obtained.
     73
     74On Windows, this procedure always raises an exception.
    4675
    4776
Note: See TracChangeset for help on using the changeset viewer.