1 #ifndef lint 2 static char *sccsid = "@(#)wwdump.c 3.1 83/08/09"; 3 #endif 4 5 #include "ww.h" 6 7 static char cmap[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 8 9 wwdumpcov(w) 10 register struct ww *w; 11 { 12 register i, j; 13 14 (*tt.tt_setinsert)(0); 15 (*tt.tt_setmodes)(0); 16 (*tt.tt_clear)(); 17 for (i = 0; i < w->ww_w.nr; i++) { 18 (*tt.tt_move)(w->ww_w.t + i, w->ww_w.l); 19 for (j = 0; j < w->ww_w.nc; j++) 20 (*tt.tt_putc)(cmap[w->ww_cov[i][j]]); 21 } 22 } 23 24 wwdumpwin(w) 25 register struct ww *w; 26 { 27 register i, j; 28 29 (*tt.tt_setinsert)(0); 30 (*tt.tt_setmodes)(0); 31 (*tt.tt_clear)(); 32 for (i = 0; i < w->ww_w.nr; i++) { 33 (*tt.tt_move)(w->ww_w.t + i, w->ww_w.l); 34 for (j = 0; j < w->ww_w.nc; j++) 35 (*tt.tt_putc)(w->ww_win[i][j] & WWM_COV ? 'C' : ' '); 36 } 37 } 38 39 wwdumpnvis(w) 40 register struct ww *w; 41 { 42 register i; 43 44 (*tt.tt_setinsert)(0); 45 (*tt.tt_setmodes)(0); 46 (*tt.tt_clear)(); 47 for (i = 0; i < w->ww_w.nr; i++) { 48 (*tt.tt_move)(w->ww_w.t + i, w->ww_w.l); 49 (*tt.tt_putc)(w->ww_nvis[i] / 100 % 10 + '0'); 50 (*tt.tt_putc)(w->ww_nvis[i] / 10 % 10 + '0'); 51 (*tt.tt_putc)(w->ww_nvis[i] % 10 + '0'); 52 } 53 } 54 55 wwdumpsmap() 56 { 57 register i, j; 58 59 (*tt.tt_setinsert)(0); 60 (*tt.tt_setmodes)(0); 61 (*tt.tt_clear)(); 62 for (i = 0; i < wwnrow; i++) { 63 (*tt.tt_move)(i, 0); 64 for (j = 0; j < wwncol; j++) 65 (*tt.tt_putc)(cmap[wwsmap[i][j]]); 66 } 67 } 68 69 /* 70 wwdumpns() 71 { 72 register i, j; 73 74 (*tt.tt_setinsert)(0); 75 (*tt.tt_clear)(); 76 for (i = 0; i < wwnrow; i++) { 77 (*tt.tt_move)(i, 0); 78 for (j = 0; j < wwncol; j++) { 79 (*tt.tt_setmodes)(wwns[i][j].c_m); 80 (*tt.tt_putc)(wwns[i][j].c_c); 81 } 82 } 83 } 84 85 wwdumpos() 86 { 87 register i, j; 88 89 (*tt.tt_setinsert)(0); 90 (*tt.tt_clreos)(); 91 for (i = 0; i < wwnrow; i++) { 92 (*tt.tt_move)(i, 0); 93 for (j = 0; j < wwncol; j++) { 94 (*tt.tt_setmodes)(wwns[i][j].c_m); 95 (*tt.tt_putc)(wwns[i][j].c_c); 96 } 97 } 98 } 99 */ 100