ARG!
How does one load a file into sbcl from the command line; when I load everything from emacs/slime it's find but with the (load "file") it does
not.
This is the file. How do I I load these sexps into sbcl short of dumping
an image? It's driving me crazy... No loading it in as a file with
`load' does not work. I must load it by hand at the terminal. I am
missing something stupid or is the repl in a different thread or
something?
(require :sb-posix)
(load "packages")
(load-shared-object "./tty_modes.so" )
(load "local")
(load "termdata")
(load "terminfo")
(terminfo:set-termtype "linux3.0")
(load "screen")
(screen:tty-device-open "/dev/tty")
(in-package :screen)
(load "display")
(load "motion")
;;(tty-device-termios-set :packet)
(dprompt)
I do not know how to use defsystem or asdf; that never seems to work for
me. I have the c file, so I just use makefiles. I also do not have quick lisp. Does this make a difference?
ARG!
How does one load a file into sbcl from the command line; when I load everything from emacs/slime it's find but with the (load "file") it does
not.
This is the file. How do I I load these sexps into sbcl short of dumping
an image? It's driving me crazy... No loading it in as a file with
`load' does not work. I must load it by hand at the terminal. I am
missing something stupid or is the repl in a different thread or
something?
(require :sb-posix)
(load "packages")
(load-shared-object "./tty_modes.so" )
(load "local")
(load "termdata")
(load "terminfo")
(terminfo:set-termtype "linux3.0")
(load "screen")
(screen:tty-device-open "/dev/tty")
(in-package :screen)
(load "display")
(load "motion")
;;(tty-device-termios-set :packet)
(dprompt)
I do not know how to use defsystem or asdf; that never seems to work for
me. I have the c file, so I just use makefiles. I also do not have quick lisp. Does this make a difference?
(print "foo file loaded")$ cat >/tmp/bar.lisp <<END
END
(print "bar file loaded")$ cat >/tmp/baz.lisp <<END
END
(load "/tmp/foo.lisp")$ sbcl
(load "/tmp/bar.lisp")
END
steve <st...@loft.i-did-not-set--mail-host-address--so-tickle-me>
writes:
ARG!
How does one load a file into sbcl from the command line; when I load everything from emacs/slime it's find but with the (load "file") it does not.
This is the file. How do I I load these sexps into sbcl short of dumping
an image? It's driving me crazy... No loading it in as a file with
`load' does not work. I must load it by hand at the terminal. I am
missing something stupid or is the repl in a different thread or
something?
(require :sb-posix)
(load "packages")
(load-shared-object "./tty_modes.so" )
(load "local")
(load "termdata")
(load "terminfo")
(terminfo:set-termtype "linux3.0")The `in-package' does not work. I am I in the right thread? Should I try
(load "screen")
(screen:tty-device-open "/dev/tty")
(in-package :screen)
and put SBCL into interp mode. It's like it won't stop...
Are these function calls inside the file you are loading?(load "display")
(load "motion")
;;(tty-device-termios-set :packet)
(dprompt)Even (screen::dpromp)
Driving me nuts. All this code works and I get stuck here - ahh nothing new.
I do not know how to use defsystem or asdf; that never seems to work forMaybe so? Does defsystem do c files with a c compiler?
me. I have the c file, so I just use makefiles. I also do not have quick lisp. Does this make a difference?
Any info/tutorials on the defsystem would be helpful...The DEFSYSTEM code should be commented. In any case there is documentation available.
ARG!
How does one load a file into sbcl from the command line; when I load everything from emacs/slime it's find but with the (load "file") it does
not.
This is the file. How do I I load these sexps into sbcl short of dumping
an image? It's driving me crazy... No loading it in as a file with
`load' does not work. I must load it by hand at the terminal. I am
missing something stupid or is the repl in a different thread or
something?
(require :sb-posix)
(load "packages")
(load-shared-object "./tty_modes.so" )
(load "local")
(load "termdata")
(load "terminfo")
(terminfo:set-termtype "linux3.0")
(load "screen")
(screen:tty-device-open "/dev/tty")
(in-package :screen)
(load "display")
(load "motion")
;;(tty-device-termios-set :packet)
(dprompt)
What goes wrong when you try this?
One thing that will happen, however, is that LOAD will see to it that certain things in a loaded file are scoped to that file.
In particular, *PACKAGE* is bound whie loading the file, so if you try to
use IN-PACKAGE it will only apply during the file that is being loaded but
the package will then revert to its value from before calling LOAD.
It seems to work when I do the following simple test from my command line with sbcl:
$ cat >/tmp/foo.lisp <<END
(print "foo file loaded")$ cat >/tmp/bar.lisp <<END
END
(print "bar file loaded")$ cat >/tmp/baz.lisp <<END
END
(load "/tmp/foo.lisp")$ sbcl
(load "/tmp/bar.lisp")
END
This is SBCL 2.1.1.debian, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (load "/tmp/baz")
"foo file loaded"
"bar file loaded"
T
*
(require :sb-posix)
(load "packages")
(load-shared-object "./tty_modes.so" )
(load "local")
(load "termdata")
(load "terminfo")
What type of files are these?
Lisp source code (with extension .lisp?)
Compiled code? This can make a difference.
steve <steve@loft.i-did-not-set--mail-host-address--so-tickle-me>
writes:
ARG!
How does one load a file into sbcl from the command line; when I load
everything from emacs/slime it's find but with the (load "file") it does
not.
This is the file. How do I I load these sexps into sbcl short of dumping
an image? It's driving me crazy... No loading it in as a file with
`load' does not work. I must load it by hand at the terminal. I am
missing something stupid or is the repl in a different thread or
something?
(require :sb-posix)
(load "packages")
(load-shared-object "./tty_modes.so" )
(load "local")
(load "termdata")
(load "terminfo")
(terminfo:set-termtype "linux3.0")
(load "screen")
(screen:tty-device-open "/dev/tty")
(in-package :screen)
The `in-package' does not work. I am I in the right thread? Should I try
and put SBCL into interp mode. It's like it won't stop...
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 286 |
Nodes: | 16 (2 / 14) |
Uptime: | 83:35:06 |
Calls: | 6,495 |
Calls today: | 6 |
Files: | 12,096 |
Messages: | 5,276,833 |