TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: all
from: Dan Charrois 70721,1506
date: 1990-08-13 23:58:48
subject: #_gs_opt

#: 6113 S3/Languages
    13-Aug-90  23:58:48
Sb: #_gs_opt
Fm: Dan Charrois 70721,1506
To: all

I seem to have a peculiar problem.  Maybe those knowing a bit about C, or
perhaps the more inner workings of OS9 may be able to help me out.
  If I have the following code: #include  main()
 {
  struct sgbuf *p,*q;
  _gs_opt(0,&p);
  _ss_opt(0,&p);
  chain("Shell",strlen("\n"),"\n",1,1,0);
 }

and then compile it and execute redirecting to another window, I get a shell in
the window that dies when I send it an eof - no problems here.
  But if I put:
  _gs_opt(0,&q);
  directly after the _gs_opt(0,&p) line (i.e. execute _gs_opt twice), I get a
shell in another window, but I can't type anything in it.  It's not just that I
lost an echo - nothing works, and I have a window with a stuck shell - I can't
kill the window because the shell keeps waiting for a signal or something - I'm
not sure...
  Anyway, shouldn't the two code fragments give me the same result? What
difference does it make if I call _gs_opt twice?
  Any help would be greatly appreciated...Dan
 P.S.  Oh yes - in the second case, before I get the shell prompt (I'm using
shell+), I get a few seemingly random foreign language characters... I'm really
stuck on this one..
      Thanks again

There are 3 Replies.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.