I am struggling to understand how readline history is supposed to work. Is it? Neither the bash-style up-arrow nor C-P (scavenged from some python-readline docs; most of the readline specific key bindings quoted there like C-A or C-E work though ...) works to scroll back through the line buffer. Did you set any other default key binding? Mind you, trying to hack it, I just had a very cursory glance at the PHP readline wrapper ... it doesn't seem to provide a get_history_item() or similar function?! Maybe I'm missing sth. Regards, Frank
on 15.12.2007 18:51
on 08.04.2008 13:38
Frank wrote: > I am struggling to understand how readline history is supposed to work. > Is it? Neither the bash-style up-arrow nor C-P (scavenged from some > python-readline docs; most of the readline specific key bindings quoted > there like C-A or C-E work though ...) works to scroll back through the > line buffer. Did you set any other default key binding? Are you sure to have php compiled with the readline module? Without readline-module the php-shell will work just fine - but without history. If php is compiled with readline-module (and module is activated) you can use bash-style up- and down-arrow. Regards, Otaku - http://semi-nerd.de

