printing from zvt
- From: Bradley Bell <bradleyb u washington edu>
- To: gnome-devel-list gnome org
- Subject: printing from zvt
- Date: Wed, 11 Oct 2000 22:25:26 -0700 (PDT)
I would like to get vt100 printing sequences enabled in zvt, this would
enable printing from gnome-terminal. This feature is very important
for some users (e.g. using pine on a remote host...)
Getting it to recognize the escape sequences is trivial (see the attached
patch), but I was wondering if anybody who knows the guts better could
give me some pointers on how to redirect the output.
thanks,
Brad
--- vt.c.bak Wed Oct 11 19:51:29 2000
+++ vt.c Wed Oct 11 22:05:41 2000
@@ -1298,6 +1298,19 @@
}
}
+static void
+vt_print(struct vt_em *vt)
+{
+ pid_t pid;
+ switch (vt->arg.num.intargs[0]) {
+ case 4:
+ printf("vt_print: disabled\n");
+ break;
+ case 5:
+ printf("vt_print: enabled\n");
+ }
+}
+
/* function keys - does nothing */
static void
vt_func(struct vt_em *vt)
@@ -1417,7 +1430,7 @@
{0,VT_LIT}, {0,VT_LIT}, {vt_scroll_reverse,VT_EBL}, {0,VT_LIT}, /* \]^_ */
{0,VT_LIT}, {0,VT_LIT}, {0,VT_LIT}, {vt_reset,VT_EXL|VT_EXB}, /* `abc */
{vt_gotoabsy,VT_EBL|VT_ESC}, {0,VT_LIT}, {vt_goto,VT_EBL}, {0,VT_LIT}, /* defg */
- {vt_modeh,VT_EBL}, {0,VT_LIT}, {0,VT_LIT}, {vt_modek,VT_EBL}, /* hijk */
+ {vt_modeh,VT_EBL}, {vt_print,VT_EBL}, {0,VT_LIT}, {vt_modek,VT_EBL}, /* hijk */
{vt_model,VT_EBL}, {vt_mode,VT_EBL}, {vt_dsr,VT_EBL}, {0,VT_LIT}, /* lmno */
{vt_reset,VT_EBL}, {0,VT_LIT}, {vt_scroll,VT_EBL}, {0,VT_LIT}, /* pqrs */
{0,VT_LIT}, {0,VT_LIT}, {0,VT_LIT}, {0,VT_LIT}, /* tuvw */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]