Copyright © 1997-2022,2023 by Thomas E. Dickey


Contents

Here is the latest version of this file.

It began as a list of the changes that I made for xterm, using the notes that I added when submitting a patch. You should note that other changes were made as well, by other people, to fix bugs and correct ifdef's for portability. Until mid-2006, most of these were summarized in the XFree86 CHANGELOG).

Patch #382 - 2023/05/30

Patch #381 - 2023/05/28

Patch #380 - 2023/05/09

Patch #379 - 2023/02/15

Patch #378 - 2023/01/09

Patch #377 - 2022/11/25

Patch #376 - 2022/11/16

Patch #375 - 2022/10/23

Patch #374 - 2022/10/10

Patch #373 - 2022/09/25

Patch #372 - 2022/03/09

Patch #371 - 2022/02/24

Patch #370 - 2021/11/13

Patch #369 - 2021/09/21

Patch #368 - 2021/06/07

Patch #367 - 2021/03/26

Patch #366 - 2021/02/10

Patch #365 - 2021/02/03

Patch #364 - 2021/02/02

Patch #363 - 2020/12/26

Patch #362 - 2020/11/11

Patch #361 - 2020/10/14

Patch #360 - 2020/09/20

Patch #359 - 2020/08/17

Patch #358 - 2020/07/12

Patch #357 - 2020/07/05

Patch #356 - 2020/05/02

Patch #355 - 2020/05/01

Patch #354 - 2020/04/26

Patch #353 - 2020/02/01

Patch #352 - 2020/01/16

Patch #351 - 2019/11/17

Patch #350 - 2019/11/02

Patch #349 - 2019/09/22

Patch #348 - 2019/07/22

Patch #347 - 2019/06/30

Patch #346 - 2019/05/27

Patch #345 - 2019/05/14

Patch #344 - 2019/02/12

Patch #343 - 2019/01/13

Patch #342 - 2019/01/03

Patch #341 - 2018/12/24

Patch #340 - 2018/12/16

Patch #339 - 2018/12/12

Patch #338 - 2018/12/09

Patch #337 - 2018/09/21

Patch #336 - 2018/09/19

Patch #335 - 2018/08/14

Patch #334 - 2018/08/12

Patch #333 - 2018/05/03

Patch #332 - 2018/04/15

Patch #331 - 2017/12/30

Patch #330 - 2017/06/20

Patch #329 - 2017/06/12

Patch #328 - 2017/06/01

Patch #327 - 2016/10/07

Patch #326 - 2016/09/25

Patch #325 - 2016/06/05

Patch #324 - 2016/03/10

Patch #323 - 2016/03/07

Patch #322 - 2016/01/02

Patch #321 - 2015/12/31

Patch #320 - 2015/08/28

Patch #319 - 2015/08/19

Patch #318 - 2015/04/12

Patch #317 - 2015/03/27

Patch #316 - 2015/03/07

Patch #315 - 2015/03/02

Patch #314 - 2014/12/28

Patch #313 - 2014/11/28

Patch #312 - 2014/09/28

Patch #311 - 2014/09/18

Patch #310 - 2014/07/25

Patch #309 - 2014/07/13

Patch #308 - 2014/06/19

Patch #307 - 2014/06/17

Patch #306 - 2014/06/03

Patch #305 - 2014/06/02

Patch #304 - 2014/05/03

Patch #303 - 2014/03/06

Patch #302 - 2014/03/02

Patch #301 - 2014/01/19

Patch #300 - 2013/12/03

Patch #299 - 2013/12/01

Patch #298 - 2013/11/27

Patch #297 - 2013/09/10

Patch #296 - 2013/07/10

Patch #295 - 2013/07/06

Patch #294 - 2013/07/05

Patch #293 - 2013/05/27

Patch #292 - 2013/04/25

Patch #291 - 2013/02/26

Patch #290 - 2013/02/12

Patch #289 - 2013/02/08

Patch #288 - 2013/01/09

Patch #287 - 2012/11/25

Patch #286 - 2012/10/29

Patch #285 - 2012/10/23

Patch #284 - 2012/10/14

Patch #283 - 2012/10/09

Patch #282 - 2012/09/28

Patch #281 - 2012/06/26

Patch #280 - 2012/06/24

Patch #279 - 2012/05/10

Patch #278 - 2012/01/18

Patch #277 - 2012/01/07

Patch #276 - 2011/10/10

Patch #275 - 2011/09/11

Patch #274 - 2011/09/05

Patch #273 - 2011/08/25

Patch #272 - 2011/08/24

Patch #271 - 2011/07/14

Patch #270 - 2011/04/26

Patch #269 - 2011/02/19

Patch #268 - 2011/02/10

Patch #267 - 2010/11/20

Patch #266 - 2010/10/24

Patch #265 - 2010/10/22

Patch #264 - 2010/10/14

Patch #263 - 2010/10/13

Patch #262 - 2010/8/30

Patch #261 - 2010/6/28

Patch #260 - 2010/6/20

Patch #259 - 2010/6/5

Patch #258 - 2010/5/1

Patch #257 - 2010/4/22

Patch #256 - 2010/3/6

Patch #255 - 2010/1/21

Patch #254 - 2010/1/6

Patch #253 - 2009/12/10

Patch #252 - 2009/12/7

Patch #251 - 2009/11/11

Patch #250 - 2009/10/13

Patch #249 - 2009/10/1

Patch #248 - 2009/9/11

Patch #247 - 2009/8/30

Patch #246 - 2009/8/16

Patch #245 - 2009/8/12

Patch #244 - 2009/8/9

Patch #243 - 2009/3/28

Patch #242 - 2009/2/15

Patch #241 - 2009/1/26

Patch #240 - 2009/1/25

Patch #239 - 2009/1/8

Patch #238 - 2008/12/30

Patch #237 - 2008/09/14

Patch #236 - 2008/07/27

Patch #235 - 2008/04/20

Patch #234 - 2008/03/02

Patch #233 - 2008/02/24

Patch #232 - 2008/01/30

Patch #231 - 2008/01/05

Patch #230 - 2007/12/31

Patch #229 - 2007/8/12

Patch #228 - 2007/7/22

Patch #227 - 2007/6/27

Patch #226 - 2007/6/17

Patch #225 - 2007/3/24

Patch #224 - 2007/2/11

Patch #223 - 2006/11/30

Patch #222 - 2006/10/17

Patch #221 - 2006/10/1

Patch #220 - 2006/9/10

Patch #219 - 2006/9/4

Patch #218 - 2006/8/27

Patch #217 - 2006/8/20

Patch #216 - 2006/8/3

Patch #215 - 2006/6/19 - XFree86 4.6.99.2

Patch #214 - 2006/6/18 - XFree86 4.6.99.2

Patch #213 - 2006/4/30 - XFree86 4.5.99.905

Patch #212 - 2006/4/9 - XFree86 4.5.99.904

Patch #211 - 2006/3/19 - XFree86 4.5.99.902

Patch #210 - 2006/3/12 - XFree86 4.5.99.902

Patch #209 - 2006/2/12 - XFree86 4.5.99.22

Patch #208 - 2006/1/3 - XFree86 4.5.99.19

Patch #207 - 2005/11/13 - XFree86 4.5.99.16

Patch #206 - 2005/11/3 - XFree86 4.5.99.15

Patch #205 - 2005/9/18 - XFree86 4.5.99.12

Patch #204 - 2005/8/4 - XFree86 4.5.99.9

Patch #203 - 2005/7/6 - XFree86 4.5.99.7

Patch #202 - 2005/5/2 - XFree86 4.5.99.3

Patch #201 - 2005/4/21 - XFree86 4.5.99.2

Patch #200 - 2005/2/6 - XFree86 4.4.99.23

Patch #199 - 2005/1/17 - XFree86 4.4.99.22

Patch #198 - 2005/1/13 - XFree86 4.4.99.21

Patch #197 - 2004/11/30 - XFree86 4.4.99.19

Patch #196 - 2004/8/15 - XFree86 4.4.99.12

Patch #195 - 2004/8/8 - XFree86 4.4.99.11

Patch #194 - 2004/7/27 - XFree86 4.4.99.11

Patch #193 - 2004/7/19 - XFree86 4.4.99.10

Patch #192 - 2004/7/12 - XFree86 4.4.99.9

Patch #191 - 2004/6/6 - XFree86 4.4.99.7

Patch #190 - 2004/5/25 - XFree86 4.4.99.6

Patch #189 - 2004/5/16 - XFree86 4.4.99.6

Patch #188 - 2004/5/12 - XFree86 4.4.99.6

Patch #187 - 2004/4/27 - XFree86 4.4.99.4

Patch #186 - 2004/4/18 - XFree86 4.4.99.4

Patch #185 - 2004/3/3 - XFree86 4.4

Patch #184 - 2003/12/31 - XFree86 4.3.99.903

Patch #183 - 2003/12/26 - XFree86 4.3.99.903

Patch #182 - 2003/12/2 - XFree86 4.3.99.901

Patch #181 - 2003/10/26 - XFree86 4.3.99.15

Patch #180 - 2003/10/12 - XFree86 4.3.99.15

Patch #179 - 2003/5/21 - XFree86 4.3.99.5

Patch #178 - 2003/5/18 - XFree86 4.3.99.5

Patch #177 - 2003/3/23 - XFree86 4.3.0

Patch #176 - 2003/3/22 - XFree86 4.3.0

Patch #175 - 2003/3/9 - XFree86 4.3.0

Patch #174 - 2003/2/25 - XFree86 4.2.99.903

Patch #173 - 2003/2/6 - XFree86 4.2.99.902

Patch #172 - 2002/12/27 - XFree86 4.2.99.3

Patch #171 - 2002/12/12 - XFree86 4.2.99.3

Patch #170 - 2002/10/13 - XFree86 4.2.1

Patch #169 - 2002/10/5 - XFree86 4.2.1

Patch #168 - 2002/9/29 - XFree86 4.2.1

Patch #167 - 2002/8/24 - XFree86 4.2.0

Patch #166 - 2002/3/25 - XFree86 4.2.0

Patch #165 - 2002/1/5 - XFree86 4.1.0

Patch #164 - 2001/11/13 - XFree86 4.1.0

Patch #163 - 2001/11/04 - XFree86 4.1.0

Patch #162 - 2001/10/23 - XFree86 4.1.0

Patch #161 - 2001/10/10 - XFree86 4.1.0

Patch #160 - 2001/10/7 - XFree86 4.1.0

Patch #159 - 2001/9/19 - XFree86 4.1.0

Patch #158 - 2001/9/8 - XFree86 4.1.0

Patch #157 - 2001/6/18 - XFree86 4.1.0

Patch #156 - 2001/4/28 - XFree86 4.0.3

Patch #155 - 2001/4/20 - XFree86 4.0.3

Patch #154 - 2001/4/11 - XFree86 4.0.3

Patch #153 - 2001/3/29 - XFree86 4.0.3

Patch #152 - 2001/3/13 - XFree86 4.0.2

Patch #151 - 2001/3/10 - XFree86 4.0.2

Changes from XFree86 4.0.2:

Patch #150 - 2000/12/29 - XFree86 4.0.2

Patch #149 - 2000/12/6 - XFree86 4.0.1h

Patch #148 - 2000/10/31 - XFree86 4.0.1d

Patch #147 - 2000/10/26 - XFree86 4.0.1c

Patch #146 - 2000/9/12 - XFree86 4.0.1c

Patch #145 - 2000/9/11 - XFree86 4.0.1c

Patch #144 - 2000/8/23 - XFree86 4.0.1b

Patch #143 - 2000/8/19 - XFree86 4.0.1b

Patch #142 - 2000/8/18 - XFree86 4.0.1b

Patch #141 - 2000/8/14 - XFree86 4.0.1b

Patch #140 - 2000/7/23 - XFree86 4.0.1

Patch #139 - 2000/6/17 - XFree86 4.0d

Patch #138 - 2000/6/15 - XFree86 4.0c

Patch #137 - 2000/6/10 - XFree86 4.0b

Patch #136 - 2000/6/3 - XFree86 4.0b

Patch #135 - 2000/5/29 - XFree86 4.0b

Patch #134 - 2000/5/28 - XFree86 4.0b

Patch #133 - 2000/5/2 - XFree86 4.0a

Patch #132 - 2000/4/11 - XFree86 4.0a

Patch #131 - 2000/3/3 - XFree86 3.9.18b

Patch #130 - 2000/3/1 - XFree86 3.9.18a

Patch #129 - 2000/2/26 - XFree86 3.9.18a

Patch #128 - 2000/2/17 - XFree86 3.9.18

Patch #127 - 2000/2/12 - XFree86 3.9.17e

Patch #126 - 2000/2/8 - XFree86 3.9.17c

Patch #125 - 2000/1/31 - XFree86 3.9.17c

Patch #124 - 2000/1/27 - XFree86 3.9.17b

Patch #123 - 2000/1/22 - XFree86 3.9.17a

Patch #122 - 1999/12/28 - XFree86 3.9.16f

Patch #121 - 1999/11/14 - XFree86 3.9.16c

Patch #120 - 1999/10/28 - XFree86 3.9.16c

Patch #119 - 1999/10/16 - XFree86 3.9.16c

Patch #118 - 1999/10/5 - XFree86 3.9.16b

Patch #117 - 1999/9/29 - XFree86 3.9.16b

Patch #116 - 1999/9/25 - XFree86 3.9.16a

Patch #115 - 1999/9/18 - XFree86 3.9.16a

Patch #114 - 1999/9/15 - XFree86 3.9.16

Patch #113 - 1999/8/15 - XFree86 3.9.15b

Several fixes. The main one is a first draft of pulldown menus. It's not complete (I have some minor/annoying geometry problems to correct), but is usable. Once it's complete I plan to add a menu to support additional selections that won't fit on the current popup menus. Also, this fits into my longterm plan to allow configuring with Motif libraries.

Patch #112 - 1999/7/17 - XFree86 3.9Pw

Patch #111 - 1999/7/10 - XFree86 3.9Pw

Patch #110 - 1999/6/29 - XFree86 3.9Pu

Patch #109 - 1999/6/23 - XFree86 3.9Pt

Patch #108 - 1999/6/19 - XFree86 3.9Ps

Patch #107 - 1999/6/12 - XFree86 3.9Pq

Patch #106 - 1999/6/9 - XFree86 3.9Pq

Patch #105 - 1999/6/5 - XFree86 3.9Pp

Patch #104 - 1999/5/30 - XFree86 3.9Pn

This is a resync patch against XFree86 3.9Pn, reflecting changes which were submitted by Branden Robinson, who worked with Wichert Akkerman <wichert@cs.leidenuniv.nl> to set up ifdef's to handle GNU libc 2.1, and use getpt() which lets xterm avoid having to know the actual PTY name.

I have also added a few fixes for signed/unsigned mismatches, and corrected a problem in the configure script (the UTF-8 code was always configured since the Imakefile defines this).

Patch #103 - 1999/5/14 - XFree86 3.9Pm

Patch #102 - 1999/5/12 - XFree86 3.9Pm

Patch #101 - 1999/5/10 - XFree86 3.9Pm

Patch #100 - 1999/5/3 - XFree86 3.9Pl

Patch #99 - 1999/5/2 - XFree86 3.9Pk

Patch #98 - 1999/4/26 - XFree86 3.9Pk

Patch #97 - 1999/4/25 - XFree86 3.9Pk

Patch #96 - 1999/4/19 - XFree86 3.9Pj

Patch #95 - 1999/4/5 - XFree86 3.9Ph

Patch #94 - 1999/3/27 - XFree86 3.9Pf

Patch #93 - 1999/3/14 - XFree86 3.9Pd

Here are several fixes and minor enhancements. The chief ones are the fixes for NumLock mode and reverse video, since we had become used to working around the problems.

Patch #92 - 1999/2/5 - XFree86 3.9Nz

Patch #91 - 1999/1/21 - XFree86 3.9Nw

Patch #90 - 1998/12/13 - XFree86 3.9Nq

This implements several small fixes and enhancements. The chief one implements fallback support for line drawing characters with fonts that do not include those characters. But I implemented that last.

Patch #89 - 1998/11/20 - XFree86 3.9Nm

This patch completes the implementation of double-sized character support for the VT100 emulation, and fixes a few minor bugs:

I tested the double-sized characters using vttest and the xfsft patch. These fonts worked reasonably well:

        -bitstream-courier-medium-r-normal--0-0-0-0-m-0-iso8859-1
        9x15

The iso8859 font does not include box characters, of course, but looks good.

Patch #88 - 1998/10/31 - XFree86 3.9Nk and 3.3.2h

This refines my patch #85 by checking for a case where the font server returns a bold font that does not quite correspond to the normal font. When I asked for a bold version of the 6x12 font, the font server returned a near equivalent where the ascent and descent values did not match, causing xterm to leave lines across the display. This patch makes xterm reject that type of mismatch, falling back to the old font behavior.

Patch #87 - 1998/10/21 - XFree86 3.9Nj and 3.3.2f

This corrects a problem reported by Stefan Dalibor. My table entries for the printerExtent and printerFormFeed resources used the wrong types for sizeof, causing the printer to not work properly on some platforms because the printAttributes resource was overwritten (e.g., Digital Unix with DEC Alpha).

I reviewed all of the resource table entries and fixed a potential problem with resizeGravity, which was typed as int rather than XtGravity.

Patch #86 - 1998/10/14 - XFree86 3.9Nj and 3.3.2e

A small fix: when switching to/from the continuous mouse reporting mode, the event mask was incorrect if xterm was built under X11R5 because the original data was saved under an ifdef for active-icon.

Patch #85 - 1998/10/12 - XFree86 3.9Nj and 3.3.2e

