[gforth] / gforth / contrib / terminal.fs  

gforth: gforth/contrib/terminal.fs

Diff for /gforth/contrib/terminal.fs between version 1.1 and 1.2

version 1.1, Fri Nov 5 14:27:33 2004 UTC version 1.2, Thu Nov 3 19:08:47 2005 UTC
Line 17 
Line 17 
 \                     added Send File function  KM  \                     added Send File function  KM
 \       2004-09-17  Ported to gforth from kForth; use WRITE-FILE instead  \       2004-09-17  Ported to gforth from kForth; use WRITE-FILE instead
 \                     of "write" to store data in capture file  KM  \                     of "write" to store data in capture file  KM
   \       2005-09-28  Fixed problem associated with read-line  KM
   \
 include strings.fs  include strings.fs
 include ansi.fs  include ansi.fs
 include syscalls386.fs  include syscalls386.fs
Line 205 
Line 206 
   
           ?sending ms@ last-send-time @ - LINE-DELAY >= AND IF            ?sending ms@ last-send-time @ - LINE-DELAY >= AND IF
             ms@ last-send-time !              ms@ last-send-time !
             send-line-buffer 256 txfid @ read-line nip 0= IF              send-line-buffer 256 txfid @ read-line IF
               com @ swap send-line-buffer swap serial_write drop                \ error reading file
                 2drop txfid @ close-file drop FALSE to ?sending
                 save_cursor
                 HELP_ROW HELP_BACK_COLOR clear-line
                 HELP_TEXT_COLOR foreground
                 ." Error reading file!"
                   restore_cursor set-terminal-colors
             ELSE              ELSE
               txfid @ close-file drop                FALSE = IF
                   \ reached EOF
                   drop txfid @ close-file drop
               FALSE to ?sending                FALSE to ?sending
               save_cursor                save_cursor
               HELP_ROW HELP_BACK_COLOR clear-line                HELP_ROW HELP_BACK_COLOR clear-line
               HELP_TEXT_COLOR foreground                HELP_TEXT_COLOR foreground
               ." <<Terminal: Send Completed!>>"                ." <<Terminal: Send Completed!>>"
               restore_cursor set-terminal-colors                restore_cursor set-terminal-colors
                 ELSE
                   com @ swap send-line-buffer swap serial_write drop
                 THEN
             THEN              THEN
           THEN            THEN
   


Generate output suitable for use with a patch program
Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help