mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
remove OSF1 support
This commit is contained in:
parent
3c1736f077
commit
164e695cd0
325 changed files with 290 additions and 9980 deletions
|
|
@ -1,44 +0,0 @@
|
|||
XCOMM $XConsortium: Imakefile /main/8 1996/10/09 14:09:53 drk $
|
||||
PROGRAMS = decmode
|
||||
|
||||
INCLUDES = -I. -I$(DTINCLUDESRC)
|
||||
LOCAL_INCLUDES = -I../shared -I$(TOP)/lib/
|
||||
SYS_LIBRARIES = -lm
|
||||
|
||||
|
||||
EXTRA_DEFINES = -DLOG -DSYNLIB
|
||||
|
||||
#if defined(ApolloArchitecture)
|
||||
EXTRA_DEFINES = -Dapollo -D_CMDINV
|
||||
#if defined(SHLIB)
|
||||
LOCAL_LIBRARIES = -A inlib,$(XLIB)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(SunArchitecture)
|
||||
SYS_LIBRARIES = -lm -ldl -lgen -lC
|
||||
SYNLIB=$(TOP)/lib/synlib/libsynlibTst.a
|
||||
XTST=/usr/openwin/lib/libXtst.a
|
||||
#endif
|
||||
|
||||
LOCAL_LIBRARIES = ../shared/libtermtest.a $(SYNLIB) $(XTST) $(XEXT) $(XLIB)
|
||||
|
||||
SRCS = decmode.c
|
||||
|
||||
OBJS = decmode.o
|
||||
|
||||
NormalLibraryObjectRule()
|
||||
ComplexProgramTarget($(PROGRAMS))
|
||||
|
||||
saber_src: $(SRCS)
|
||||
XCOMM setopt load_flags $(CFLAGS)
|
||||
XCOMM load $(SRCS) $(LOCAL_LIBRARIES)
|
||||
|
||||
unsaber_src:
|
||||
XCOMM unload $(SRCS)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
/* $XConsortium: README /main/2 1996/07/15 14:26:42 drk $ */
|
||||
TestName: decmode
|
||||
|
||||
Description: This program tests the DECMODE functionality of dtterm.
|
||||
The following escape sequences are tested
|
||||
|
||||
|
||||
"\033[%d;%dr"
|
||||
"\033[?1h"
|
||||
"\033[?3h"
|
||||
"\033[?4h"
|
||||
"\033[?5h"
|
||||
"\033[?6h"
|
||||
"\033[?7h"
|
||||
"\033[?44h"
|
||||
"\033[?45h"
|
||||
"\033[?46h"
|
||||
"\033[?1l"
|
||||
"\033[?3l"
|
||||
"\033[?4l"
|
||||
"\033[?5l"
|
||||
"\033[?6l"
|
||||
"\033[?7l"
|
||||
"\033[?44l"
|
||||
"\033[?45l"
|
||||
"\033[?46l"
|
||||
"\033[?1s"
|
||||
"\033[?3s"
|
||||
"\033[?4s"
|
||||
"\033[?5s"
|
||||
"\033[?6s"
|
||||
"\033[?7s"
|
||||
"\033[?44s"
|
||||
"\033[?45s"
|
||||
"\033[?46s"
|
||||
"\033[?1r"
|
||||
"\033[?3r"
|
||||
"\033[?4r"
|
||||
"\033[?5r"
|
||||
"\033[?6r"
|
||||
"\033[?7r"
|
||||
"\033[?44r"
|
||||
"\033[?45r"
|
||||
"\033[?46r"
|
||||
|
||||
and recordes or compares the image. the result of the test
|
||||
is logged in file term.log
|
||||
|
||||
How to run: invoke dtterm and run the program with any of the following
|
||||
option
|
||||
|
||||
commandline: -o dtterm.object
|
||||
-o dtterm.object -r -save (for recording)
|
||||
-o dtterm.object -compare -save (for comparing)
|
||||
|
||||
|
||||
|
|
@ -1,228 +0,0 @@
|
|||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: decmode.c /main/3 1995/10/31 11:56:41 rswiston $ */
|
||||
#include <stdio.h>
|
||||
#include "synvar.h"
|
||||
#include "common.h"
|
||||
|
||||
#ifdef LOG
|
||||
FILE *TermLog;
|
||||
#define SAVELOG fclose(TermLog); TermLog = fopen("term.log", "a");
|
||||
#endif
|
||||
|
||||
char LogStr[200];
|
||||
|
||||
void FillScrLnNumbers(Lines, Cols)
|
||||
int Lines, Cols;
|
||||
{
|
||||
int i, j;
|
||||
char Str[10];
|
||||
HomeUp(); ClearScreen();
|
||||
for (i=0; i < Lines; i++) {
|
||||
sprintf(Str, "%x", (i % 15) +1);
|
||||
for (j=0; j < Cols; j++) WRITETEST(Str);
|
||||
}
|
||||
}
|
||||
|
||||
void TestScrollRegn(Lines, Cols, ScrollTop, ScrollBottom, WinName, ImageFile)
|
||||
int Lines, Cols, ScrollTop, ScrollBottom;
|
||||
char *WinName, *ImageFile;
|
||||
{
|
||||
char Str[IMAGE_FILE_LEN];
|
||||
ClearScreen();
|
||||
SetScrollRegn(ScrollTop, ScrollBottom);
|
||||
SetOriginMode(DECModeSet); /* To Origin Mode */
|
||||
FillScrLnNumbers(Lines, Cols);
|
||||
FLUSHTEST();
|
||||
HomeUp();
|
||||
#ifdef SYNLIB
|
||||
sprintf(Str, "%sA", ImageFile);
|
||||
MatchWindows(WinName, Str);
|
||||
#endif
|
||||
SetOriginMode(DECModeSave); /* Save the mode set (Origin Mode) */
|
||||
SetOriginMode(DECModeReset); /* Set the mode to cursor mode */
|
||||
ClearScreen();
|
||||
FillScrLnNumbers(Lines, Cols);
|
||||
FLUSHTEST();
|
||||
HomeUp();
|
||||
#ifdef SYNLIB
|
||||
sprintf(Str, "%sB", ImageFile);
|
||||
MatchWindows(WinName, Str);
|
||||
#endif
|
||||
ClearScreen();
|
||||
SetOriginMode(DECModeRestore); /* Restore the saved mode (Origin Mode)*/
|
||||
FillScrLnNumbers(Lines, Cols);
|
||||
FLUSHTEST();
|
||||
HomeUp();
|
||||
#ifdef SYNLIB
|
||||
sprintf(Str, "%sC", ImageFile);
|
||||
MatchWindows(WinName, Str);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void TestReverseWrap(Lines, Cols, WinName, ImageFile)
|
||||
int Lines, Cols;
|
||||
char *WinName, *ImageFile;
|
||||
{
|
||||
char Str[IMAGE_FILE_LEN];
|
||||
SetScrollRegn(1, Lines);
|
||||
SetOriginMode(DECModeReset);
|
||||
SetWrapMode(DECModeSet);
|
||||
SetWrapMode(DECModeSave);
|
||||
FillScrLnNumbers(Lines, Cols);
|
||||
FLUSHTEST();
|
||||
HomeUp();
|
||||
SetReverseWrap(DECModeSet);
|
||||
SetReverseWrap(DECModeSave);
|
||||
CursorBack((Lines*Cols) / 2);
|
||||
InsertBlanks(Cols);
|
||||
#ifdef SYNLIB
|
||||
sprintf(Str, "%sA", ImageFile);
|
||||
MatchWindows(WinName, Str);
|
||||
#endif
|
||||
SetReverseWrap(DECModeReset);
|
||||
SetWrapMode(DECModeReset);
|
||||
CursorForward(Cols*Lines);
|
||||
CursorBack((Lines*Cols));
|
||||
sleep(10);
|
||||
#ifdef SYNLIB
|
||||
sprintf(Str, "%sB", ImageFile);
|
||||
MatchWindows(WinName, Str);
|
||||
#endif
|
||||
SetWrapMode(DECModeRestore);
|
||||
FillScrLnNumbers(Lines, Cols);
|
||||
FLUSHTEST();
|
||||
HomeUp();
|
||||
SetReverseWrap(DECModeRestore);
|
||||
BackSpace(((Lines*Cols) / 2) + 1);
|
||||
InsertBlanks(Cols);
|
||||
#ifdef SYNLIB
|
||||
sprintf(Str, "%sC", ImageFile);
|
||||
MatchWindows(WinName, Str);
|
||||
#endif
|
||||
}
|
||||
|
||||
void TestReverseVideo(Lines, Cols, WinName, ImageFile)
|
||||
int Lines, Cols;
|
||||
char *WinName, *ImageFile;
|
||||
{
|
||||
char Str[IMAGE_FILE_LEN];
|
||||
SetOriginMode(DECModeReset);
|
||||
SetWrapMode(DECModeSet);
|
||||
FillScrLnNumbers(Lines, Cols);
|
||||
SetVideoType(DECModeSet);
|
||||
SetVideoType(DECModeSave);
|
||||
#ifdef SYNLIB
|
||||
sprintf(Str, "%sA", ImageFile);
|
||||
MatchWindows(WinName, Str);
|
||||
#endif
|
||||
SetVideoType(DECModeReset);
|
||||
FillScrLnNumbers(Lines, Cols);
|
||||
#ifdef SYNLIB
|
||||
sprintf(Str, "%sB", ImageFile);
|
||||
MatchWindows(WinName, Str);
|
||||
#endif
|
||||
SetVideoType(DECModeRestore);
|
||||
FillScrLnNumbers(Lines, Cols);
|
||||
#ifdef SYNLIB
|
||||
sprintf(Str, "%sC", ImageFile);
|
||||
MatchWindows(WinName, Str);
|
||||
#endif
|
||||
SetVideoType(DECModeReset);
|
||||
}
|
||||
|
||||
void WriteTwiceCols(Cols)
|
||||
int Cols;
|
||||
{
|
||||
int i;
|
||||
for (i=0; i < (2*Cols); i++)
|
||||
if (i <= Cols) WRITETEST("a");
|
||||
else WRITETEST("b");
|
||||
}
|
||||
|
||||
void TestDECMode(WinName)
|
||||
char *WinName;
|
||||
{
|
||||
int Lines, Cols, GotX, GotY;
|
||||
char Str1[IMAGE_FILE_LEN], Str2[IMAGE_FILE_LEN];
|
||||
|
||||
START(1, 0, 0, 0,0);
|
||||
if (CheckTermStatus() == -1)
|
||||
{printf("terminal emulator malfunctioning\n"); exit(-1);}
|
||||
ClearScreen();
|
||||
GetWinSize(&Lines, &Cols);
|
||||
#ifdef DEBUG
|
||||
fprintf(TermLog, "WINDOW Size Cols: %d Lines: %d \n", Cols, Lines);
|
||||
SAVELOG;
|
||||
#endif
|
||||
sprintf(Str1, "%sdecmode1", IMAGE_DIR);
|
||||
TestScrollRegn(Lines, Cols, 5, 15, WinName, Str1);
|
||||
sprintf(Str1, "%sdecmode2", IMAGE_DIR);
|
||||
TestScrollRegn(Lines, Cols, 3, 23, WinName, Str1);
|
||||
SetWrapMode(DECModeReset);
|
||||
ClearScreen();
|
||||
WriteTwiceCols(Cols);
|
||||
GetCursorPosn(&GotX, &GotY);
|
||||
if (GotX != Cols) LogError("WrapMode Off failed");
|
||||
else LogError("WrapMode Off Success");
|
||||
NextLine();
|
||||
WriteTwiceCols(Cols);
|
||||
GetCursorPosn(&GotX, &GotY);
|
||||
if (GotX != Cols) LogError("WrapMode Off failed");
|
||||
else LogError("WrapMode Off Success");
|
||||
sprintf(Str1, "%sdecmode3", IMAGE_DIR);
|
||||
TestReverseWrap(Lines, Cols, WinName, Str1);
|
||||
sprintf(Str1, "%sdecmode4", IMAGE_DIR);
|
||||
TestReverseVideo(Lines, Cols, WinName, Str1);
|
||||
DONE();
|
||||
}
|
||||
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
|
||||
#ifdef LOG
|
||||
if ((TermLog = fopen("term.log", "a")) == NULL) {
|
||||
if ((TermLog = fopen("term.log", "w")) == NULL)
|
||||
{printf("Logfile could not be opened \n"); exit(-1);}
|
||||
}
|
||||
fprintf(TermLog, "**************************************************\n");
|
||||
LogTime();
|
||||
fprintf(TermLog, "TestName: <%s> STARTS\n", argv[0]);
|
||||
#endif
|
||||
#ifdef SYNLIB
|
||||
InitTest(argc, argv);
|
||||
AssignWinName("TermWin", TERM_EMU);
|
||||
#endif
|
||||
TestDECMode("TermWin");
|
||||
#ifdef SYNLIB
|
||||
CloseTest(False);
|
||||
#endif
|
||||
#ifdef LOG
|
||||
fprintf(TermLog, "TestName: <%s> ENDS\n", argv[0]);
|
||||
fclose(TermLog);
|
||||
#endif
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue