$E[s | Saves current cursor position | Because the cursor is to be moved to write the top line |
$E[H | Move cursor to top left hand corner of screen | This could also have been written "$E[0;0H", "$E[f", or "$E[0;0f" |
$E[30;41m | Changes background colour to red and text to black | This both clears extraneous characters from the top line of the display and makes the whole line red |
$E[K | Clears from the cursor to the end of the line |
$E[4C | Moves the cursor 4 spaces to the right | Formatting and displaying the text to be displayed in the top line |
Alt ... window | Text to be displayed |
$E[15C | Moves the cursor 15 spaces to the right |
Type ... quit | More text |
$E[37;40m | Changes colour to white text on black | Changes colours back to the default |
$E[u | Moves the cursor back to the saved position | Displays the prompt where it is expected |
$P | Display current drive and directory | Displays the standard prompt |
$G | Display the ">" sign |