Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Andrew Faulds
On 06/08/12 00:37, Ferenc Kovacs wrote: On Mon, Aug 6, 2012 at 1:22 AM, Andrew Faulds > wrote: On 06/08/12 00:21, Ferenc Kovacs wrote: On Mon, Aug 6, 2012 at 12:18 AM, Johannes Schlüter mailto:johan...@schlueters.de>>wrote: On Sat, 2012-08

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Ferenc Kovacs
On Mon, Aug 6, 2012 at 1:22 AM, Andrew Faulds wrote: > On 06/08/12 00:21, Ferenc Kovacs wrote: > >> On Mon, Aug 6, 2012 at 12:18 AM, Johannes Schlüter >> wrote: >> >> On Sat, 2012-08-04 at 21:49 +0200, Ferenc Kovacs wrote: >>> Hi, As most of you know, the current php interactive s

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Johannes Schlüter
On Mon, 2012-08-06 at 00:22 +0100, Andrew Faulds wrote: > > to tell you the truth I'm just throwing around ideas and waiting for > > somebody with better understanding the actual implementation to help me > > out. ;) I wonder which is the actual problem to solve? ;-) Probably a better solution is

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Andrew Faulds
On 06/08/12 00:21, Ferenc Kovacs wrote: On Mon, Aug 6, 2012 at 12:18 AM, Johannes Schlüter wrote: On Sat, 2012-08-04 at 21:49 +0200, Ferenc Kovacs wrote: Hi, As most of you know, the current php interactive shell is pretty much useless without compiling php --with-readline, but for the most u

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Ferenc Kovacs
On Mon, Aug 6, 2012 at 12:18 AM, Johannes Schlüter wrote: > On Sat, 2012-08-04 at 21:49 +0200, Ferenc Kovacs wrote: > > Hi, > > > > As most of you know, the current php interactive shell is pretty much > > useless without compiling php --with-readline, but for the most users > this > > the first i

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Johannes Schlüter
On Sat, 2012-08-04 at 21:49 +0200, Ferenc Kovacs wrote: > Hi, > > As most of you know, the current php interactive shell is pretty much > useless without compiling php --with-readline, but for the most users this > the first impression what they experience (eg. using the php interactive > shell wi

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Andrew Faulds
On 05/08/12 22:03, Ivan Enderlin @ Hoa wrote: On 05/08/12 20:56, Andrew Faulds wrote: On 05/08/12 19:44, Ivan Enderlin @ Hoa wrote: On 05/08/12 20:36, Andrew Faulds wrote: On 05/08/12 19:33, Ivan Enderlin @ Hoa wrote: On 05/08/12 12:39, Andrew Faulds wrote: Great, but couldn't you type some

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Ivan Enderlin @ Hoa
On 05/08/12 20:56, Andrew Faulds wrote: On 05/08/12 19:44, Ivan Enderlin @ Hoa wrote: On 05/08/12 20:36, Andrew Faulds wrote: On 05/08/12 19:33, Ivan Enderlin @ Hoa wrote: On 05/08/12 12:39, Andrew Faulds wrote: Great, but couldn't you type some command which would screw it up, by accident?

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Andrew Faulds
On 05/08/12 19:44, Ivan Enderlin @ Hoa wrote: On 05/08/12 20:36, Andrew Faulds wrote: On 05/08/12 19:33, Ivan Enderlin @ Hoa wrote: On 05/08/12 12:39, Andrew Faulds wrote: Great, but couldn't you type some command which would screw it up, by accident? What do you mean? Say your implementa

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Ivan Enderlin @ Hoa
On 05/08/12 20:36, Andrew Faulds wrote: On 05/08/12 19:33, Ivan Enderlin @ Hoa wrote: On 05/08/12 12:39, Andrew Faulds wrote: Great, but couldn't you type some command which would screw it up, by accident? What do you mean? Say your implementation uses some global variable called $history.

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Andrew Faulds
On 05/08/12 19:33, Ivan Enderlin @ Hoa wrote: On 05/08/12 12:39, Andrew Faulds wrote: Great, but couldn't you type some command which would screw it up, by accident? What do you mean? Say your implementation uses some global variable called $history. Now say I type "$history = [];" at the i

Re: [PHP-DEV] php interactive shell without readline

2012-08-05 Thread Ivan Enderlin @ Hoa
Hello, This project is interesting but it is also possible to do it only with PHP. As a proof of concept, I would like to share some links with you. First one: http://hg.hoa-project.net/Central/file/tip/Library/Console/Readline/Readline.php, which is highly hackable: we can add mappings (esc,

Re: [PHP-DEV] php interactive shell without readline

2012-08-04 Thread Andrew Faulds
Well, I saw it, and I say for a ~600 line library, why not? Heck, we could maybe reimplement the readline extension with it. On 04/08/12 20:49, Ferenc Kovacs wrote: Hi, As most of you know, the current php interactive shell is pretty much useless without compiling php --with-readline, but for

[PHP-DEV] php interactive shell without readline

2012-08-04 Thread Ferenc Kovacs
Hi, As most of you know, the current php interactive shell is pretty much useless without compiling php --with-readline, but for the most users this the first impression what they experience (eg. using the php interactive shell without readline support). There is an alternative readline replacemen