On Thu, May 5, 2011 at 10:29 PM, Dave <[email protected]> wrote:

> I compiled v8 with the latest brew recipe on OSX. When I entered the
> shell, and typed a command, var f = "test"; I had my f variable fine.
> But I quickly realized this shell has no command history?
>
> Is there a way to compile v8 to offer a shell with a history?
>

If you've got any experience with libreadline (or edltline, or something
similar), it would be easy to hack it in.

Somewhere around here i've got a readline/editline plugin for v8...

http://code.google.com/p/v8-juice/wiki/PluginReadline

It wouldn't be difficult to strip that code for re-use in a non-v8-juice
envrionment. The relevant code is here:

http://code.google.com/p/v8-juice/source/browse/extra-plugins/src/readline/v8-dll.cc
<http://code.google.com/p/v8-juice/source/browse/extra-plugins/src/readline/v8-dll.cc>
-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to