mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-12-02 08:46:55 +01:00
improved display a bit
reduced print call by 1 to speed up printing on screen. reduced depths allowed.
This commit is contained in:
@@ -316,6 +316,7 @@ class EventData {
|
|||||||
|
|
||||||
String strToPrint = "";
|
String strToPrint = "";
|
||||||
if(!topPost) {
|
if(!topPost) {
|
||||||
|
strToPrint += "\n";
|
||||||
strToPrint += getDepthSpaces(depth);
|
strToPrint += getDepthSpaces(depth);
|
||||||
strToPrint += " "; // in place of block for top posts
|
strToPrint += " "; // in place of block for top posts
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -100,9 +100,9 @@ const int gNameLengthInPost = 12;
|
|||||||
// after depth of maxDepthAllowed the thread is re-aligned to left by leftShiftThreadBy
|
// after depth of maxDepthAllowed the thread is re-aligned to left by leftShiftThreadBy
|
||||||
const int gMinimumDepthAllowed = 2;
|
const int gMinimumDepthAllowed = 2;
|
||||||
const int gMaximumDepthAllowed = 12;
|
const int gMaximumDepthAllowed = 12;
|
||||||
const int gDefaultMaxDepth = 6;
|
const int gDefaultMaxDepth = 5;
|
||||||
int maxDepthAllowed = gDefaultMaxDepth;
|
int maxDepthAllowed = gDefaultMaxDepth;
|
||||||
const int leftShiftThreadsBy = 4;
|
const int leftShiftThreadsBy = 3;
|
||||||
|
|
||||||
int gMaxLenUnbrokenWord = 8; // lines are broken if space is at end of line for this number of places
|
int gMaxLenUnbrokenWord = 8; // lines are broken if space is at end of line for this number of places
|
||||||
|
|
||||||
|
|||||||
@@ -246,8 +246,6 @@ class Tree {
|
|||||||
int printTree(int depth, DateTime newerThan, bool topPost) {
|
int printTree(int depth, DateTime newerThan, bool topPost) {
|
||||||
int numPrinted = 0;
|
int numPrinted = 0;
|
||||||
|
|
||||||
if( !topPost)
|
|
||||||
print("");
|
|
||||||
event.printEvent(depth, topPost);
|
event.printEvent(depth, topPost);
|
||||||
numPrinted++;
|
numPrinted++;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user