You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First and foremost, I would like to express my gratitude for providing such excellent software.
I am using Lem (main/HEAD) in ncurses mode and would like to know the best way to disable background rendering so that the terminal's background remains visible. First, I tried the following settings in my ~/.config/lem/init.lisp, but they had no effect.
(if (typep (lem-core:implementation) 'lem-sdl2/sdl2:sdl2)
;; transparent background with sdl2
(sdl2-ffi.functions:sdl-set-window-opacity
(lem-sdl2/display:display-window (lem-sdl2/display:current-display)) 0.8f0)
;; enable default color mode (-1) with ncurses
(charms/ll:use-default-colors))
However, when I run M-x lisp-eval-string (charms/ll:use-default-colors), the display appears as follows. This is not exactly what I expected, but I suspect that the settings specified in init.lisp are being overridden before they take effect at startup.
Next, I tried adding the following code to init.lisp.
This seems to be caused by the value of color becoming nil inside compute-evaluated-background-color, which is then passed to color-red, color-green, and color-blue.
Replacing this part with when-let avoided the error, but the evaluated region's background is now filled with an unintended color.
I'm unfamiliar with nurses, so I might be doing something wrong. Could you advise me on the best settings to prevent background filling in the area where I am editing code?
The text was updated successfully, but these errors were encountered:
emacs-dark/emacs-light has a flaw in setting the base16 value, so there is a problem with code that assumes base16 and causes a runtime error.
Therefore, we used lem-default instead.
First and foremost, I would like to express my gratitude for providing such excellent software.
I am using Lem (main/HEAD) in ncurses mode and would like to know the best way to disable background rendering so that the terminal's background remains visible. First, I tried the following settings in my
~/.config/lem/init.lisp
, but they had no effect.However, when I run
M-x lisp-eval-string (charms/ll:use-default-colors)
, the display appears as follows. This is not exactly what I expected, but I suspect that the settings specified ininit.lisp
are being overridden before they take effect at startup.Next, I tried adding the following code to
init.lisp
.This resulted in a display that is almost as expected, but...
Running commands like
C-x C-e lisp-eval-at-point
results in the following error.This seems to be caused by the value of
color
becomingnil
insidecompute-evaluated-background-color
, which is then passed tocolor-red
,color-green
, andcolor-blue
.lem/extensions/lisp-mode/ext/eval.lisp
Lines 81 to 91 in 791397f
Replacing this part with
when-let
avoided the error, but the evaluated region's background is now filled with an unintended color.I'm unfamiliar with nurses, so I might be doing something wrong. Could you advise me on the best settings to prevent background filling in the area where I am editing code?
The text was updated successfully, but these errors were encountered: