Last active
July 6, 2018 19:41
-
-
Save jasonrobot/deb143e3692190fd1fe976735c8405c0 to your computer and use it in GitHub Desktop.
Make a break in your terminal without clearing the screen! Give it an arg for how many lines you want (default 3).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env perl | |
use strict; | |
my $default = 3; | |
my $lines = @ARGV[0] || $default; | |
$lines = 3 if $lines < 0; | |
for( my $i = $lines; $i > 0; $i-- ) { | |
if ( $i == ($lines / 2) || | |
$i == (($lines + 1) / 2) ) { | |
print "================================================================================"; | |
} | |
print "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment