diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -30,19 +30,13 @@ char *argv0; -void dump_lines(){ - int i; - for (i=0; i<HEIGHT; i++){ - printf("%s\n", screen[i].s); - } -} void cleanup(int s){ if (!silent) printf("\033[;H\033[2J"); else - dump_lines(); + dump_lines(screen, stdout); tcsetattr(0, TCSANOW, &t1); fflush(stdout); exit(0); @@ -125,6 +119,9 @@ void commands(FILE *fc){ case 'C': crop_to_nonblank(); break; + case 'p': + paste(); + break; case 'q': check_modified(fc);/** FALLTHROUGH **/ case 'Q': |