Menu

#7 aecat may insert an extra linefeed at the end of the file

open
nobody
5
2010-02-15
2010-02-15
sbts
No

aecat may insert an extra linefeed at the end of the file.

To reproduce
In aewan take an 80x24 screen,
change the color,
place a border of any character around the screen,
save the file
run aecat inputfile > output file NOTE: option -o doesn't work will file another bug for that
edit output file, the last line of the file is just an escape sequence that restores the attributes of the display, eg color.
The escape sequence should be on the previous line.
The effect of it being on its own line, is that if you are trying to display the image on an 80x24 terminal, it will scroll the top line of the image off the screen.

Any linefeed at this point should only be added if the user requests it with an option,
it would probably be easier to just not add it at all, and let the user add it in their code.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB