On 2012-04-21, at 18:51, Daniel Lyons wrote:

> 
> On Apr 21, 2012, at 5:34 AM, Camillo Bruni wrote:
> 
>> runnnig it from real stdin / stdout won't help you?
>> Cause that's what I did with my readline implementation:
>> 
>> - open an image from the command-line
>> - run a readline instance in the image using FileStream stdout as output
>> - test my implementation with the image and the real terminal side-by-side
> 
> I suppose I could, but I was hoping to have it working inside Smalltalk. Also 
> for didactic purposes. I intend to write something to visualize the registers 
> in the CPU next. Is it the fixed-width font that's making it difficult to do 
> from a UI inside Pharo? I could certainly compromise on that.

well you could also plug my readline implementation to any text morph and
set the a monospace font as default for code :) (that's what I have anyway).

Manually creating a text morph an changing it's font to some fixed-width
version is not that hard. And then depending on your needs you would simply
edit / change the underlying text (in this case with even my readline 
implementation)...

Check my implementation at: http://ss3.gemstone.com/ss/readline.html

Reply via email to