TP7 in Windows95 50-line DOS session

I am using Windows 95 with ANSI.SYS.

In DOS mode or a DOS shell I issue Mode CO80,50 to put the display
in 50-line mode.  Turbo Pascal is also set up to use 50-line mode.
However, if the cursor is on a line in the bottom-half screen when
the Turbo Pascal IDE starts, then when TP exits or switches to the
output screen, the cursor is not correctly restored, but moved up to
line 25.

This was not a problem with DOS 4 and Windows 3.1 (using the "/L"
switch on ANSI.SYS).

Has anyone else experienced this?  Does anyone know a fix?

     - Rich