Skip to content

Instantly share code, notes, and snippets.

@jasonrobot
Last active July 6, 2018 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonrobot/deb143e3692190fd1fe976735c8405c0 to your computer and use it in GitHub Desktop.
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).
#! /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