[IronPython] ironpython alternative to PyOS_ReadlineFunctionPointer

Jörgen Stenarson jorgen.stenarson at bostream.nu
Wed Jun 28 14:21:11 PDT 2006


Thanks for the response, I will have to investigate this further.

Just to clarify, what I want to do is replace the function that is 
called by the ironpython interpreter to read a line of text from the user.

/Jörgen

Dino Viehland skrev:
> 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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] 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
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> 



More information about the users mailing list