Lisp HUG Maillist Archive

How to identify console image

I want to have code in my .lispwork init file that does different
things depending on whether the image starting up is a console image
or not.  Is there a way to find out whether you're in a console image
except for checking the name of the executable?

Thanks,
Edi.


Re: How to identify console image

Edi,

(load-all-patches)
(push :console-lispworks *features*)
(save-image "lwconsole" :restart-function 'mp:initialize-multiprocessing
                         :environment nil)
(quit)

CL-USER 1 > *features*
(:ASDF :CONSOLE-LISPWORKS :COMMON-LISPWORKS :LW-EDITOR ...)

     Joel

On Aug 10, 2005, at 2:02 AM, Edi Weitz wrote:

> I want to have code in my .lispwork init file that does different
> things depending on whether the image starting up is a console image
> or not.  Is there a way to find out whether you're in a console image
> except for checking the name of the executable?
>
> Thanks,
> Edi.
>
>

--
http://wagerlabs.com/uptick




Re: How to identify console image

On Wed, 10 Aug 2005 10:17:26 +0200, Joel Reymont <joelr1@gmail.com> wrote:

> (load-all-patches)
> (push :console-lispworks *features*)
> (save-image "lwconsole" :restart-function 'mp:initialize-multiprocessing
>                          :environment nil)
> (quit)
>
> CL-USER 1 > *features*
> (:ASDF :CONSOLE-LISPWORKS :COMMON-LISPWORKS :LW-EDITOR ...)

Thanks, that'll of course work.  I was looking for a generic way that
works with all console images, though.

Cheers,
Edi.


Re: How to identify console image

Edi Weitz <edi@agharta.de> writes:

> On Wed, 10 Aug 2005 10:17:26 +0200, Joel Reymont <joelr1@gmail.com> wrote:
> 
> > (load-all-patches)
> > (push :console-lispworks *features*)
> > (save-image "lwconsole" :restart-function 'mp:initialize-multiprocessing
> >                          :environment nil)
> > (quit)
> >
> > CL-USER 1 > *features*
> > (:ASDF :CONSOLE-LISPWORKS :COMMON-LISPWORKS :LW-EDITOR ...)
> 
> Thanks, that'll of course work.  I was looking for a generic way that
> works with all console images, though.

I'm not too sure how correct this is but SYSTEM::*AUTO-START-ENVIRONMENT-P*
seems to be set to nil in console images.

Regards,
 Sean.
 
-- 
"My doctor says that I have a malformed public-duty gland and a
 natural  deficiency in moral fibre," he muttered to himself, "and
 that I am therefore excused from saving Universes."
 - Life, the Universe, and Everything     Douglas Adams.

Confidentiality Notice: http://ucs.co.za/conf.html


Re: How to identify console image

On 10 Aug 2005 11:17:40 +0200, Sean Ross <sdr@jhb.ucs.co.za> wrote:

> I'm not too sure how correct this is but
> SYSTEM::*AUTO-START-ENVIRONMENT-P* seems to be set to nil in console
> images.

That seems to be what I was looking for.  Thanks!


Updated at: 2020-12-10 08:51 UTC