A running Screen session often needs a one-off command without editing a screenrc file or sending a command from another shell. The colon prompt opens Screen's command reader inside the attached display, so session commands can list windows, change the current title, or test a setting against the session already on screen.
The default prompt key sequence is C-a :. The prompt accepts Screen command lines, not shell commands, so type command names such as windows or title admin without a leading shell prompt. The same command language is used by screenrc files and screen -X, but the interactive prompt runs from the selected window or display unless the command itself targets another object.
The prompt is modal and appears on Screen's message line. Use a read-only command such as windows first, then change one visible value such as the current window title when checking syntax in a shared or long-running session.
Related: How to rename a window in Screen
Related: How to reload the Screen config
$ screen -r work
Use the session name from screen -ls when more than one session exists.
Related: How to attach to a Screen session
C-a :
C-a is the default command character. Use the configured prefix when the session changed it. The colon prompt is Screen's command reader, so do not enter a shell $ prompt there.
Related: How to change the Screen prefix key
windows 0* sh
Press Enter after the command. The windows output marks the current window with *.
C-a :
title admin
The title command changes Screen's label for the current window. It does not rename the shell process running inside that window.
Related: How to rename a window in Screen
windows 0* admin
The updated title in the windows output confirms that Screen accepted the command typed at the colon prompt for the current window.
C-a m
The default lastmsg binding replays the most recent Screen message line.