SDL branch for maiko

22 views
Skip to first unread message

Nick Briggs

unread,
Nov 21, 2022, 9:11:16 PM11/21/22
to Lisp Core
I’m not ready to make a PR for this yet, but if you want to experiment with SDL rather X11 as the display subsystem, then checkout the “sdl” branch of maiko.

On a  Ubuntu box you’ll need to install the libsdl2-dev package using your favorite package management tool.
On a Mac, you’ll need to install the SDL2 framework, which you can get as a .dmg disk image at https://github.com/libsdl-org/SDL/releases — install by dragging the SDL2.framework to a Finder open on /Library/Frameworks/.  I have tested with version 2.26.0, which was released about an hour ago.

To build, using makeright:

cd maiko/bin
./makeright sdl cleanup
./makeright sdl

and you’ll find the lde and ldesdl executables in the same place that it would previously build the lde and ldex.  Make sure they’re on your search path and then you can use “run-medley” to get things going.

Things to note:

The “-pixelscale 2” option will get you a pixel-doubled display (useful on on a HiDPI display)
The keyboard input follows the OS keyboard selection, unlike X11 which uses the physical key position and corresponds to a US labelled keyboard.
I don’t have the makefile fragments for SDL on Solaris, there is still work to be done there.
If you want to enable the NetHub code as well, add -DMAIKO_ENABLE_NETHUB to the options in the makefile fragment for your OS/CPU/display subsystem (eitther SDL or X11)


If there are problems, drop me a note.

Ron Kaplan

unread,
Nov 21, 2022, 10:12:29 PM11/21/22
to Nick Briggs, Lisp Core
seems to work.

As you noted, no scroll bars, so the Medley screen can be a little bigger.

--
You received this message because you are subscribed to the Google Groups "Medley Interlisp core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispcore+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lispcore/F4C48C9D-914C-452F-821B-47983FAC87F0%40gmail.com.

Ron Kaplan

unread,
Nov 22, 2022, 2:53:59 AM11/22/22
to Nick Briggs, Lisp Core
After a little playing around, I see that the Meta shift doesn’t  work.  My INIT does (METASHIFT T), is that not correct?  Command key on a mac.

Another impression:  I think screen updates may be a little slower.

Ron Kaplan

unread,
Nov 22, 2022, 3:18:28 AM11/22/22
to Nick Briggs, Lisp Core
Note also that when I depress the command key, a message “No mapping for key Left Command” appears in the terminal window.

So I decided to switch back to Maiko master, expecting that I would be back in the X world.  But run-medley still finds the sdl version.  Do I have to do makeright x to get it back, a switch in run-medley, or something else?

Nick Briggs

unread,
Nov 22, 2022, 11:40:16 AM11/22/22
to Ron Kaplan, Lisp Core
To switch back, the least likely to get confused is to do a “./makeright x cleanup” and “./makeright x” — forcing a rebuild from scratch of everything.

Ron Kaplan

unread,
Nov 24, 2022, 3:22:56 AM11/24/22
to Nick Briggs, Lisp Core
There may be something else I need to do, in order to do a loadup.  After doing  these commands, I can run existing makesys/sysouts with X, but when I try a loadup-all, I get

sysout tmp/init.dlinit
ldeinit not found in /Users/kaplan/Local/medley3.5/maiko//darwin.aarch64
osversion = darwin
machinetype = aarch64

I presume there is a separate target for ldeinit—now forgotten.

Paolo Amoroso

unread,
Nov 9, 2023, 3:13:08 AM11/9/23
to Medley Interlisp core
On Tuesday, November 22, 2022 at 3:11:16 AM UTC+1 nicholas...@gmail.com wrote:
If you want to enable the NetHub code as well, add -DMAIKO_ENABLE_NETHUB to the options in the makefile fragment for your OS/CPU/display subsystem (eitther SDL or X11)

What does the NetHub code do?

Paolo Amoroso

unread,
Nov 9, 2023, 4:33:38 AM11/9/23
to Medley Interlisp core
On Thu, Nov 9, 2023 at 9:13 AM Paolo Amoroso <paolo....@gmail.com> wrote:
What does the NetHub code do?

Reply all
Reply to author
Forward
0 new messages