Groups | Search | Server Info | Login | Register
Groups > comp.emulators.apple2 > #3899
| Date | 2024-01-26 15:52 -0600 |
|---|---|
| From | Hugh Hood <hughhood@earthlink.net> |
| Subject | Re: KEGS Fun -- ProTERM & Spectrum to Windows Command Line Console |
| Newsgroups | comp.emulators.apple2 |
| References | <SrudnYKgUcnMTBX4nZ2dnZfqnPednZ2d@earthlink.com> |
| Message-ID | <SLWdnd4cwNgbtCn4nZ2dnZfqn_SdnZ2d@earthlink.com> (permalink) |
For completeness I'll leave this here --
Previously I had detailed a method of using ProTERM 3.1 and/or Spectrum
when running under Kent's KEGS to access the Windows 10 command prompt
from within the emulated IIgs environment.
That method continues to work.
But, as I am more of a unix bash shell guy (from years with Mac OS X), I
didn't find it very useful.
So, I installed Cygwin64 and its bash shell on my Windows machine. Using
the same setup I detailed before, with only one change to Script #2
below, I now am able to access a bash shell running on the Windows
machine from within the emulated IIgs using ProTERM 3.1 and/or Spectrum.
In Script #2 below, change
C:\Windows\System32\cmd.exe
to
C:\cygwin64\bin\bash --login
You may wish to modify your .bash_profile file in cygwin64 to change the
TERM variable to vt100 and also change your startup directory, but other
than that, it's ready to go.
I realize that most will find this a novelty. But, I use some unix
utilities that will accept standard input to do print file conversions,
usually from HP pcl generated by AppleWorks to .pdf format.
By having the emulated Apple II (either by script or macro) login to the
bash shell first, sending the appropriate unix command (ie - pcl2pdf)
and then by 'printing' to the shell (using Kent's Remote IP feature for
redirecting serial port output) this all works very well.
And, while I haven't yet tried it, I suspect GS/OS desktop applications
using the Direct Connect PostScript Driver could use the unix command
'ps2pdf' directly to generate .pdf files from documents 'printed' from
those desktop applications. (I know Sheppy's SweetPrinter does something
similar, too).
{BTW, those two utilities (pcl2pdf and ps2pdf) are part of the
GhostScript GhostPDL package}.
Enough, already.
Hugh Hood
>
> Script #1 is basically just one line:
>
> ************************************************************************
>
> socat.exe TCP4-LISTEN:7778,fork
> EXEC:"C\:\/Users\/yourusername\/Desktop\/userandpwprompt.bat",pty,setsid,setpgid,stderr
>
> ************************************************************************
>
> For example purposes, I left in the path to Script #2 just to show you
> how socat requires the ":" and "\" in Windows pathnames to be escaped.
> And yes, the Windows slashes are reversed, but that is what works with
> socat.
>
> Script #2 (which I called 'userandpwprompt') is several lines:
>
> ************************************************************************
>
> @Echo Off
>
> :Top
> @set INPUT=
> @set /P INPUT="Username: "%=%
> @if /i NOT "%INPUT%" == "yourname@yourdomain.com" cls & timeout /t 0
> /nobreak & goto Top
> @set INPUTPW=
> @set /P INPUTPW="Password: "%=%
> @if /i NOT "%INPUTPW%" == "yourpassword" cls & timeout /t 0 /nobreak &
> goto Top
> @cls
> C:\Windows\System32\cmd.exe
>
> ************************************************************************
Back to comp.emulators.apple2 | Previous | Next — Previous in thread | Next in thread | Find similar
KEGS Fun -- ProTERM & Spectrum to Windows Command Line Console Hugh Hood <hughhood@earthlink.net> - 2023-12-24 18:48 -0600
Re: KEGS Fun -- ProTERM & Spectrum to Windows Command Line Console Speccie <someone@somewhere.com> - 2023-12-25 08:40 +0000
Re: KEGS Fun -- ProTERM & Spectrum to Windows Command Line Console Hugh Hood <hughhood@earthlink.net> - 2023-12-26 11:28 -0600
Re: KEGS Fun -- ProTERM & Spectrum to Windows Command Line Console Speccie <someone@somewhere.com> - 2023-12-27 07:59 +0000
Re: KEGS Fun -- ProTERM & Spectrum to Windows Command Line Console Speccie <someone@somewhere.com> - 2023-12-27 09:56 +0000
Re: KEGS Fun -- ProTERM & Spectrum to Windows Command Line Console Hugh Hood <hughhood@earthlink.net> - 2023-12-27 21:16 -0600
Re: KEGS Fun -- ProTERM & Spectrum to Windows Command Line Console Speccie <someone@somewhere.com> - 2023-12-28 08:14 +0000
Re: KEGS Fun -- ProTERM & Spectrum to Windows Command Line Console Hugh Hood <hughhood@earthlink.net> - 2024-01-26 15:52 -0600
Re: KEGS Fun -- ProTERM & Spectrum to Windows Command Line Console Hugh Hood <hughhood@earthlink.net> - 2024-02-10 14:32 -0600
csiph-web