- if (DB)
- vgoto(WECHO, 0), vputp(CD ? CD : CE, 1);
- else
- vigoto(WECHO, 0), vclreol();
+ if (DB) {
+ vgoto(WECHO, 0);
+ vputp(CD ? CD : CE, 1);
+ } else {
+ if (XT) {
+ /*
+ * This code basically handles the t1061
+ * where positioning at (0, 0) won't work
+ * because the terminal won't let you put
+ * the cursor on it's magic cookie.
+ *
+ * Should probably be XS above, or even a
+ * new X? glitch, but right now t1061 is the
+ * only terminal with XT.
+ */
+ vgoto(WECHO, 0);
+ vputp(DL, 1);
+ } else {
+ vigoto(WECHO, 0);
+ vclreol();
+ }
+ }