TclTerm enhancements

Questions about the BASICtools and MakeItC
Post Reply
YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

TclTerm enhancements

Post by YahooArchive »

Is there a command that can be issued from the microcontroller to clear the
terminal window?



YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: TclTerm enhancements

Post by YahooArchive »

There is no command to do that now, but you could add one.

Both BASICtools and MakeItC are Tcl programs that include TclTerm.tcl
In each case serial data from the micro gets displayed through the Tcl routine
getRS232. In that routine you could add a check for a special character or
sequence of characters that would then call the routine clearButton.

For instance--

if {[string first "-CLEAR" $serial_in] >= 0} clearButton

would do it

You don't need to setup a Tcl environment, as both BASICtools and MakeItC have a
FreeWrap version of Tcl.

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: TclTerm enhancements

Post by YahooArchive »

OK, I'll give that a try. thanks again.

olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Re: TclTerm enhancements

Post by olzeke51 »

I checked the latest TclTerm.tcl file for this phrase :
In each case serial data from the micro gets displayed through the Tcl routine
getRS232
with some of the updates you have done - what was this replaced by??
Gary

basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: TclTerm enhancements

Post by basicchip »

getUSB_SER

Post Reply