Package: xterm / 344-1

900_debian_xterm.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
Make Debian-specific tweaks to xterm:
* Set the default VT widget foreground and background colors to gray90 on
  black, which approximates the color scheme of the Linux virtual console
  (and approximates actual DEC VT terminals far more closely than
  black text on a white background in any case).
* Stop using an Xaw7 gradient for the backgrounds of the xterm menus; it
  produces an unappealing effect if the menus are configured to use a
  larger font than the stock configuration (also, xterm has added items to
  some menus since I last calculated the gradient size and I can't be
  bothered to do it again).
* If the X server is capable of color and has more than 8 planes of color
  depth available, set the menu colors to gray15 on antique white, and
  customize the appearance VT widget's scrollbar.  Otherwise, do not eat up
  precious entries in the color palette.
* Set the "ptyInitialErase" parameter to true by default.
* Define the "xterm-debian" terminal type in the termcap and terminfo
  files; it is based on "xterm-new" with the exception that the backspace
  is VT220-conformant, as directed by section 9.8 of the Debian Policy
  Manual.

This patch by Branden Robinson.

---
 XTerm-col.ad |   42 +++++++++++++++++++++++++++---------------
 XTerm.ad     |    3 +++
 termcap      |    6 ++++--
 terminfo     |    6 ++++--
 4 files changed, 38 insertions(+), 19 deletions(-)

--- a/termcap
+++ b/termcap
@@ -243,6 +243,8 @@ v0|xterm|X11 terminal emulator:\
 
 # This fragment is for people who cannot agree on what the backspace key
 # should send.
+# Modified to more strictly conform to the DEC VT220 behavior; this is
+# mandated by Section 9.8 of the Debian Policy Manual.
 xterm+kbs|fragment for backspace key:\
-	:kb=^H:
-#	:kb=\177:
+#	:kb=^H:
+	:kb=\177:
--- a/terminfo
+++ b/terminfo
@@ -1159,6 +1159,8 @@ xterm-vt220|xterm emulating vt220,
 	use=xterm+app,
 	use=xterm+edit,
 	use=xterm-basic,
+	rmm@,
+	smm@,
 #
 xterm-vt52|xterm emulating dec vt52,
 	cols#80,
@@ -2476,12 +2478,12 @@ xterm-r5|xterm R5 version,
 # This is the only entry which you should have to customize, since "xterm"
 # is widely used for a variety of incompatible terminal emulations including
 # color_xterm and rxvt.
-xterm|X11 terminal emulator,
+xterm|xterm-debian|X11 terminal emulator,
 	use=xterm-new,
 #	use=xterm-r6,
 
 # This fragment is for people who cannot agree on what the backspace key
 # should send.
 xterm+kbs|fragment for backspace key,
-	kbs=^H,
+	kbs=\177,
 #	kbs=^?,
--- a/XTerm.ad
+++ b/XTerm.ad
@@ -164,6 +164,9 @@
 *tek4014*font3: 6x13
 *tek4014*fontSmall: 6x10
 
+! Debian package customizations follow.
+*ptyInitialErase: true
+
 ! If xterm is built with a toolbar, the widget hierarchy looks like this,
 ! showing widget name / class names.  The complete menu hierarchy is built
 ! at startup because it is needed to make the layout work for the menubar:
--- a/XTerm-col.ad
+++ b/XTerm-col.ad
@@ -37,9 +37,9 @@
 *VT100*boldColors: on
 *VT100*dynamicColors: on
 
-! Uncomment this for "white" text on a dark background.
-!*VT100*foreground: gray90
-!*VT100*background: black
+! Set the default text foreground and background colors.
+*VT100*foreground: gray90
+*VT100*background: black
 
 ! - OR -
 ! Uncomment this for black text on a "white" background.
@@ -144,20 +144,32 @@
 *Form.background: AntiqueWhite
 *form.background: AntiqueWhite
 
+*mainMenu*background: AntiqueWhite
+*mainMenu*foreground: gray15
+*vtMenu*background: AntiqueWhite
+*vtMenu*foreground: gray15
+*fontMenu*background: AntiqueWhite
+*fontMenu*foreground: gray15
+*tekMenu*background: AntiqueWhite
+*tekMenu*foreground: gray15
+
 ! The following two sections take advantage of new features in version 7
-! of the Athena widget library.  Comment them out if you have a shallow
-! color depth.
+! of the Athena widget library; see Xaw(7x).
+
+! This section is commented out because Xaw has no way to dynamically size
+! the gradient.  The dimension parameter may need to be adjusted depending
+! on the font used in the menu.
 !*SimpleMenu*backgroundPixmap:   gradient:vertical?dimension=350&start=gray90&end=gray60
 !*SimpleMenu*foreground:         gray15
 
-!*VT100.scrollbar.thumb:         vlines2
-!*VT100.scrollbar.width:         14
-!*VT100.scrollbar.background:    gray60
-!*VT100.scrollbar.foreground:    rgb:a/5/5
-!*VT100.scrollbar.borderWidth:   0
-!*VT100.scrollbar.displayList:\
-!foreground      gray90;\
-!lines           1,-1,-1,-1,-1,1;\
-!foreground      gray60;\
-!lines           -1,0,0,0,0,-1
+*VT100.scrollbar.thumb:         vlines2
+*VT100.scrollbar.width:         14
+*VT100.scrollbar.background:    gray60
+*VT100.scrollbar.foreground:    rgb:a/5/5
+*VT100.scrollbar.borderWidth:   0
+*VT100.scrollbar.displayList:\
+foreground      gray90;\
+lines           1,-1,-1,-1,-1,1;\
+foreground      gray60;\
+lines           -1,0,0,0,0,-1
 #endif