Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatibilities with perl 5.22 #3

Merged
merged 1 commit into from
Mar 3, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cadubi
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,14 @@ sub printchar { # returns a string with the current ANSI mode and the character
}

sub paintchar { # prints the char on screen and saves it to @charmap
@charmap->[$pos[0]][$pos[1]] = [@charmode];
$charmap->[$pos[0]][$pos[1]] = [@charmode];
print &printchar(@charmode);
&curs_move(@pos); #print moves to the right on us, without asking. the nerve!
}

sub erasechar { # saves blank char to @charmap, prints
@charmap->[$pos[0]][$pos[1]] = undef;
print &printchar(@{@charmap->[$pos[0]][$pos[1]]});
$charmap->[$pos[0]][$pos[1]] = undef;
print &printchar(@{$charmap->[$pos[0]][$pos[1]]});
&curs_move(@pos); #print moves to the right on us, without asking. the nerve!
}

Expand Down Expand Up @@ -839,7 +839,7 @@ sub readfile {
}
else {
$charmode[0] = $char;
@charmap->[$x][$y] = [@charmode];
$charmap->[$x][$y] = [@charmode];
$x++;
}
}
Expand Down Expand Up @@ -879,7 +879,7 @@ sub writefile {
$thisline .= $ESC.'[0m'.substr(&printchar(@{$charmap[$x][$y]}),0,-4);
} else {
# make sure it's not just a space
if (defined(@{$charmap[$x][$y]})) {
if (@{$charmap[$x][$y]}) {
$thisline .= $newmode[0];
} else {
$thisline .= ' ';
Expand Down