Author Topic: Is there anyone still developing applications with OpenMotif?  (Read 1261 times)

0 Members and 4 Guests are viewing this topic.

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
On Xterminal from the 90s and early 2000s (Tektronix's, NCD's, ...), { Motif, lessTif, OpenMotif, ... } seems like the only thing that makes sense, as GTK2, GTK3, KDE and QT dropped support for pseudo colors in 2010 as well as support for bitmap fonts and are massively using "too modern" approach, like xrender and xshm, if not also MESA stuff.

Anyway, even on a modern GNU/Linux SBC, applications based on OpenMotif are lighter by sever order of magnitude, and easy to develop.

So, why not?  :o :o :o
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 8349
  • Country: fi
    • My home page and email address
Re: Is there anyone still developing applications with OpenMotif?
« Reply #1 on: July 31, 2026, 08:15:36 pm »
As far as I can tell, Motif/OpenMotif/lessTif on Linux is dead.

However, Athena 7 (libXaw7; Xorg home) and plain X Toolkit (libXt; Xorg home) are still very much used, just somewhat lower-level (very few widgets, must combine to make your own).  They tend to be part of base desktop Linux installs, still.
 
The following users thanked this post: abeyer, DiTBho

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
Re: Is there anyone still developing applications with OpenMotif?
« Reply #2 on: July 31, 2026, 09:30:48 pm »
"Nirvana Edit" aka "nedit", and its fork "xnedit", are based on Motif.
But ... umm, they have "custom" widgets.

This is a problem for 90s and early 2000s Xterminals, because the source code is not clear in its intentions, and it seems it tries to "probe" for modern functionalities with tons of "polling requests" that saturate the Xterminal bandwidth, also because the Xterminal understands none of them.

Kind of ...

nedit: do you have Xrender?
Xterminal: What?
nedit: I said, do you have Xrender?
Xterminal: and I said, What?
nedit: I said, do you have Xrender?
Xterminal: What?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
nedit: I said, do you have Xrender?
Xterminal: What?
Xterminal: What?
Xterminal: What?
Xterminal: What?
Xterminal: What?
Xterminal: What?
Xterminal: What?
Xterminal: What?
Xterminal: What?
Xterminal: What?

timeout, connection reset

nedit: ummmm, after asking you this on loop for about 2000 times, I think that... maybe you don't support it.
nedit: Ok, next question ...
nedit: do you have XHM?
Xterminal: What?
....

All of this on a poor 10Mbps link

Crazy idea, in my opinion  :-//


---

Anyway, I wrote a text editor based on Athena, but ... it seems limited.
For example, the "textarea" widget on Athena does not support multiple selections, while the Motif one does.

Anyway, Athena looks simpler.
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
Re: Is there anyone still developing applications with OpenMotif?
« Reply #3 on: July 31, 2026, 09:39:41 pm »
I wrote a text editor from scratch for Motif, and one for Athena.

