HP Forums
[Python] Text Mode Layer (tml) - a terminal simulator with monospaced font support - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: [Python] Text Mode Layer (tml) - a terminal simulator with monospaced font support (/thread-22456.html)



[Python] Text Mode Layer (tml) - a terminal simulator with monospaced font support - komame - 10-06-2024 09:29 PM

I would like to present my latest creation, which is the tml module - a terminal simulator for HP Prime written in Python, offering the following features:
  • Support for monospaced fonts
  • Ability to use custom fonts
  • Extended input function that works just like on a PC (allowing data entry at any position on the screen)
  • Comprehensive keyboard handling implemented from scratch (support for Shift/Alpha along with locks, including key press holding)
  • Option to define keyboard mappings for entering various special characters/diacritical marks, etc., directly from the keyboard
  • Status bar (with the option to hide it) to display keyboard indicators and various comments during program execution
  • High performance

The English documentation is included in the package.
The French, Spanish, and German documentation can be downloaded [here].

Below are some screenshots from demo programs included in the package:
[attachment=14051]
[attachment=14052]
[attachment=14053]

Download:
[attachment=14054]


RE: [Python] tml - a terminal simulator with monospaced font support - komame - 10-14-2024 06:15 AM

UPDATE 2024-10-14 - v1.00 final release:

After a few days of additional testing of the 1.00 RC1 version, it's time for the final release:
  • added documentation in Spanish and German
  • fixed a bug in the HP mini font file (mini4x7.font) that prevented its usage
  • added an additional check that throws an exception when attempting to load a non-existent or invalid font file
  • added ligature characters: æ/Æ, œ/Œ to fonts with diacritical marks and adjusted the diacritic.py demo program
  • added the 'Bomber Run' game to the Demos as a standalone application to demonstrate the use of the PPL wrapper with tml

The latest version of tml is available in the first post.