mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-04-17 08:11:50 +02:00
improved display a bit
reduced print call by 1 to speed up printing on screen. reduced depths allowed.
This commit is contained in:
parent
5b66070329
commit
0427aa5db3
@ -316,6 +316,7 @@ class EventData {
|
||||
|
||||
String strToPrint = "";
|
||||
if(!topPost) {
|
||||
strToPrint += "\n";
|
||||
strToPrint += getDepthSpaces(depth);
|
||||
strToPrint += " "; // in place of block for top posts
|
||||
} else {
|
||||
|
@ -100,9 +100,9 @@ const int gNameLengthInPost = 12;
|
||||
// after depth of maxDepthAllowed the thread is re-aligned to left by leftShiftThreadBy
|
||||
const int gMinimumDepthAllowed = 2;
|
||||
const int gMaximumDepthAllowed = 12;
|
||||
const int gDefaultMaxDepth = 6;
|
||||
const int gDefaultMaxDepth = 5;
|
||||
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
|
||||
|
||||
|
@ -246,8 +246,6 @@ class Tree {
|
||||
int printTree(int depth, DateTime newerThan, bool topPost) {
|
||||
int numPrinted = 0;
|
||||
|
||||
if( !topPost)
|
||||
print("");
|
||||
event.printEvent(depth, topPost);
|
||||
numPrinted++;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user