TSE: Linux: Is 'e' a console (API) application or a graphical (API) application?

12 views
Skip to first unread message

knud van eeden

unread,
Jun 27, 2025, 2:45:45 PM6/27/25
to SemWare TSE Pro Text Editor, S.E. Mitchell
Hello

TSE: Linux: Is 'e' a console (API) application or a graphical (API) application?

Thanks
with friendly greetings
Knud van Eeden

S.E. Mitchell

unread,
Jun 27, 2025, 5:48:41 PM6/27/25
to knud van eeden, SemWare TSE Pro Text Editor
In Linux-land, it is called a Terminal application.
It uses Ansi/VT100 escape sequences for screen output.
For input, it sets the terminal into raw mode and reads and decodes keypresses.
--
Sammy

Carlo Hogeveen

unread,
Jun 27, 2025, 6:38:44 PM6/27/25
to sem...@googlegroups.com

> TSE: Linux: Is 'e' a console (API) application or a graphical (API) application?

Neither, I would say, because no OS API is involved, but there is a "terminal API".

Linux TSE is a console application in the general sense: It is completely text based.

Any "graphical" action is implemented (or not!) by the terminal or command line that Linux TSE is running in.
Linux desktops come with more capable terminals than Linux servers, and direct command lines are the worst.
Linux TSE sends and receives "special text strings" to and from the terminal to write text to specific positions on the screen, set colors, make a sound, change the cursor shape, request and receive mouse events, and more.
It depends on the terminal whether this will work or not.
Like all TSE variants it does no real line drawing, but writes the text-characters for line-shapes.
A very extensive source of documentation for the "special text strings" is
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
It has a steep learning curve. I have only explored its slopes.
Linux TSE writing "special text strings" to the screen generally seems to work well.
However, Linux TSE receiving "special text strings" for mouse events resembles normal keyboard input, and they cause side-effects.
Have fun,

Carlo



Guy Rouillier

unread,
Jun 28, 2025, 6:35:14 AM6/28/25
to Semware TSE Pro
Actually, that is not accurate.  e is fully a console application.  A long time ago, I found an innovative, very small editor called zed that compiled into both a console and a graphical application; I shared it with everyone here, but got busy with other things and never got zed into a git repo to share.  Still on my to-do list.  Relevant here is that to get the graphical version of zed, only a single statement is necessary to initialize the X system.  I'll try to get that committed to a repo so Sammy can see how it is done, and generate an X-based version of TSE in Linux.

--
Guy Rouillier
--
 
---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages