in static/js/com/cookie-banner.js [730:756]
function updatePromptDisplay() {
var line = promptText;
var html = '';
if (column > 0 && line == '') {
// When we have an empty line just display a cursor.
html = cursor;
} else if (column == promptText.length) {
// We're at the end of the line, so we need to display
// the text *and* cursor.
html = htmlEncode(line) + cursor;
} else {
// Grab the current character, if there is one, and
// make it the current cursor.
var before = line.substring(0, column);
var current = line.substring(column, column + 1);
if (current) {
current =
'<span class="jquery-console-cursor">' +
htmlEncode(current) +
'</span>';
}
var after = line.substring(column + 1);
html = htmlEncode(before) + current + htmlEncode(after);
}
prompt.html(html);
scrollToBottom();
}