Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set saveClearedText to false by default #1323

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions PlayerController/playercore.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ function disableAllCommandLinks() {
}

// Modified by KV to handle the scrollback feature
var saveClearedText = true;
var saveClearedText = false;
var clearedOnce = false;
function clearScreen() {
if (!saveClearedText) {
Expand Down Expand Up @@ -795,16 +795,12 @@ function clearScreen() {
// Scrollback functions added by KV

function showScrollback() {
var scrollbackDivString = "";
scrollbackDivString += "<div ";
scrollbackDivString += "id='scrollback-dialog' ";
scrollbackDivString += "style='display:none;'>";
scrollbackDivString += "<div id='scrollbackdata'></div></div>";
var scrollbackDivString = '<div id="scrollback-dialog" style="display:none;"><div id="scrollbackdata"></div></div>';
addText(scrollbackDivString);
var scrollbackDialog = $("#scrollback-dialog").dialog({
autoOpen: false,
width: 600,
height: 500,
width: $(window).width(),
height: $(window).height(),
title: "Scrollback",
buttons: {
Ok: function () {
Expand All @@ -826,8 +822,6 @@ function showScrollback() {
}, 1);
};



function printScrollbackDiv() {
var iframe = document.createElement('iframe');
document.body.appendChild(iframe);
Expand Down
14 changes: 4 additions & 10 deletions WebPlayer/playercore.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ function disableAllCommandLinks() {
}

// Modified by KV to handle the scrollback feature
var saveClearedText = true;
var saveClearedText = false;
var clearedOnce = false;
function clearScreen() {
if (!saveClearedText) {
Expand Down Expand Up @@ -795,16 +795,12 @@ function clearScreen() {
// Scrollback functions added by KV

function showScrollback() {
var scrollbackDivString = "";
scrollbackDivString += "<div ";
scrollbackDivString += "id='scrollback-dialog' ";
scrollbackDivString += "style='display:none;'>";
scrollbackDivString += "<div id='scrollbackdata'></div></div>";
var scrollbackDivString = '<div id="scrollback-dialog" style="display:none;"><div id="scrollbackdata"></div></div>';
addText(scrollbackDivString);
var scrollbackDialog = $("#scrollback-dialog").dialog({
autoOpen: false,
width: 600,
height: 500,
width: $(window).width(),
height: $(window).height(),
title: "Scrollback",
buttons: {
Ok: function () {
Expand All @@ -826,8 +822,6 @@ function showScrollback() {
}, 1);
};



function printScrollbackDiv() {
var iframe = document.createElement('iframe');
document.body.appendChild(iframe);
Expand Down