home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!corton!cenaath.cena.dgac.fr!stna.dgac.fr!quinton
- From: quinton@stna.dgac.fr (Marc Quinton STNA 7SU p8046 BD24)
- Newsgroups: comp.windows.x.motif
- Subject: available : Motif terminal widget Term.
- Keywords: Motif, terminal, widget
- Message-ID: <1992Aug18.085245.10255@cenaath.cena.dgac.fr>
- Date: 18 Aug 92 08:52:45 GMT
- Sender: news@cenaath.cena.dgac.fr
- Organization: STNA 95 rue Henri Rochefort 91025 Evry Cedex 33(1)60.79.80.00
- Lines: 48
-
-
- You can find a sample implementation of a terminal widget for Motif at
-
- ftp.stna7.stna.dgac.fr file pub/Term-1.0.tar.Z
-
- This Motif version is derived from CTW Widget from P. D. Fox. This is a color widget
- with vt100 emulation.
-
- Here is an exemple of Term widget :
-
- main(argc,argv)
- int argc;
- char **argv;
- {
-
- Widget top, term;
-
- top = XtInitialize("main","Term",NULL,0,&argc,argv);
-
- /* create the terminal widget */
- term = XtVaCreateManagedWidget("Term",
- termWidgetClass, top,
- XmNrows, 25,
- XmNcolumns, 80,
- XmNcommand, "csh"
- NULL);
-
- /* handle signal when sub shell is done */
- XtAddSignalHandler(SIGCHLD, child_handler, term);
-
- /* handle signal applied to this process */
- XtAddSignalHandler(SIGINT , int_handler, term);
- XtAddSignalHandler(SIGTERM , int_handler, term);
- XtAddSignalHandler(SIGHUP , int_handler, term);
-
- XtRealizeWidget(top);
- XtMainLoop();
- } /* End main */
-
- --
- _____________________________________________________________________________
- | ___ ___ | | |
- | /__ \ / __\ | QUINTON Marc | Technical Department of Civil Aviation |
- | __\ \/ / |__________________|_________________________________________|
- | / __ | _ | | |
- | \ \_\ \_// | Evry France | e_mail : quinton@stna7.stna.dgac.fr |
- | \___/\___/ | | |
- -----------------------------------------------------------------------------
-