Changeset 27045 in project for wiki/eggref/4/pty


Ignore:
Timestamp:
07/11/12 21:38:04 (9 years ago)
Author:
sjamaan
Message:

pty docs: Fix unbalanced parens and point out that gui-get-password should be provided somewhere else

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/pty

    r23993 r27045  
    6969
    7070<enscript highlight="scheme">
     71(use pty)
     72
    7173(call-with-pty-process-io "ssh myfirewall"
    7274  (lambda (in out pid)
    7375    (peek-char in)
    74     (display (gui-get-password) out)
     76    (display (gui-get-password) out) ;; You'll need to implement this!
    7577    (newline out)
    7678    (read-line in)
    7779    (display "dhclient 2>/dev/null && echo OK || echo FAIL\n" out)
    7880    (unless (equal? "OK" (read-line in))
    79       (error "couldn't launch dhclient")))
     81      (error "couldn't launch dhclient"))))
    8082</enscript>
    8183
Note: See TracChangeset for help on using the changeset viewer.