Skip to content

Building Lem with both SDL2 and ncurses support simultaneously #1327

@frejanordsiek

Description

@frejanordsiek

At the present time, the build files either build Lem with SDL2 support (make sdl2) or ncurses support (make ncurses), with no option for building Lem with both.

I tried making my own scripts/build-sdl2-ncurses.lisp as

(ql:quickload :lem-sdl2)
(ql:quickload :lem-ncurses)

(lem:init-at-build-time)

(sb-ext:save-lisp-and-die "lem"
                          :toplevel #'lem:main
                          :executable t)

and added a new make rule to the Makefile

sdl2-ncurses:
	qlot install
	$(LISP) --noinform --no-sysinit --no-userinit --load .qlot/setup.lisp --load scripts/build-sdl2-ncurses.lisp

Doing make sdl2-ncurses builds, but when I run it I only get the terminal interface.

Is there some undocumented command line switch to control which interface to use?

If not, I suggest adding a command line switch and some sensible default, just like GNU Emacs' -nw argument and defaulting to GUI (could of course make different choices than they did).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions