home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / openloo / 3440 < prev    next >
Encoding:
Text File  |  1992-08-13  |  2.0 KB  |  62 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!wupost!monsanto.com!albert.monsanto.com!nghoff
  3. From: nghoff@albert.monsanto.com (Norm G. Hoffman)
  4. Subject: Problem scrolling with 'cmdtool vi file'
  5. Message-ID: <1992Aug13.022538.28183@tin.monsanto.com>
  6. Summary: Vi gets window size wrong and doesn't scroll properly.
  7. Keywords: cmdtool shelltool vi scrolling problem
  8. Sender: news@tin.monsanto.com (USENET News System)
  9. Organization: Monsanto Company
  10. X-Newsreader: Tin 1.1 PL4
  11. Date: Thu, 13 Aug 1992 02:25:38 GMT
  12. Lines: 48
  13.  
  14.  
  15. I'm running SunOS 4.1.1 & OpenWindows 3.0 on a Sparc 1+.
  16. I had some .openwin-menu entries for editing help files as follows:
  17.  
  18. "Help" MENU
  19.     "csh"         cmdtool vi /usr/local/help/csh-summary
  20.     "vi"         cmdtool vi /usr/local/help/vi-summary
  21.     .
  22.     .
  23.     .
  24. "Help" END PIN
  25.  
  26. These were taken from my SunView .rootmenu file where they worked fine,
  27. but with OpenWindows, vi doesn't scroll properly.  Shelltool exhibits
  28. the same symptoms.
  29.  
  30. I changed the entries as follows, and now it works fine.
  31.  
  32. "Help" MENU
  33.     "csh"         cmdtool -I 'vi /usr/local/help/csh-summary'
  34.     "vi"         cmdtool -I 'vi /usr/local/help/vi-summary'
  35.     .
  36.     .
  37.     .
  38. "Help" END PIN
  39.  
  40. Using these two approaches, I started two copies of vi.  The windows
  41. were the same size, but vi's ":set all" command showed two different 
  42. values for the window variable:  window=33 for the first, window=34
  43. for the second.  I shortened the first window one line by dragging
  44. its lower corner up a bit, and this fixed the scrolling problem.
  45. So, apparently, vi got the wrong value for the window variable.
  46.  
  47. I'm doing some other things which make the first approach preferable.
  48. I vaguely remember reading something about a timing problem, e.g., 
  49. vi requesting the tty size before the window has been configured.
  50. Has anyone heard about this?  Does anyone know of a solution that would 
  51. allow the first approach to work?
  52.  
  53. Sincerely,
  54.  
  55. Norman G. Hoffman
  56. Research Computing Consortium
  57. Monsanto Company
  58. 700 Chesterfield Parkway North
  59. St. Louis, Missouri  63198
  60. Phone: 314-537-7018
  61. Email: nghoff@bb1t.monsanto.com
  62.