hedgequantx 2.6.48 → 2.6.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/pages/algo/ui.js +5 -1
package/package.json
CHANGED
package/src/pages/algo/ui.js
CHANGED
|
@@ -102,7 +102,11 @@ class AlgoUI {
|
|
|
102
102
|
this.config = config;
|
|
103
103
|
this.W = 96; // Fixed width
|
|
104
104
|
this.logs = [];
|
|
105
|
-
|
|
105
|
+
// Calculate maxLogs based on terminal height
|
|
106
|
+
// Header (logo + titles): ~12 lines, Stats: ~12 lines, Log header: 2 lines, Bottom: 1 line = 27 fixed
|
|
107
|
+
const terminalHeight = process.stdout.rows || 50;
|
|
108
|
+
const fixedLines = 27;
|
|
109
|
+
this.maxLogs = Math.max(10, terminalHeight - fixedLines); // Min 10 logs
|
|
106
110
|
this.spinnerFrame = 0;
|
|
107
111
|
this.firstDraw = true;
|
|
108
112
|
this.isDrawing = false;
|