+
+ ~
+ $
+ {displayedPrompt}
+ {phase === 'prompt' && showCursor && (
+
+ )}
+
+
+ {displayedLine1 && (
+
+ {displayedLine1}
+ {phase === 'typing-line1' && showCursor && (
+
+ )}
+
+ )}
+
+ {displayedLine2 && (
+
+ {displayedLine2}
+ {phase === 'typing-line2' && showCursor && (
+
+ )}
+
+ )}
+
+ {(phase === 'prompt2' || phase === 'typing-ascii' || displayedPrompt2 || displayedAscii.length > 0) && (
+
+ ~
+ $
+ {displayedPrompt2}
+ {phase === 'prompt2' && showCursor && (
+
+ )}
+
+ )}
+
+ {displayedAscii.length > 0 && (
+
+ {displayedAscii.map((line, i) => (
+
{line}
+ ))}
+ {phase === 'typing-ascii' && showCursor && (
+
+ )}
+
+ )}
+
+ {phase === 'done' && (
+
+ ~
+ $
+
+
+ )}
+