Article View: comp.os.os2.programmer
Article #252Re: Unix, X-Windows like command shell
From: Larry Salomon Jr.
Date: Wed, 05 Aug 1992 03:31
Date: Wed, 05 Aug 1992 03:31
55 lines
2958 bytes
2958 bytes
In <93@slpfs1.UUCP> jct@slpfs1.UUCP (Jeffrey C. Tolmie) writes: >Hello all, > Can someone tell me why a OS/2 command window has to use fonts >from the display.dll? Why isn't it possible to have a command interpreter >that is a normal PM window where I can set scroll bars, 'infinite' buffer >length, CTRL-INSERT SHFT_INSERT for cut paste etc etc etc. Is it something >to do with how OS/2 commands are implemented. Get the Hamilton C Shell, a great OS/2 version of the Unix C Shell, which I highly recommend. > The reason for the question, coming from the UNIX, X-Windows world, I >would like a decent command shell for compiling etc. It should be possible >to use printf to write a trace to this shell while a PM application is >running. Currently, the OS/2 window dissapears when you start a PM >application from a command prompt, and no output to stdio is recognised. If you redirect - either to a file or a pipe - stdout, you can view it later. I chose the latter, and wrote a program called PIPES which reads from stdin and writes to a named pipe which is specified on the command line. Conversely, running PIPES in read mode reads from the pipe and echos to stdout. Thus, you can have two sessions, each one running the following commands: MYPMAPP | PIPES -w -p \PIPE\DEBUG and PIPES -r -p \PIPE\DEBUG ...and all printf's, puts's, etc. will show up on the second screen. Unfortunately, upload for me is still not working (I absolutely *have* to look into a solution for this), so I cannot make PIPES available (yet). However, it is a rather trivial program, so you could probably write it yourself. I am strongly considering making it the subject of an article to OS/2 Monthly Magazine (you like, Bert?). More on that later... Cheers, Q >Thanks in advance. >......................................................................... > Jeff Tolmie email: jct@rcp.sel.de > _____ ______ ALCATEL-SEL Research Center. Ph : +49 7231 71041 > / __ / P.O. Box 1760. Fax : +49 7231 71045 > / / / 7530 Pforzheim. >\_/./__./.........GERMANY................................................ -- ----------------------------------------------------------------------- "If you still choose not to decide, | "My other account is in the you still have made a choice" - Rush | shop" - me -----------------------------------------------------------------------
Technical Details
Message-ID:
<1992Aug5.033157.4839@panix.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!cmcl2!panix!os2manReferences:
<93@slpfs1.UUCP>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!cmcl2!panix!os2man From: os2man@panix.com (Larry Salomon Jr.) Subject: Re: Unix, X-Windows like command shell Message-ID: <1992Aug5.033157.4839@panix.com> Date: Wed, 5 Aug 1992 03:31:57 GMT References: <93@slpfs1.UUCP> Organization: PANIX Public Access Unix, NYC Keywords: shell windows command os2 Lines: 55