Node.\+js (v0.\+8 and v0.\+10) had some bugs and issues with the default \href{http://nodejs.org/api/readline.html}{\tt Readline} module.

This module include fixes seen in later version (0.\+11-\/0.\+12 and iojs) and ease some undesirable behavior one could see using the readline to create interatives prompts. This means {\ttfamily readline2} change some behaviors and as so is {\bfseries not} meant to be an exact drop-\/in replacement.

This project is extracted from the core of \href{https://github.com/SBoudrias/Inquirer.js}{\tt Inquirer.\+js interactive prompt interface} to be available as a standalone module.

\subsection*{Documentation }

{\bfseries Installation}\+: {\ttfamily npm install -\/-\/save readline2}

\subsubsection*{readline2.\+create\+Interface(options); -\/$>$ \{Interface\}}

Present the same A\+PI as \href{http://nodejs.org/api/readline.html}{\tt Node.\+js {\ttfamily readline.\+create\+Interface()}}

\paragraph*{Improvements}


\begin{DoxyItemize}
\item Default {\ttfamily options.\+input} as {\ttfamily process.\+stdin}
\item Default {\ttfamily options.\+output} as {\ttfamily process.\+stdout}
\item {\ttfamily interface.\+stdout} is wrapped in a \href{https://github.com/isaacs/mute-stream}{\tt Mute\+Stream}
\item Prevent {\ttfamily up} and {\ttfamily down} keys from moving through history inside the readline
\item Fix cursor position after a line refresh when the {\ttfamily Interface} prompt contains A\+N\+SI colors
\item Correctly return the cursor position when faced with implicit line returns
\end{DoxyItemize}

\subsection*{License }

Copyright (c) 2012 <NAME> (twitter\+: \href{https://twitter.com/Vaxilart}{\tt }) Licensed under the M\+IT license. 