Skip to content
vindarel edited this page Jun 2, 2023 · 24 revisions

Lem 2.0 ships a binary release for Windows. See: https://github.com/lem-project/lem/releases/tag/v2.0.0

lem-pdcurses

pdcurses

  1. Installation

    1. Setup MSYS2
      https://www.msys2.org/

    2. Install MinGW-w64 toolchain
      Open 'MSYS2 MSYS Shell' from program menu and run the following commands.

      pacman -S base-devel
      pacman -S mingw-w64-x86_64-toolchain
      
    3. Install winpty

      pacman -S winpty
      

      NOTE: There is an input problem. Please check
      https://github.com/cxxxr/lem/issues/453 .

      NOTE: On Windows 10, winpty crashes if resizing screen so that the cursor is hidden.
      Please check https://github.com/cxxxr/lem/issues/532 .

    4. Install PDCurses
      Open 'MSYS2 MinGW 64-bit Shell' from program menu and run the following commands.

      pacman -S mingw64/mingw-w64-x86_64-pdcurses
      cp -i /mingw64/include/pdcurses.h /mingw64/include/ncurses.h
      

      NOTE: There is a package version problem. Please check
      https://github.com/cxxxr/lem/issues/454 .

      NOTE: On Windows 10, the display corruption of Japanese characters occurs.
      Please check https://github.com/cxxxr/lem/issues/531 .

    5. Install Roswell
      https://github.com/roswell/roswell/wiki/Installation#windows
      Add the extracted directory path to the environment variable PATH.

      NOTE: If 'ros' command is not found in 'MSYS2 MinGW 64-bit Shell',
      please check the environment variable MSYS2_PATH_TYPE . See
      https://sourceforge.net/p/msys2/discussion/general/thread/dbe17030/ .

    6. Setup Roswell

      ros setup
      
    7. Install Lem

      ros install cxxxr/lem
      
    8. Install Utility
      ros install cxxxr/async-process
      NOTE: Manual installation of async-process is no longer required.
      If the old version of async-process exists, please delete it.
      (Delete async-process directory in %USERPROFILE%\.roswell\local-projects\cxxxr.)
      (You might also need to run ros update quicklisp .)

  2. Usage

    • Open 'MSYS2 MinGW 64-bit Shell' from program menu and run the following command.

      winpty ros -Q -s lem-pdcurses -L sbcl-bin -- $USERPROFILE/.roswell/bin/lem-ncurses
      

      The screen of Lem editor will be displayed and you can use it like emacs without any settings.

      (You can also set the alias as follows in such as .bashrc

      alias lem='winpty ros -Q -s lem-pdcurses -L sbcl-bin -- $USERPROFILE/.roswell/bin/lem-ncurses'
      

      Then, you can run Lem by only 'lem' command.)

  3. Update

    • Update Lem
      ros update lem
      
  4. Other information

lem-capi

  • LispWorks licence is required.

lem-opengl

(2019-6-5)(2019-12-9)(2020-4-6)(2020-9-6)(2020-10-12)
(2020-10-18)(2020-11-3)