Using MMEdit with TeraTerm


TeraTerm is a much better VT100 terminal than the one built in to MMEdit and is recommended for extended use.

TeraTerm can also do macros and this feature allows you to easily upload programs using XMODEM.

Every time you do a save, MMEdit save two extra copies of your program. 

One is a true copy of your program and will always be named "LASTFILE.BAS" 
The second one is a copy that has been crunched - all comments and blank lines removed to save space. This file is always named "LASTFILE.BAZ"

If you don't use this feature and have large files, disabling this option in 'Preferences' will result in faster File Saves.

The files are always saved to the same location which will be similar to "C:\Users\Owner\AppData\Local\CCom\MMedit\lastfile.bas"

You may have the location hidden but it doesn't matter. The location will be correctly written to a TeraTerm macro file in the next step.

To create two macro files for uploading the programs, normal and crunched, run File/Make TeraTerm Macros. You should place the two macros into the TeraTerm program folder. 
If TeraTerm is installed under Program Files, Windows will not like you placing the file there. In this case, place the files in any convenient location and then use Windows Explorer to copy the to the TeraTerm folder.
If you are likely to play with more TeraTerm macros, it would be a good idea to install TeraTerm into another folder, NOT under Program Files.

Once created, the macros will not be changed by MMEdit so it is safe to amend them. A typical macro for uploading is:

send #3 
pause 2 
sendln "XMODEM RECEIVE" 
pause 3 
xmodemsend "C:\Users\Owner\AppData\Local\CCom\MMedit\lastfile.bas" 1

The macro sends a CTRL-C Waits 2 seconds Sends the command to start XMODEM Waits 3 seconds Sends the program

Another useful macro is one for setting the MicroMite's clock.

send #3 
pause 1 
gettime now 
getdate today "%d/%m/%Y" 
sendln "time$ = " #34 now #34 
sendln "date$ = " #34 today #34

This macro sends CTRL-C Waits 1 second Gets the time and date from the PC time Sends the commands to set time and date.

You could add this macro contents to the start of the upload macros.

To always set the clock on loading, change the upload macro to

send #3 
pause 1 
gettime now 
getdate today "%d/%m/%Y" 
sendln "time$ = " #34 now #34 
sendln "date$ = " #34 today #34
pause 1 
sendln "XMODEM RECEIVE" 
pause 3 
xmodemsend "C:\Users\Owner\AppData\Local\CCom\MMedit\lastfile.bas" 1

The macros will need modifying if you want to use them with a Maximite.

To run the macro from TeraTerm use Control/Macro and select the appropriate macro file.

 

Last edited: 06 May, 2021