static char sccsid
[] = "@(#)ttgeneric.c 3.23 %G%";
diff
= new ^ tt
.tt_modes
;
if (tt
.tt_modes
) /* for concept 100 */
tttputs(gen_AL
, gen_LI
- tt
.tt_row
);
if (tt
.tt_modes
) /* for concept 100 */
tttputs(gen_DL
, gen_LI
- tt
.tt_row
);
if (tt
.tt_ninsert
!= tt
.tt_insert
)
gen_setinsert(tt
.tt_ninsert
);
if (tt
.tt_nmodes
!= tt
.tt_modes
)
gen_setmodes(tt
.tt_nmodes
);
tttputs(gen_IC
, gen_CO
- tt
.tt_col
);
tttputs(gen_IP
, gen_CO
- tt
.tt_col
);
if (++tt
.tt_col
== gen_CO
)
tt
.tt_col
= 0, tt
.tt_row
++;
if (tt
.tt_ninsert
!= tt
.tt_insert
)
gen_setinsert(tt
.tt_ninsert
);
if (tt
.tt_nmodes
!= tt
.tt_modes
)
gen_setmodes(tt
.tt_nmodes
);
tttputs(gen_IC
, gen_CO
- tt
.tt_col
);
tttputs(gen_IP
, gen_CO
- tt
.tt_col
);
tt
.tt_col
= 0, tt
.tt_row
++;
if (tt
.tt_row
== row
&& tt
.tt_col
== col
)
if (!gen_MI
&& tt
.tt_insert
)
if (!gen_MS
&& tt
.tt_modes
)
if (tt
.tt_col
== col
- 1) {
} else if (tt
.tt_col
== col
+ 1) {
if (tt
.tt_row
== row
+ 1) {
} else if (tt
.tt_row
== row
+ 1) {
if (gen_HO
&& col
== 0 && row
== 0) {
ps(tgoto(gen_CM
, col
, row
));
tt
.tt_col
= tt
.tt_row
= 0;
tt
.tt_ninsert
= tt
.tt_insert
= 0;
tt
.tt_nmodes
= tt
.tt_modes
= 0;
if (tt
.tt_modes
) /* for concept 100 */
tttputs(gen_CE
, gen_CO
- tt
.tt_col
);
if (tt
.tt_modes
) /* for concept 100 */
tttputs(gen_CD
, gen_LI
- tt
.tt_row
);
if (tt
.tt_modes
) /* for concept 100 */
tttputs(gen_DC
, gen_CO
- tt
.tt_col
);
gen_CM
= ttxgetstr("cm"); /* may not work */
gen_IM
= ttxgetstr("im");
gen_IC
= tttgetstr("ic");
gen_IP
= tttgetstr("ip");
gen_EI
= ttxgetstr("ei");
gen_DC
= tttgetstr("dc");
gen_AL
= tttgetstr("al");
gen_DL
= tttgetstr("dl");
gen_CE
= tttgetstr("ce");
gen_CD
= tttgetstr("cd");
gen_CL
= ttxgetstr("cl");
gen_VS
= ttxgetstr("vs");
gen_VE
= ttxgetstr("ve");
gen_TI
= ttxgetstr("ti");
gen_TE
= ttxgetstr("te");
gen_SO
= ttxgetstr("so");
gen_SE
= ttxgetstr("se");
gen_US
= ttxgetstr("us");
gen_UE
= ttxgetstr("ue");
gen_UP
= ttxgetstr("up");
gen_PC
= tttgetstr("pc");
gen_BC
= ttxgetstr("bc");
gen_ND
= ttxgetstr("nd");
gen_HO
= ttxgetstr("ho");
gen_NL
= ttxgetstr("nl");
gen_AS
= ttxgetstr("as");
gen_AE
= ttxgetstr("ae");
if (gen_CL
== 0 || gen_CM
== 0 || gen_OS
)
if (gen_BC
== 0 && gen_BS
)
PC
= gen_PC
? *gen_PC
: 0;
ospeed
= wwoldtty
.ww_sgttyb
.sg_ospeed
;
tt
.tt_delchar
= gen_delchar
;
tt
.tt_insline
= gen_insline
;
tt
.tt_delline
= gen_delline
;
tt
.tt_clreol
= gen_clreol
;
tt
.tt_clreos
= gen_clreos
;
tt
.tt_availmodes
|= WWM_REV
;
tt
.tt_availmodes
|= WWM_UL
;
tt
.tt_availmodes
|= WWM_GRP
;
tt
.tt_hasinsert
= gen_IM
!= 0;