Tera Term Mac 0.7.0 Adds Search After Cutting Scrollback Memory Use, With the Original Author's Approval
Tera Term Mac 0.7.0, a port of the Windows terminal emulator, adds search for terminal scrollback and settings. It can reuse Windows settings and macros, and version 0.6.1 cut scrollback memory use.
Bringing Windows settings and macros to the Mac
The developers say that Tera Term Mac has the approval of Tera Term's original author, Takashi Teranishi, and is developed by a team separate from the TeraTerm Project, which maintains the Windows version.
Teranishi previously developed a version of Tera Term Mac for the Macintosh. The new port is based on current Tera Term and rebuilds the terminal itself with Swift and AppKit. Its TTL macro interpreter is ported from Windows, and its file transfer features use Tera Term's source code.
The port can reuse settings from the Windows version. It can load the TERATERM.INI configuration file and read and write TeraTerm Menu's ttpmenu.ini file, which stores the connection list. Users must reenter any connection passwords encrypted with LockBox on Windows.
The developers say they implemented every TTL macro command. They adapted Windows-specific operations for macOS. Because of operating system restrictions, running setdate or settime leaves the system clock unchanged.
Tera Term Mac 0.7.0 port and compatibility
| Component | Windows version | Mac support |
|---|---|---|
| Terminal | Tera Term | Swift・AppKitReimplementation |
| Settings | TERATERM.INI | Can import |
| Connection list | ttpmenu.ini | Read and write |
| Passwords | LockBox encryption | Must reenter |
| Macros | TTL | All commands implemented |
| Clock changes | setdate / settime | System clock stays unchanged |
| Filetransfer | Existing code | Reuses the original code |
Alongside SSH, Telnet, and serial connections, the app can connect to a local shell on the Mac. Its Mac-specific features include grouping multiple sessions in tabs and laying out terminal views side by side in a single window.
Reusing familiar settings and macros can reduce the work of rebuilding an environment after changing operating systems.
Redesigned character storage cuts scrollback memory use
Version 0.6.0, released November 26, changed how the terminal redraws the screen. It now redraws changed rows and the cursor row, replacing the full redraw that used to happen on each keystroke.
In the developers' test of 20 keystrokes in a local shell on an Intel Mac running macOS 12, the median delay from keystroke to on-screen character fell from 36 ms in version 0.5.1 to 2.3 ms.
The developers released 0.6.1 on November 27. In a local shell on an Intel Mac running macOS 12, they measured the extra memory needed to keep 10,000 lines of scrollback. It fell from about 57 MB in 0.6.0 to about 17 MB.
A terminal cell stores character data along with attributes such as color and boldface. The 0.6.1 changes pack attributes into individual bits and store characters made up of multiple Unicode code points in a separate table. The developers say the data for each cell shrank from 40 bytes to 16 bytes.
When a line scrolls off the screen, the terminal omits uncolored trailing spaces from scrollback and pads the line back to the screen width when displaying it. It also reuses storage from old lines evicted from scrollback. Small savings per cell or row can add up over a long history.
The cursor now blinks only in the active window and stays steadily visible in other windows. In the 0.6.1 tests, idle CPU usage with six windows open dropped from 2.44% to 0.24%, and the time to finish printing 236,000 lines fell from 0.47 seconds to about 0.3 seconds.
Tera Term Mac 0.6.0 and 0.6.1 performance
| Metric | Before | After |
|---|---|---|
| Local shell on an Intel Mac (macOS 12) | ||
| 0.5.1 → 0.6.0 (20 keystrokes) | ||
| Keystroke to display (median) | 36ms | 2.3ms |
| 0.6.0 → 0.6.1 | ||
| Extra memory for 10,000 scrollback lines | About 57 MB | About 17 MB |
| Terminal cell size (bytes) | 40 | 16 |
| CPU usage(6 idle windows) | 2.44% | 0.24% |
| Time to print 236,000 lines | 0.47 s | About 0.3 s |
The developers also ran a large-output test 40 times and found that memory use did not keep growing.
Version 0.7.0 makes past output searchable
Version 0.7.0 followed on November 27. It searches both visible text and previous output in scrollback. It highlights matches and updates them as new lines arrive, such as when a command produces more output.
The release adds settings search and reorganizes the settings into General, Appearance, Communication, Controls, and Other. Users can set an image as the terminal background.
Version 0.7.0 runs on macOS 11 and later and supports both Apple silicon and Intel Macs. The Mac-specific implementation is open source under the MIT License. Source code derived from the Windows version retains its BSD license.
Version 0.6.1 made scrollback cheaper to keep, and 0.7.0 makes it easier to use. The two changes complement each other for anyone who regularly returns to earlier terminal output.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
