Is IronPython.Runtime.Operations.Ops.ReadLineFromSrc what you're looking for?  
This allows you to read a line of input from std-in.

I'm not familiar w/ CPython's internal interfaces so I'm not sure if that's 
right or not...  The other option is that this is the functionality that lives 
in the console, and you want IConsole.ReadLine.

Currently these two are rather disconnected.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jörgen Stenarson
Sent: Wednesday, June 28, 2006 11:44 AM
To: Discussion of IronPython
Subject: [IronPython] ironpython alternative to PyOS_ReadlineFunctionPointer

Hi,

I'm working on a python based implementation of readline (pyreadline available 
from http://projects.scipy.org/ipython/ipython/wiki/PyReadline/Intro). I'm 
experimenting with adding support for ironpython, I have been successful in 
porting some of the ctypes based routines used for keyboard event processing to 
ironpython using System.Console. It has been quite painless so far.

But to take this further I need to know the ironpython equivalent to 
PyOS_ReadlineFunctionPointer in cpython and how to use it. Is this 
functionality exposed and if not do you plan to expose it?

Best regards,
Jörgen Stenarson

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to