Mono-Readline

Description

Mono-Readline is a simple little assembly for .Net (specifically Mono) that provides support for GNU Readline support within Mono applications. Mono-Readline project is based on the code of Martin Baulig in the Mono debugger. I just took it and made it all nice and autoconf/automake enabled. Its pretty straight forward, but here is a short sample program: using Mono.ReadLine; using System; using System.Reflection; public class Test { public static void Main(string[] args) { GnuReadLine readline = new GnuReadLine(); Console.WriteLine("Monkeys!"); string the_prompt = "This is a test: "; string result; while (true) { result = readline.ReadLine(the_prompt); if (result != null) { readline.AddHistory(result); } else { break; } } } } You should be able to compile this with mcs -r:mono.readline test.cs and get a little executable program that keeps going until you hit CTRL-D. There is lots of other fun you could do such as setting up continuation prompts and what not. Basically, most of this is ripped from Martins code in the mono debugger. But wait, odds are youre going to get some funky error saying it cant find the package or something like that. If thats the case, make sure you have MONO_PATH="/usr/local/lib" set before running the program and compiling. For example to compile run: MONO_PATH="/usr/local/lib" mcs -r:mono.readline test.cs And then to run type: MONO_PATH="/usr/local/lib" mono test.exe Im not a real Mono pro, but my hope is that this could possibly help someone else out. Im thinking that in the future I may also include a patch for IronPython. As always, if you have comments or patches, please let me know..

Gnu - Path - Gnu Readline - Monoreadline - For Net - Little - Support - Specifically - Simple - Provides - Assembly - Libraries - Programming

Published By:Patrick Wagstrom

License Type:Freeware

Date Added:25 October, 2010

Version:0.0.1

Price:Free

Downloads:11

Size:297.0 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

IsaMorph is a linux distribution Live CD (based on Morphix) featuring the interactive theorem prover Isabelle.

DateSep 23, 2010

AuthorAchim D. Brucker

Size498.6 MB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities

GNU Gama is a package for adjustment of geodetic free networks (acronym Gama is formed from words geodesy and mapping).

DateSep 15, 2010

AuthorAles Cepek and Jan Pytel

Size614.4 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Internet

ANDREWs Not a DVD Ripping and Encoding Wizard, but an interactive wrapper or a BASH script to simplify the use of OggEnc, MEncoder and mkv/ogmmerge to create, from a DVD, one or more Matroska or Ogg Media files containing an ISO/IEC  MPEG-4 Part

DateAug 27, 2010

AuthorAlessandro Di Rubbo

Size174.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Multimedia

GNU Barcode is a tool to convert text strings to printed bars. GNU barcode supports a variety of standard codes to represent the textual strings and creates postscript output..

DateOct 16, 2010

AuthorAlessandro Rubini

Size327.7 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Business

tarix is a simple indexer for POSIX and GNU tar files. The indexes allow fast extraction of files in the archive, especially on seekable tape devices.

DateSep 30, 2010

AuthorCheetah

Size23.6 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities