Skip to content

Commit

Permalink
Some edge case handling in Accumulator
Browse files Browse the repository at this point in the history
  • Loading branch information
strnglp committed Aug 14, 2024
1 parent 910927a commit c8b7cdb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#*
.*
.DS_Store
Notes.org
Archive/
Expand Down
17 changes: 11 additions & 6 deletions Accumulator.tin
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#echo {Loading duplicate accumulator.}
#script {screenheight} {tput lines}
#nop height of the terminal, minus the split for promps
#math {screenheight} {$screenheight[1] * -1 + 7}
#variable prevline {}
#variable matchcount {1}
#unvariable checkprompt
Expand All @@ -14,12 +17,14 @@
#buffer info {save} {buffersize};
#buffer find {%0} {pos};
#math {linesup} {($buffersize[+4] - $pos) * -1};
#buffer clear {$linesup} {-1};
#buffer refresh;
#math {matchcount} {$matchcount + 1};
#math {color} {$matchcount % 8};
#format {color} {<0%d8>} {$color};
#substitute {%0} {%0 ${color}\(x${matchcount}\)${RESET}};
#if {$linesup < 0 && $linesup > $screenheight} {
#buffer clear {$linesup} {-1};
#buffer refresh;
#math {matchcount} {$matchcount + 1};
#math {color} {$matchcount % 8};
#format {color} {<0%d8>} {$color};
#substitute {%0} {%0 ${color}\(x${matchcount}\)${RESET}};
}
} {
#variable {prevline} {%0};
#variable {matchcount} {1};
Expand Down
4 changes: 4 additions & 0 deletions Arm.tin
Original file line number Diff line number Diff line change
Expand Up @@ -390,18 +390,22 @@

#nop Constants used throughout the scripts
#read {$armdir/Globals.tin};
#alias {rlglobals} { #read {$armdir/Globals.tin} }

#nop General highlighting
#read {$armdir/HL.tin};
#alias {rlhl} { #read {$armdir/HL.tin} }

#nop PC names
#read {$armdir/PCs.tin};
#alias {rlpc} { #read {$armdir/PCs.tin} }

#nop External help file reading in second terminal
#read {$armdir/Help.tin};

#nop Accumulate repeated lines into one line
#read {$armdir/Accumulator.tin};
#alias {rlacc} { #read {$armdir/Accumulator.tin} }

#nop reload it all
#alias {reconnect} {#read $armdir/Arm.tin}

0 comments on commit c8b7cdb

Please sign in to comment.