Changeset 35195 in project


Ignore:
Timestamp:
02/23/18 21:36:12 (10 months ago)
Author:
kon
Message:

rel 1.2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/posix-utils

    r35174 r35195  
    99
    1010Miscellaneous Posix related routines.
     11
     12=== terminal-info
     13
     14<procedure>(terminal-info [PORT]) --> alist</procedure>
     15
     16Returns {{alist}} of terminal properties for {{PORT}}.
     17
     18: {{PORT}} ; {{output-port}} ; {{current-output-port}}
     19
     20Known terminal properties:
     21
     22: {{name}} ; {{string}}
     23: {{width}} ; {{fixnum}}
     24: {{height}} ; {{fixnum}}
     25
     26=== get-terminal-size
     27
     28<procedure>(get-terminal-size [PORT]) --> (or boolean (list fixnum fixnum))</procedure>
     29
     30Returns terminal size or {{#f}} when {{PORT}} is not a {{terminal-port}}.
     31
     32: {{PORT}} ; {{output-port}}
     33
     34=== get-terminal-name
     35
     36<procedure>(get-terminal-name [PORT]) --> (or boolean string)</procedure>
     37
     38Returns terminal name or {{#f}} when {{PORT}} is not a {{terminal-port}}.
     39
     40: {{PORT}} ; {{output-port}}
     41
     42=== output-port-width
     43
     44<procedure>(output-port-width PORT [DEF]) --> fixnum</procedure>
     45
     46Returns terminal width or {{DEF}} when {{PORT}} is not a {{terminal-port}}.
     47
     48: {{PORT}} ; {{(or boolean output-port)}} ; {{current-output-port}}
     49
     50=== output-port-height
     51
     52<procedure>(output-port-height PORT [DEF]) --> fixnum</procedure>
     53
     54Returns terminal height or {{DEF}} when {{PORT}} is not a {{terminal-port}}.
     55
     56: {{PORT}} ; {{(or boolean output-port)}}
    1157
    1258=== string-trim-eol
     
    203249== Version history
    204250
     251; 1.2.1 : Fix {{output-port-width}} & {{output-port-height}}. Add {{get-terminal-name}}. Change {{terminal-info}} alist.
     252; 1.2.0 : Added {{terminal-info}}, {{get-terminal-size}}, {{output-port-width}}, & {{output-port-height}}.
    205253; 1.1.0 : Added {{string-trim-eol}} , {{software-eol-string}}, {{environment-variables->environment-list}}, {{register-environment-variable-feature!}}, {{get-shell-variable}}, {{shell-variable-bound?}}, {{shell-variable-true?}}, {{register-shell-variable-feature!}}
    206254; 1.0.0 : Created.
Note: See TracChangeset for help on using the changeset viewer.