Interactive $d EMIT does LF

From: Bulgrien, Dennis <Dennis.Bulgrien_at_TripointGlobal.com>
Date: Thu, 18 Nov 2004 09:49:58 -0600

In SwiftX v2 emitting a carriage return character (13) moved the cursor to
the beginning of the currentl line. In this way, one could create
low-volume status output. For instance, the following would print progress
on one line:

: test CR 100 0 DO $d EMIT I . [CHAR] % EMIT LOOP $d EMIT ." Done" ;

SwiftX v3 $d EMIT moves the cursor to the next line so output is expanded
onto many lines, e.g.
0 %
1 %
2 %
...
97 %
98 %
99 %
Done ok

How can the pure <CR> behavior be done in v3?
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu Nov 18 2004 - 07:52:21 PST


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.