☰ Click for Table of Contents
BookWiki Documentation
Copyright 2026
Rance D. Necaise

I/O Blocks Module

The ioblocks module defines several plugins that implement verbatim type environments for creating text blocks associated with user input and output in computer programs. These blocks, which allow for ease of styling, are rendered using the <pre>...</pre> html tags.

User Input

ioblocks module
\begin{userinput}[width=# style=names]
  ...
\end{userinput}
Formats input entered by the user that is read from the keyboard or from a file.
Keys:
width

The width of the block. The default is 100%.

style

The name of one or more block specific css class names for modifying the default style of the block.

Plugin:  UserInputBlock
Example
source
  1. \begin{userinput}
  2. userinput - A simple text block for displaying user
  3. "input" such as that read from the keyboard or from a file.
  4. \end{userinput}
userinput - A simple text block for displaying user 
"input" such as that read from the keyboard or from a file.
results

Output

ioblocks module
\begin{output}[width=# style=names]
  ...
\end{output}
Creates a block for displaying output within a gray box.
Keys:
width

The width of the block. The default is 100%.

style

The name of one or more block specific css class names for modifying the default style of the block.

Plugin:  OutputBlock
Example
source
  1. \begin{output}
  2. output - A text block for displaying "output"
  3. within a gray box.
  4. \end{output}
output - A text block for displaying "output" 
within a gray box.
results

Terminal Output

ioblocks module
\begin{terminal}[width=# style=names]
  ...
\end{terminal}
Similar to output, but the box created here is styled to resemble a computer terminal.
Keys:
width

The width of the block. The default is 100%.

style

The name of one or more block specific css class names for modifying the default style of the block.

Plugin:  TerminalBlock
Example
source
  1. \begin{terminal}
  2. terminal - A text block for displaying "output"
  3. within a "computer terminal".
  4. \end{terminal}
terminal - A text block for displaying "output" 
within a "computer terminal".
results

Command Line Input

ioblocks module
\begin{cmdline}[width=# style=names]
  ...
\end{cmdline}
Formats commands or text entered at the command line
Keys:
width

The width of the block. The default is 100%.

style

The name of one or more block specific css class names for modifying the default style of the block.

Plugin:  CmdLineBlock
Example
source
  1. \begin{cmdline}
  2. g++ -o binaryname driver.o modA.o modB.o
  3. \end{cmdline}
g++ -o binaryname driver.o modA.o modB.o
results
  August 17, 2026 at 04:04 PM