@@ -7,9 +7,9 @@ SHRINKELF
7
7
#STRIPFLAG
8
8
9
9
COMPILE printf itodec memcpy bzero memset write sleep \
10
- select tcgetattr tcsetattr signal _execlp fmtp snprintf fmtl atol \
11
- localtime_r mktime execvp sprintf
12
- COMPILE fmtp open error MLVALIST strncpy
10
+ select tcgetattr tcsetattr signal _execlp snprintf atol \
11
+ localtime_r mktime execvp
12
+ COMPILE fmtp fmtl fmtd open error MLVALIST strncpy
13
13
14
14
if [ "$compile_sntp" = "1" ]; then
15
15
source sntp /sntp .c
@@ -175,7 +175,7 @@ void usage(){
175
175
" d=day,h=hour,m=minute. Can be supplied several times, or with -t/-T\n"
176
176
" -n source : use ntpc time, source one of a,c,f,g,m\n"
177
177
" (apple,cloudflare,facebook,google,microsoft)\n"
178
- " careful, microsoft will crash or point to apple - type jicrosoft or icrosoft instead\n"
178
+ " (m)icrosoft will crash or point to apple - type jicrosoft or icrosoft instead\n"
179
179
" -b secret : base32 secret \n"
180
180
" -s N[h|m] : Set timeout, stop after N seconds (minutes, hours) without keypress,\n"
181
181
" and erase all secrets.\n"
@@ -683,7 +683,7 @@ int main(int argc, char **argv, char **envp){
683
683
break ;
684
684
case 'n' :
685
685
case '\n' :
686
- P ("Copy Next" );
686
+ P ("Copy Next " );
687
687
left (16 );
688
688
xclip (r2 );
689
689
clsec = 3 ;
@@ -692,11 +692,8 @@ int main(int argc, char **argv, char **envp){
692
692
sleep (1 ); // aborted by sigalarm
693
693
seconds ++ ;
694
694
695
- if ( clsec ){
696
- if ( clsec == 1 )
697
- P ("\e[2K" );
698
- clsec -- ;
699
- }
695
+ if ( clsec && !-- clsec )
696
+ P ("\e[2K" ); // clear line
700
697
}
701
698
up ();
702
699
};
0 commit comments