hedgequantx 2.4.39 → 2.4.40
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/app.js +5 -3
- package/src/utils/prompts.js +0 -1
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -115,9 +115,10 @@ const refreshStats = async () => {
|
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Display application banner
|
|
118
|
+
* @param {boolean} [clear=true] - Whether to clear screen first
|
|
118
119
|
*/
|
|
119
|
-
const banner = async () => {
|
|
120
|
-
console.clear();
|
|
120
|
+
const banner = async (clear = true) => {
|
|
121
|
+
if (clear) console.clear();
|
|
121
122
|
|
|
122
123
|
const termWidth = process.stdout.columns || 100;
|
|
123
124
|
const isMobile = termWidth < 60;
|
|
@@ -240,7 +241,8 @@ const run = async () => {
|
|
|
240
241
|
while (true) {
|
|
241
242
|
try {
|
|
242
243
|
prepareStdin();
|
|
243
|
-
|
|
244
|
+
console.clear();
|
|
245
|
+
await banner(false);
|
|
244
246
|
|
|
245
247
|
if (!connections.isConnected()) {
|
|
246
248
|
const choice = await mainMenu();
|