The Athena one is simple, but Athena does not have any file browsing widget (e.g. look ad "xedit", it's a good example), so I wrote a simple one myself.

I mean: with Athena, you have to write a lot of "basic" stuff (like the file broswer, or a text area with multi selection options) by youself.
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 8349
  • Country: fi
    • My home page and email address
Re: Is there anyone still developing applications with OpenMotif?
« Reply #4 on: August 01, 2026, 07:30:47 am »
I mean: with Athena, you have to write a lot of "basic" stuff (like the file broswer, or a text area with multi selection options) by youself.
Yes, exactly.
 
The following users thanked this post: DiTBho

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17772
  • Country: fr
Re: Is there anyone still developing applications with OpenMotif?
« Reply #5 on: August 01, 2026, 04:20:50 pm »
If you're looking for a lightweight alternative that can run on X11 (but also supports Wayland, OpenGL, Windows and macOS), and has a decent set of widgets, you can have a  look at FLTK:
https://www.fltk.org/
 
The following users thanked this post: DiTBho

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
Re: Is there anyone still developing applications with OpenMotif?
« Reply #6 on: August 02, 2026, 01:25:10 pm »
have a  look at FLTK

Code: [Select]
*  x11-libs/fltk
      Latest version available: 1.4.4-r1
      Latest version installed: [ Not Installed ]
      Size of files: 8268 KiB
      Homepage:      [url]https://www.fltk.org[/url]
      Description:   Fast Light GUI Toolkit
      License:       FLTK LGPL-2 MIT ZLIB

I don't know it, I've only heard about it as it's has a gentoo ebuild (which a few applications trigger when you emerge them), but it never surfaced nor have I ever written any applications with it.

Umm, it seems written in C++, which is a problem for me  :-//
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
Re: Is there anyone still developing applications with OpenMotif?
« Reply #7 on: August 02, 2026, 01:34:39 pm »
2868126-0

This is how my simple Motif-based text editor looks.
I hacked the file-browser widget callbacks and layout to have multi-filters.
It took me 60 hours to write the entire text editor:
+40 hours writing it using the default file browser
+20 hours figuring out how to implement multi-filters without rewriting the entire widget.
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
Re: Is there anyone still developing applications with OpenMotif?
« Reply #8 on: August 02, 2026, 01:41:14 pm »
  • body -> filter_set(*.c)
  • head -> filter_set(*.h)
  • incl -> filter_set(*.inc)
  • text -> filter_set(*.txt)
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Offline exe

  • Supporter
  • ****
  • Posts: 2993
  • Country: nl
  • self-educated hobbyist
Re: Is there anyone still developing applications with OpenMotif?
« Reply #9 on: August 02, 2026, 01:49:17 pm »
If performance is absolute objective, I'd try generating a library from scratch using AI and only functions that are relevant.
I'd also add round corners widgets...
 

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
Re: Is there anyone still developing applications with OpenMotif?
« Reply #10 on: August 02, 2026, 03:07:10 pm »
If performance is absolute objective, I'd try generating a library from scratch using AI and only functions that are relevant.
I'd also add round corners widgets...

In my opinion, AI only produces GARBAGE, I don't use it.
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
Re: Is there anyone still developing applications with OpenMotif?
« Reply #11 on: August 02, 2026, 03:30:54 pm »
If performance is absolute objective

Furthermore, performance itself isn't the issue: once started, nedit is fast and very responsive, even on a 40 MHz MIPS Xterminal from 1995.

The problem is that it takes a good 20 bloody seconds to start, during which time you can a frozen window because on the server side (a macmini) nedit stupidly sends thousands and thousands of polling requests to the poor Xterminal, on a 10 Mbps connection, just to "probe" what features it supports.

Analyzing what happens in the network link, between server and xterminal, I see an overload .... which is a bad by design  |O

Polling this way is bad, and, worse still, the code is difficult to understand or debug, which is exactly what AI produces: shoddy code, even worse than the original nedit source code!

If the nedit code prior to version 5 didn't even attempt polling, it must be said that everything prior to version 5.5 is written terribly! From "int" and "long" being written as if they were interchangeable (they are, only on 32bit machiens), pointers being cast without any care, .... with the result that if you try to compile on a 64-bit machine, what you get is a segmentation fault at startup.

That's a real pain, honestly, because working with its source is very frustrating.

Xnedit is significantly better written, but ... it's designed for modern things, so it doesn't even try to figure out if there aren't vector fonts on the other end but only bitmap fonts, and this makes everything, again, slow and frustrating, because to support vector fonts WHEN Xrender isn't available, you have to send hundreds of small images, which saturates the network bandwidth and keeps the xterminal CPU too busy.

After spending about 300 hours trying to understand/fix/debug/hack nedit, I got tired of it and wrote my own editor from scratch, without AI, because AI things just push you to "copy solutions like" nedit (I think that's how they ware trained).

In the end, my editor starts instantly, directly addresses fonts, supporting font zooming (buttons "+" and "-", in the above picture, are handled to specific callbacks, which directly map specific fonts), and all the features I need and use in nedit.

Which are very few.

And this proves, once again, that software design is considered "optional", while it should be "first priority, before implementing".
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 17772
  • Country: fr
Re: Is there anyone still developing applications with OpenMotif?
« Reply #12 on: August 02, 2026, 04:59:39 pm »
have a  look at FLTK

Code: [Select]
*  x11-libs/fltk
      Latest version available: 1.4.4-r1
      Latest version installed: [ Not Installed ]
      Size of files: 8268 KiB
      Homepage:      [url]https://www.fltk.org[/url]
      Description:   Fast Light GUI Toolkit
      License:       FLTK LGPL-2 MIT ZLIB

I don't know it, I've only heard about it as it's has a gentoo ebuild (which a few applications trigger when you emerge them), but it never surfaced nor have I ever written any applications with it.

Umm, it seems written in C++, which is a problem for me  :-//

Yes, it's unfortunately C++.
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 8349
  • Country: fi
    • My home page and email address
Re: Is there anyone still developing applications with OpenMotif?
« Reply #13 on: August 02, 2026, 06:00:09 pm »
In the end, my editor starts instantly, directly addresses fonts, supporting font zooming (buttons "+" and "-", in the above picture, are handled to specific callbacks, which directly map specific fonts), and all the features I need and use in nedit.
No color-based syntax highlighting?

It would be nice to reuse e.g. nano syntax highlighting rules (.nanorc, uses regular expressions for matching), as then you'd get tons of formats for "free".
 
The following users thanked this post: DiTBho

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 3742
  • Country: gb
Re: Is there anyone still developing applications with OpenMotif?
« Reply #14 on: August 02, 2026, 07:18:45 pm »
Umm, it seems written in C++, which is a problem for me  :-//

https://github.com/MoAlyousef/cfltk
 
The following users thanked this post: DiTBho

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
Re: Is there anyone still developing applications with OpenMotif?
« Reply #16 on: August 02, 2026, 08:20:12 pm »
No color-based syntax highlighting?

Not yet.

Although things are much simpler with true-color (24-bit) hardware(1), pseudo-color (8-bit) is currently problematic for me, especially with pseudo-color hardware (2).

So, for portability, I don't support colors.

The Motif text area doesn't help here, it does not directly support multiple colors; "as is", without modification, you can set three elements: text color, background color, and text selection color, and since there is no color support, I would have to implement it myself, and that means dealing with the underlying theme layer: easy for TrueColor, but very complicated for psudocolor.

(This is why pseudocoloring was removed from GTK2 in 2012 and GTK3 never supported it.)

(1) e.g. NCD NC400, NC900 -> X terminals from the early 2000s
(2) e.g. Tektronix XP200, XP300, XP400 -> X terminals from the late 1990s
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Online DiTBhoTopic starter

  • Super Contributor
  • ***
  • Posts: 5083
  • Country: gb
Re: Is there anyone still developing applications with OpenMotif?
« Reply #17 on: August 02, 2026, 08:28:50 pm »
I also wrote a text editor in Java v1.1, which runs within the Netscape v4 browser on an NC900 xterminal.

In this case, Java (or rather, Java applet) should handle the colors, and the underlying hardware is "true color," and the operating system (NCDbridge v4, based on VxWorks + X11/R5) should handle the colors...

In theory, you have Java primitives that point to Motif primitives under the JavaVirtualMachine, so it should work ...  in practice, I haven't yet managed to do it cleanly.


Ummm  :-//
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 8349
  • Country: fi
    • My home page and email address
Re: Is there anyone still developing applications with OpenMotif?
« Reply #18 on: August 03, 2026, 07:27:18 am »
The Motif text area doesn't help here, it does not directly support multiple colors; "as is", without modification, you can set three elements: text color, background color, and text selection color, and since there is no color support, I would have to implement it myself, and that means dealing with the underlying theme layer: easy for TrueColor, but very complicated for psudocolor.
Very true; I forgot that.

For an editor, it could be that at that point, dropping even libXt and going down to raw Xlib becomes easier.  That lets you treat the entire window contents similarly to SDL as a single "canvas", redrawing exposed contents using a single graphics context, filling backgrounds outside string areas XFillRectangle()/XFillRectangles() and rendering the text using XDrawImageString16() (which is similar to XDrawText16() except fills the background too).

I've done some raw Xlib and Xcb programming, and after you get the hang of it, for specific applications not requiring different types of widgets, they can be quite nice.  For an editor, I do believe the text rendering area itself is rather straightforward after you decide on the data structures — you may want to use linked lists or skip lists with both the canvas coordinates and size and metadata, and the single-color text hunk, for example —, but menu structures and any other widgets you might want can be more work to implement.  Thus, if you do experiment with this, I recommend you create a test case, a read-only viewer application, which does syntax highlighting, and splits each single-colored text hunk (also splitting at newlines and tabs) into a linked list item, with a skip list to the start of each new line (or perhaps a few lines) so you can find the first visible line faster without traversing through the data.

Note that this "raw" approach (relying only on libX11 or libXcb, whichever you prefer) is very similar to SDL, in that it forgoes "widgets" completely, and uses the displayed window as a canvas you draw onto as needed.  It is jarringly different to widget toolkits, yes; but still, quite usable in its own different way.  It does mean any styling processing you do need to do yourself (as they simply change the graphics context attributes when rendering the relevant text).
 
The following users thanked this post: DiTBho

Offline Canis Dirus Leidy

  • Regular Contributor
  • *
  • Posts: 236
  • Country: ru
Re: Is there anyone still developing applications with OpenMotif?
« Reply #19 on: August 21, 2026, 12:22:50 pm »
As far as I can tell, Motif/OpenMotif/lessTif on Linux is dead.
Not exactly. pcb-rnd still supports lesstif GUI, which (at least in Debian) is actually motif.
 

Offline ejeffrey

  • Super Contributor
  • ***
  • Posts: 4832
  • Country: us
Re: Is there anyone still developing applications with OpenMotif?
« Reply #20 on: August 21, 2026, 05:56:43 pm »
*-Motif was never really popular on Linux due to it's initially commercial nature.  It was very popular for software (including shareware/freeware) targeting commercial UNIX systems since users were likely to already have a motif license, but in the Linux world that was much less common.  It was also used statically linked in commercial binary only software like Netscape and Staroffice for linux, but few people developing for Linux did that.  Lesstif was an option for running existing Motif software, but it wasn't fully compatible and I doubt many people at all developed specifically for lesstif.  By the time OpenMotif came along GTK and QT were already well established, and by the time Motif was actually open sourced it was long dead.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf