Changeset 3518


Ignore:
Timestamp:
Jan 17, 2013, 10:26:48 PM (3 years ago)
Author:
quozl
Message:

telnetd - use the I/O multiplexor, so that the telnet client becomes a mirror of the keyboard, display, and serial console.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ofw/inet/telnetd.fth

    r748 r3518  
    209209
    210210
    211 0 value old-in
    212 0 value old-out
    2132110 value telnet-ih
    214212
     
    217215
    218216: exit-telnet  ( -- )
     217   telnet-ih remove-output
     218   telnet-ih remove-input
    219219   telnet-ih close-dev
    220    old-out stdout !
    221    old-in  stdin !
    222220   ['] = to getchar-hook
    223221;
     
    238236   " telnetd" open-dev dup 0= abort" Can't open telnet"  ( ih )
    239237   to telnet-ih
    240    stdin @ to old-in  stdout @ to old-out
    241    telnet-ih dup stdin !  stdout !
     238   telnet-ih add-output
     239   telnet-ih add-input
     240   \ hint: use " screen-ih remove-output " to speed up your telnet output
    242241   ['] ?telnet-closed to getchar-hook
    243242;
Note: See TracChangeset for help on using the changeset viewer.