Comment 10 for bug 504058

Revision history for this message
Kevin Godby (godbyk) wrote :

I've added some formatting code to handle terminal input/output and inline code.

The terminal environment can be used for code blocks:

  \begin{terminal}
    \prompt \userinput{sudo apt-get install banshee}
    Password: \userinput{s3krE7}
    Installing banshee...
    Banshee installed!
  \end{terminal}

For inline code, use the \code command:

  Type \code{\userinput{banshee}} to start the Banshee music player.

The \prompt command prints a bash user prompt ($), \rootprompt prints a bash root prompt (#), and \userinput will set special formatting for the user's input -- currently set to red for easy editing and debugging.

Let me know if there are other requirements.