From: Martin DeMello Date: 2005-04-11T01:29:38+09:00 Subject: [ANN] fxirb 0.2.0 - Multiline Edit (and request for help) available at http://rubyforge.org/projects/fxirb/ Finally got around to my 0.2 milestone, proper multiline editing. You can now: 1. Paste in a multiline block of code and edit it immediately using all four arrow keys 2. Enter a multiline block line by line, and have it occupy a single multiline slot in the history once it's done 3. Edit a multiline history item using all four arrow keys Associated behaviour change: Up/Down arrows now only scroll history if not in multiline mode PgUp/PgDn always scroll history The other major change is the ability to pass in an on_exit block, which is instance_evaled by the FxIRB widget when its internal IRB thread exits. Usage: fxirb = FXIrb.init(window, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y|TEXT_WORDWRAP|TEXT_SHOWACTIVE) fxirb.on_exit {exit} This should make it possible to embed fxirb in another application, and not have the whole application exit when IRB exits. The target for the 0.3 and 0.4 milestones are a menu-and-button frame in standalone mode, and an implementation of 'gets' (I really would like some help with the latter - I don't know enough about IRB internals or FOX to see what I need to do. To see the problem, just start up FXIrb and type in "a = gets") martin Changelog: 0.2.0 - Martin DeMello - 2005/04/10 * Multiline edit * Settable on_exit proc 0.1.4 - Martin DeMello - 2005/02/19 * Minor code cleanup * Dedentation on ], } or end * Ctrl-D, Ctrl-U and Ctrl-K keys bound 0.1.3 - Martin DeMello - 2004/03/21 * Added ability to select text, and return the cursor to the proper position * Changed font to Lucida Console * Added indentation 0.1.2 - Frailis - 2003/01/10 * Fixed commands history 0.1.1 - Frailis - 2003/01/07 * Removed IOEmulate module because it redirects every "p" operation in a program which embeds FXIrb 0.1.0 - Frailis - 2003/01/02 * Tested on ruby 1.6.7 and 1.7.3 * Added commands history and terminal behaviour