iTerm2, and presumably other terminal emulators, have a feature called "Shell Integration" to mark shell prompts (see https://iterm2.com/features.html). I assume this is handled via escape sequences that are sent to the terminal. It would be nice if the Julia REPL supported these. There is a shell script that implements these for Bash; this script could be reverse-engineered to add the same features to the Julia REPL.
iTerm2, and presumably other terminal emulators, have a feature called "Shell Integration" to mark shell prompts (see https://iterm2.com/features.html). I assume this is handled via escape sequences that are sent to the terminal. It would be nice if the Julia REPL supported these. There is a shell script that implements these for Bash; this script could be reverse-engineered to add the same features to the Julia REPL.