home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / apps / 1735 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.4 KB  |  76 lines

  1. Newsgroups: comp.windows.x.apps
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!uum1!kksys.com!edgar!technix!mishima!intcorp!root
  3. From: root@intcorp.mn.org (Operator)
  4. Subject: TERMSW and OpenWindows 3.1
  5. Message-ID: <C010Aw.1up@intcorp.mn.org>
  6. Organization: Introl Corporation
  7. Date: Tue, 29 Dec 1992 14:59:19 GMT
  8. Lines: 66
  9.  
  10. I've recently changed my system from running SunOS 4.1.2 and OpenWindows
  11. 2.0 to Solaris 2.0 and OpenWindows 3.1.  Everything works fine except
  12. for one remaining problem.  
  13.  
  14. Every time I execute a particular utility or refresh its window, I 
  15. get the following warning:
  16.  
  17. ttysw_sigwinch, can't get tty process group: Inappropriate ioctl for device
  18.  
  19. I've traced this to the following xv_create:
  20.  
  21.  
  22.         obj = xv_create(owner, TERMSW,
  23.                 XV_KEY_DATA, INSTANCE, ip,
  24.                 XV_X, 0,
  25.                 XV_Y, 148,
  26.                 XV_WIDTH, WIN_EXTEND_TO_EDGE,
  27.                 XV_HEIGHT, 288,
  28.                 OPENWIN_SHOW_BORDERS, TRUE,
  29.                 TEXTSW_BROWSING, TRUE,
  30.                 TEXTSW_DISABLE_LOAD, TRUE,
  31.                 TTY_ARGV, TTY_ARGV_DO_NOT_FORK,
  32.                 NULL);
  33.  
  34.  
  35. The exact line causing the problem is:
  36.  
  37.     TTY_ARGV, TTY_ARGV_DO_NOT_FORK,
  38.  
  39. I don't get the warning message if I leave out this line, but then
  40. my command prompt appears in the window - which is even more of
  41. a problem then getting the warning.
  42.  
  43. The program does exactly what I want it to do, I just get that 
  44. annoying warning message.  This worked fine under OpenWindows 2.0.  
  45. The only mention I can find on TERMSW in O'Reilly and Associates
  46. XView Programming Manual is the following paragraph:
  47.  
  48.      This book has never discussed the term subwindow.  Basically,
  49.      it is a tty subwindow that can be edited like a text subwindow.
  50.      It may also contain a scrollbar.  xv_termsw.c shows you how
  51.      to create a term subwindow.
  52.  
  53. A sample program then follows.  
  54.  
  55. Is there anything I can do to not get this warning message displayed?
  56.  
  57. I also tried specifying TTYSW for the window type, and I believe
  58. everything worked fine - except I no longer had a scroll bar and
  59. I had to change all my '\n's to '\n\r's.  A scroll bar is really
  60. required for the application.
  61.  
  62. Any suggestions?
  63.  
  64.  
  65. --
  66. Joel D. Flatt                      Introl Corporation
  67. Work: (612) 788-9391               jdf@intcorp.mn.org 
  68. Home: (612) 823-3390
  69.  
  70.  
  71.  
  72. -- 
  73. Joel D. Flatt                      Introl Corporation
  74. Work: (612) 788-9391               jdf@intcorp.mn.org 
  75. Home: (612) 823-3390
  76.