home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!wupost!monsanto.com!albert.monsanto.com!nghoff
- From: nghoff@albert.monsanto.com (Norm G. Hoffman)
- Subject: Problem scrolling with 'cmdtool vi file'
- Message-ID: <1992Aug13.022538.28183@tin.monsanto.com>
- Summary: Vi gets window size wrong and doesn't scroll properly.
- Keywords: cmdtool shelltool vi scrolling problem
- Sender: news@tin.monsanto.com (USENET News System)
- Organization: Monsanto Company
- X-Newsreader: Tin 1.1 PL4
- Date: Thu, 13 Aug 1992 02:25:38 GMT
- Lines: 48
-
-
- I'm running SunOS 4.1.1 & OpenWindows 3.0 on a Sparc 1+.
- I had some .openwin-menu entries for editing help files as follows:
-
- "Help" MENU
- "csh" cmdtool vi /usr/local/help/csh-summary
- "vi" cmdtool vi /usr/local/help/vi-summary
- .
- .
- .
- "Help" END PIN
-
- These were taken from my SunView .rootmenu file where they worked fine,
- but with OpenWindows, vi doesn't scroll properly. Shelltool exhibits
- the same symptoms.
-
- I changed the entries as follows, and now it works fine.
-
- "Help" MENU
- "csh" cmdtool -I 'vi /usr/local/help/csh-summary'
- "vi" cmdtool -I 'vi /usr/local/help/vi-summary'
- .
- .
- .
- "Help" END PIN
-
- Using these two approaches, I started two copies of vi. The windows
- were the same size, but vi's ":set all" command showed two different
- values for the window variable: window=33 for the first, window=34
- for the second. I shortened the first window one line by dragging
- its lower corner up a bit, and this fixed the scrolling problem.
- So, apparently, vi got the wrong value for the window variable.
-
- I'm doing some other things which make the first approach preferable.
- I vaguely remember reading something about a timing problem, e.g.,
- vi requesting the tty size before the window has been configured.
- Has anyone heard about this? Does anyone know of a solution that would
- allow the first approach to work?
-
- Sincerely,
-
- Norman G. Hoffman
- Research Computing Consortium
- Monsanto Company
- 700 Chesterfield Parkway North
- St. Louis, Missouri 63198
- Phone: 314-537-7018
- Email: nghoff@bb1t.monsanto.com
-