Some cleanup (I noticed the pixel droppings a few months ago after getting a new 17" monitor):

Patch #84 - 1998/10/9 - XFree86 3.9Ni and 3.3.2e

Several small fixes and enhancements, including a patch from Bjorn Helgaas:

as well as

Resync #83 - 1998/10/7 - XFree86 3.3.2e

Merge changes through patch #83 with the 3.3.2e version.

This follows a change from XFree86 CVS which adds checks for non-null return from malloc (patch by Matthieu Herrb).

Patch #83 - 1998/8/25 - XFree86 3.9Nb

Several small fixes and enhancements:

From resync with XFree86 3.9Nb:

Patch #82 - 1998/7/15 - XFree86 3.9Aj

Bug fix for patch #81:

Patch #81 - 1998/7/14 - XFree86 3.9Aj

More bug fixes:

From resync with XFree86 3.9Aj:

Patch #80 - 1998/6/29 - XFree86 3.9Ai

This fixes a couple of items leftover or introduced by patch 79:

Patch #79 - 1998/6/28 - XFree86 3.9Ai

This patch fixes several small bugs:

Patch #78 - 1998/6/3 - XFree86 3.9Ah and 3.3.2

Again, most of the bulk of this patch is for ANSI conversion. I used the IRIX compiler's -wlint option to find the remaining functions that use K&R syntax (since gcc does not do this properly). Also, I changed the logic in the print code slightly to close unwanted files before opening a pipe to the printer. This may help in some configurations where the line printer hangs until xterm closes the pipe.

Patch #77 - 1998/5/26 - XFree86 3.9Ah and 3.3.2

Most of the bulk of this patch is to convert the extended C (K&R functions with prototypes) to ANSI. I verified that on Linux by comparing object files, to ensure that I did not, for example, interchange parameters in the function declarations.

The rest of the patch fixes several minor bugs, and adds a few features:

Patch #76 - 1998/5/8 - XFree86 3.9Ah and 3.3.2

A fix for the print-window function, and some minor cleanup:

Patch #75 - 1998/5/7 - XFree86 3.9Ah and 3.3.2

This incorporates fixes from several people, as well as some improvements that I made based on feedback from users:

Patch #74 - 1998/4/27 - XFree86 3.9Ag and 3.3.2

This corrects a couple of recent bugs and adds a new resource:

Patch #73 - 1998/4/25 - XFree86 3.9Ag and 3.3.2

This patch does the following:

Patch #72 - 1998/4/17 - XFree86 3.9Ag and 3.3.2

This is a patch from Chris Siebenmann <cks@hawkwind.utcs.toronto.edu>, which I have cleaned up a little, and integrated into the configure script.

From his description:

This set of patches is the latest incarnation of patches originally written by Ian! D Allen, then of the University of Waterloo and now of who knows where; I have been carrying them forward from xterm to xterm ever since about X11R4. What they do is add an option so that when an iconified xterm receives output it prepends '*** ' to its icon title and (optionally) beeps the bell; deiconifying the xterm removes the '*** '. Over the years I've found this to be incredibly convenient for monitoring all sorts of low-activity things.

Patch #71 - 1998/4/12 - XFree86 3.9Ag and 3.3.2

This patch is a slightly modified version of one by Richard Braakman, which prevents buffer overflow in the input-method and preedit-type parsing in xterm. I changed a couple of details to make the code more maintainable, and looked for similar things - copying into a fixed-size buffer (found none, though I did spot an unused variable).

Patch #70 - 1998/3/29 - XFree86 3.9Af and 3.3.2

This patch corrects some minor bugs in xterm, and fills in some more details in the VT220 emulation:

Patch #69 - 1998/3/16 - XFree86 3.9Ad and 3.3.2

This corrects the problem in xterm with utmp, reported by Olivier Calle <olivier@tc.fluke.com> as well as some other people after the XFree86 3.3.2 release.

The error was introduced by my patch #53 in XFree86 3.9r (October 1997).

The correction removes the reset of setuid/setgid before the main event loop, and solves the problem which I had worked around in a different manner: for some reason, the particular waitpid() call in creat_as() hangs, does not return when the child process exits. I changed the ifdef's to force the Linux configuration to use wait() instead. This call appears to work properly on other platforms such as SunOS and Solaris.

I also added tests in the standalone configure script to check for the existence of waitpid().

Patch #68 - 1998/3/4 - XFree86 3.9Ad and 3.3.1z

This corrects another problem with the logic for highlightColor resource. As reported by David Dawes:

I've just noticed a problem with with the "inverse" control sequence (ESC[7m) with the 3.3.2 xterm. What it does is sets the background black, and the text the usual foreground colour rather than simply swapping the foreground/background.

This appears to be because when I added logic to check that the highlightColor was distinct from foreground and background colors, I did not add a further check to see that it was not black (I would make an explicit check for the resource not being set, but see nothing definite in the headers that would let me reference an explicitly-undefined Pixel value, though there are some implications in xpm.h). But this should work.

Patch #67 - 1998/2/23 - XFree86 3.9Ad and 3.3.1e

This patch does the following:

Patch #66 - 1998/2/16 - XFree86 3.9Ad and 3.3.1d

This fixes the problem reported with failure to build the resize program (BSDI, OSF/1) due to not having <termcap.h>, by changing the ifdef to one that would be set only if the file exists (not currently specified, except by the standalone configure script). We do not really need to include <termcap.h> to build, but only for a clean compile, since it may declare the tgetent() prototype. I also updated the man-page for resize, since I had recently noticed that it can be used to resize xterm using the "Sun" control sequences option.

Patch #65 - 1998/2/14 - XFree86 3.9Ad and 3.3.1c

This is a small patch to xterm's 8-bit terminal description. I noticed while testing ncurses that I had specified the wrong (VT100-style) codes for the F1-F4. Xterm only uses VT220-style function keys in 8-bit mode.

Patch #64 - 1998/2/8 - XFree86 3.9Ad

This fixes the following problems with xterm:

Patch #63 - 1998/2/5 - XFree86 3.9Ad

This is another patch from Bjorn Helgaas <helgaas@rsn.hp.com>, which I've reviewed (and learned some). Following are his notes:

I poked around some more and finally got xterm-62 to build and run cleanly on HP-UX 10.20. Here are the patches. They look sort of ugly, so here's a little explanation:

The problem on HP-UX was that we were linking with -lcurses rather than -ltermcap due to the second bullet above, and apparently something in HP-UX curses is broken. This seems very strange, because the only thing used is tgetent, which should affect any tty/pty configuration, but I lost interest in tracking down the exact problem.

Patch #62 - 1998/1/23 - XFree86 3.9Ac

This is a patch mostly by Bjorn Helgaas <helgaas@dhc.net> (I added the os2main.c change, and a little of the documentation). From Bjorn's description:

Patch #61 - 1998/1/17 - XFree86 3.9Ac

This patch modifies the reset behavior of xterm slightly:

Patch #60 - 1998/1/10 - XFree86 3.9Ab

This fixes some minor bugs and adds new functionality:

Patch #59 - 1998/1/5 - XFree86 3.9Ab

My last patch has an off-by-one error in the comparison for argc. Douglas Kosovic <douglask@dstc.edu.au> showed me where (he got a core dump). Also, I think this explains Clint Olsen's problem, but the symptoms were more subtle (EINVAL for a system call if the -display option is omitted).

Patch #58 - 1998/1/3 - XFree86 3.9Ab

This patch does the following:

Patch #57 - 1997/12/26 - XFree86 3.9Aa

This patch is mostly concerned with the standalone configure script; a few minor corrections are added:

Patch #56 - 1997/11/28 - XFree86 3.9x

This patch is based on analysis by Arfst Ludwig <arfst@luxor.IN-Berlin.DE>, who reported:

Setting the following resources xterm (all current versions) receives a segmentation fault on <Btn2Up> after scrolling:

          *XTerm*VT100*translations:    #override \
              ~Shift~Ctrl<Btn2Up>: insert-selection(PRIMARY, CUT_BUFFER0)\n\
              Shift~Ctrl<Btn2Up>:  insert-selection(CLIPBOARD, CUT_BUFFER1)\n\
              ~Shift<BtnUp>:       select-end(PRIMARY, CUT_BUFFER0)\n\
              Shift<BtnUp>:        select-end(CLIPBOARD, CUT_BUFFER1)

(The above resources intention is to be able to paste the latest selection even if the xterm was cleared.)

And here is how it works (and a fix!): The widget given to the action handler as first argument is not guaranteed to be a XtermWidget (it can be the ScrollbarWidget). Instead of accessing the widget's member directly XtDisplay gives the required pointer in a safe way.

I noticed that this was not the only instance (by reading the code, and testing with his example), and extended the solution to check the widget-class to ensure that it is indeed xterm's widget class before attempting to use it in the context of translations.

Patch #55 - 1997/11/25 - XFree86 3.9x

This fixes the segmentation violation noted by Rogier Wolff about a month ago. He'd set xterm to 400 (rows) by 150 columns, which broke because there were limited buffers (200 rows) used for juggling data when adding or deleting lines and for switching between alternate and normal screens. I replaced this by an allocated buffer.

The bug is simple to test if you set titeInhibit false.

Patch #54 - 1997/10/17 - XFree86 3.9s

This patch does the following:

Patch #53 - 1997/10/12 - XFree86 3.9r

This patch adds a fix and implements a new feature (as well as some minor typos):

Patch #52 - 1997/9/29 - XFree86 3.9q

This patch addresses bugs and requests reported by

Some of the changes are interrelated (it was an unusually busy week).

Patch #51 - 1997/9/15 - XFree86 3.9p

Most of this patch is related to the standalone configure script, though there are fixes/enhancements as well:

I've tested the configure script on Linux, SunOS 4.1.3, Solaris 2.5.1, IRIX 5.2 and 6.2, AIX 3.2.5 and CLIX 3.1 (all but the last run properly as well).

Patch #50 - 1997/8/22 - XFree86 3.9m

This is a collection of small fixes, and a couple of minor enhancements:

Patch #49 - 1997/8/10 - XFree86 3.9k

This patch implements the VT100/VT220 Media Copy (i.e., print-screen) control sequences.

Patch #48 - 1997/7/26 - XFree86 3.9j

This patch does the following (all but the first affect only the standalone configure script):

Patch #47 - 1997/7/13 - XFree86 3.9i

This patch does the following

Patch #46 - 1997/7/4 - XFree86 3.9h

This is a patch to provide test-support for some work I'm doing on ncurses. It does not modify the normal configuration of xterm; the code is compiled if the standalone configure option "--enable-xmc-glitch" is specified.

Patch #45 - 1997/7/2 - XFree86 3.9h

This fixes the problem reported with xterm's cursor color versus the background (the second chunk in this patch) and also removes some duplicate initialization of the cursor GC's. If the cursor color at startup is the same as the background, then xterm will use the reverse GC, ignoring the setting of the colorMode resource.

Patch #44 - 1997/6/22 - XFree86 3.9g

This implements the first part of the VT100 doublesize characters for xterm, as well as fixing a handful of bugs:

Patch #43 - 1997/6/10 - XFree86 3.9d

Here's a fix for two problems:

Patch #42 - 1997/6/8 - XFree86 3.2Xl

Bram Moolenaar reported that the cursor color changed unexpectedly while scrolling. The cause was that it used the same GC's as the logic that draws the ANSI colors. The bug only appears if the cursorColor resource isn't set, and has been present since the initial implementation early last year. (The same bug also appears in rxvt ;-). Here's a fix.

Patch #41 - 1997/5/28 - XFree86 3.2Xl

Some nits found by Darren Hiebert (missing part of install-rule, incorrect assignment for --enable-color-mode option).

Patch #40 - 1997/5/26 - XFree86 3.2Xl

Patch for the configure script's logic for obtaining imake predefined symbols.

Patch #39 - 1997/5/24 - XFree86 3.2Xl

This patch does the following:

(both changes also modify the configure script)

Patch #38 - 1997/5/22 - XFree86 3.2Xh

This implements a simple configuration script with autoconf (to which I'll add more options later). It does the following:

It does not make tests for the things that imake does (that's another project), instead it uses a hybrid of the autoconf tests for libraries and adds imake's compiler options (which are necessary in some cases to get main.c to compile).

Patch #37 - 1997/5/7 - XFree86 3.9a

This corrects a minor, but annoying error in the vt220 emulation: the DECUDK is only supposed to be interpreted for _shifted_ function keys.

Patch #36 - 1997/1/16 - XFree86 3.2r

This corrects something that I overlooked in patch #27 (21-aug-1996), which is that when trimming the region to be repainted for the highlightSelection resource of xterm, I still have to paint the background past the highlighted region. This only happens when I first do a selection in a window that's partly off-screen, then move the window on-screen.

Patch #35 - 1997/1/7 - XFree86 3.2o

This patch does the following:

Patch #34 - 1997/1/5 - XFree86 3.2o

This patch does the following:

I got the description of DECSTR from a vt420 user's manual. I'll do some testing with vttest to ensure that there's nothing else to do than what was documented.

Patch #33 - 1996/11/24 - XFree86 3.2

This adds to the reset-fix by Matthieu Herrb <Mathieu.Herrb@mipnet.fr> a small change to make xterm able to output 8-bit characters in VT100 mode. Applications that run on real VT100's don't do that anyway, and this feature should be removed sometime after finishing off the VT220 emulation (VT220's can do 8-bit characters). That would be a good time to change the default terminal-id to 220.

Patch #32 - 1996/11/21 - XFree86 3.2

This implements the REP (repeat) control for xterm. That isn't part of the DEC VTxxx series, but is defined in ISO 6429. (Note that the base xterm terminal description is not changed -- I added a variant, "xterm-rep").

Patch #31 - 1996/11/16 - XFree86 3.2

This implements vt52 emulation in xterm (ifdef'd so it can be removed). I've been using it for testing for the past month or so.

Patch #30 - 1996/11/16 - XFree86 3.2

From bug-report by <auroux@clipper.ens.fr> (Denis Auroux), missing reset to ground state. I checked through the rest of that table and found another, in the unimplemented MC (screen print).

Patch #29 - 1996/9/15 - XFree86 3.1.2Gb

This patch does the following:

All of these changes are based on vttest 2.6

(Most of the volume in the patch is to add 2 more state tables for parsing the 2nd/3rd device-attribute controls).

Patch #28 - 1996/8/31 - XFree86 3.1.2F

This patch corrects the following reported by Roland Rosenfeld <roland@spinnaker.rhein.de>:

Roland also complained that he couldn't use box characters with

        -adobe-courier-bold-r-normal--12-120-75-75-m-70-iso8859-1

but that's a known xterm limitation (the box characters must be part of the font, in the first 32 locations).

Patch #27 - 1996/8/21 - XFree86 3.1.2Ek

This patch fixes one of my long-term gripes: xterm's selection doesn't clearly show what's being selected (as per David's request, it's controlled by a resource, which defaults to the older behavior).

Patch #26 - 1996/8/20 - XFree86 3.1.2Ei

Here's a patch to fix a problem with xterm's cut/paste and another to modify the appearance of the highlighting while selecting. (The changes are independent, so you can see if the change to screen.c is desirable).

Patch #25 - 1996/8/18 - XFree86 3.1.2Ei

Here's a correction for two minor bugs that I picked up in testing, plus some lint (from Solaris 2.5) where NULL was used incorrectly:

Patch #24 - 1996/8/11 - XFree86 3.1.2Ee

This patch does several things. In effect, xterm can (I think) do a reasonably good job of emulating vt220 and vt320 terminals (as well as it was doing vt100, at any rate ;-).

It does NOT do:

Anyway, I:

I'll be continuing to test this patch for a while, but don't expect to add any new functionality (it passes all of the current tests I've built in vttest, but I need to make more tests)..

Patch #23 - 1996/7/31 - XFree86 3.1.2Ec

This removes the blinking cursor I added last week (for performance reasons). Time-permitting, I'll revisit this after 3.2 is released (there will be more work after XFree86 3.2, I assume).

Patch #22 - 1996/7/26 - XFree86 3.1.2Ec

I looked more closely at my "double-negative" and realized that I had been confused by the default color scheme (black on white) in combination with reverse video. However, I did see that the original_fg and original_bg data weren't really used - so I removed that logic.

Also:

Patch #21 - 1996/7/24 - XFree86 3.1.2Ec

This patch does the following:

Patch #20 - 1996/7/24 - XFree86 3.1.2Ec

This documents the changes in control sequences for window operations that I added in my previous patch. I'm testing another patch that allows the user to use less memory if colors aren't needed.

Patch #19 - 1996/7/21 - XFree86 3.1.2Ec

This patch does the following:

Patch #18 - 1996/7/18 - XFree86 3.1.2Ec

This implements the following:

Patch #17 - 1996/7/2 - XFree86 3.1.2Eb

This patch implements for xterm several minor features from ISO 6429 which are useful for terminfo applications. The HPA and VPA control sequences allow cursor movement along a row or column, cutting down a little on the characters transmitted. The other codes allow resetting specific graphic rendition attributes without modifying the other attributes. (now if someone just had time to implement blinking cursors...)

Patch #16 - 1996/6/25 - XFree86 3.1.2Ea

Adam Tla/lka <atlka@pg.gda.pl> told me a couple of weeks ago that I'd missed some of the background coloring in xterm. I investigated, and found that while I'd picked up on the clear-to-bottom and clear-to-end-of-line operations, I'd overlooked the insert/delete lines. Just so I wouldn't overlook any more of these, I updated a copy of vttest to test ISO colors and bce (background color erase). This patch introduces a new function, ClearCurBackground, whose calls replace the direct XClearArea calls that I'd overlooked. (There's also a few compiler warnings fixed, etc ;-)

Patch #15 - 1996/5/29 - XFree86 3.1.2E

This fixes the problem reported by David Dawes, by making the 50msec select timeout for the Xaw3d arrow scrollbar a resource. (I made it a boolean for a variety of reasons -- to make it a number, you'd need an additional resource, to avoid breaking the logic).

Patch #14 - 1996/5/12 - XFree86 3.1.2Dj

This patch brings the termcap and terminfo descriptions for xterm up to date. I made the following changes:

Patch #13 - 1996/4/23 - XFree86 3.1.2Df

This corrects my earlier changes for colors - the inner border of the xterm was getting painted with the wrong color, since I'd moved the call to set the background into the logic that tracks SGR information.

Patch #12 - 1996/3/16 - XFree86 3.1.2Dc

This corrects a memory leak in xterm that happens whenever one switches fonts.

Patch #11 - 1996/3/5 - XFree86 3.1.2Db

This patch corrects the behavior of the ANSI colors in xterm when reverse video is used, as well as some other lesser sins:

Patch #10 - 1996/2/14 - XFree86 3.1.2Cd

I observed an occasional glitch in the xterm's color behavior; a clear to end of line would get a color that had been used in a program that supposedly reset colors. I traced this down to the way xterm was modifying colors of GC's on the fly; it didn't restore the original color of the GC, even though it would later be used in functions (such as ClearRight) that assumed (my error) that the GC would have the current foreground or background color.

I fixed this by resetting the GC's colors with a new function 'resetXtermGC()', and direct calls on SGR_Foreground/SGR_Background, as appropriate and using a new function 'updatedXtermGC()' to encapsulate the logic that modifies the GC's color. (I also removed some commented-out code that was trying to do this -- the problem was a little more obscure).

Patch #9 - 1996/2/10 - XFree86 3.1.2Cb

This patch fixes the remaining problems that I had making xterm run with x11r5, as well as a couple of other bugs. It follows my patch from yesterday, that added ifdef's for some of the input-method resources.

Patch #8 - 1996/2/9 - XFree86 3.1.2Cb

This is mostly a documentation patch for xterm. It describes the color control sequences in more detail, and documents some other features of xterm that aren't described elsewhere.

I've also added a couple of ifdef's to fix (part of) the problem that I'm working on (making the program work properly on x11r5, where I'm doing memory testing -- I have a "good" version from mid-January, but my resync version doesn't work properly on x11r5). I'm not done with that yet.

Patch #7 - 1996/1/28 - XFree86 3.1.2n

I did a (clean) build of 3.1.2n on Linux 1.2.13 (ELF). I've got an S3 card.

This fixes the following in the 3.1.2n xterm:

I built this version (with a minor nit that I'll patch soon) on SunOS 4.1.3 so that I can test it some more with Purify.

btw: the changes made in Xpoll.h won't work on some older systems, because fd_set isn't a defined type (I've got one machine at least that this applies to).

Patch #6 - 1996/1/8

This patch does all of the SGR foreground/background fixes (i.e., clearing the screen after an SGR color is set causes that color to be used in the foreground and/or background). If the FG_COLOR and/or BG_COLOR flags aren't set, then the xterm foreground and background default to the window's values. This usage is consistent with various types of hardware (especially the IBM PC), and is also used in rxvt.

Patch #5 - 1996/1/7

This patch modifies the object code, by replacing indexing expressions with temporary variables with the full indexing expression. At first glance, this seems inefficient (it did to me ;-), until remembering comments made in the compilers newsgroups that trying to "help" the compiler doesn't really work that well. A good optimizing compiler can do a better job than the programmer can. (There's a moral in the use of 'register' variables also, but I won't fix those...).

Anyway, the revised code generates a smaller object...

Patch #4 - 1996/1/7

When setting up for this phase, I saw that you'd corrected the bug that I found in ClearLeft. I decided to make this series of patches anyway, since readability never hurt (and there's the potential for finding another bug while reviewing this set).

Patch #3 - 1996/1/7

This is my third (and final cleanup) patch for xterm. It gets rid of the unused stuff, and converts several functions to static (thereby reducing their scope).

At this point, the only compile warnings I've got (on Linux) are those about the select arguments (int vs fd_set type), and a missing declaration for waitpid. Those both are hard to get right without autoconfigure.

The next patches will address the functional changes...

Patch #2 - 1996/1/7

This is my second patch to xterm. It corrects most of the gcc warnings (except for some that are due to X header files ;-). I compared objects to keep track of the changes that don't affect the object code (n/c) versus those that do.

At this point, I'm compiling (fairly) clean with gcc options

        -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wnested-externs

(I also compiled with -Wshadow, but while that found some things that I wanted to find, there's far too many warnings from the X headers to be usable in this context).

The changes:

Patch #1 - 1996/1/6

This is my first cleanup patch for xterm. It addresses all of the gcc warnings for -Wall, -Wmissing-prototypes and -Wstrict-prototypes that I can change without modifying the object code. (I'm compiling this with gcc 2.7.0 for an aout target, which makes it simple to compare objects. When I do ELF-only, I've got a tool that compares that sort of thing as well).

Briefly, this patch adds (and uses) two header files in the xterm directory:

        proto.h
        xterm.h

I expect this to be the biggest patch by far. However (barring a misplaced prototype), it shouldn't break anything, since the intent of the patch is to provide missing declarations.