Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!newcastle.ac.UK!J.K.Wight From: J.K.Wight@newcastle.ac.UK (Jim Wight) Newsgroups: comp.windows.x Subject: Re: Should login xterms show /etc/motd? Message-ID: Date: 23 Jul 90 15:31:54 GMT Sender: daemon@athena.mit.edu (Mr Background) Reply-To: J.K.Wight@newcastle.ac.uk Organization: The Internet Lines: 39 In article <678@venice.SEDD.TRW.COM> Steven L. Baur writes: > What I'd like to see is a program that can take a text file (determine > a minimum amount of screen space) and just display it with a button > to click on when the user is done reading it. Xmessage is almost the > program to use. However, it does not automatically resize above one line > correctly. Essentially I have to have a program that does just this > (yesterday, sigh). I have almost the very program. Without knowing about xmessage at the time I came up with a similar interface. The number and names of the buttons, and the codes they return are command line options. > What I'd like to see is a (possibly scrollable) window come up with the > message of the day. Unlike Xmessage, I would like the default to show > a number of (reasonable) lines. > > A temporary solution is to put up the motd in an Xmessage sized for some > fixed number of lines, and then force the user to scroll to see anything > else, but this is a system that will be displaying X windows over > modems running at 19.2kbaud, and scrolling is painful at best. As it currently stands my program displays the whole file in a window of the correct size. Although some generalisation has been incorporated it was principally written in order to display the message of the day file under xdm, and I don't expect that to be more than a screenful. It would not be a tremendous task to add scrolling but I didn't use a complicated text widget because I wanted to keep the program reasonably small given the limited objective. The program is not in a polished enough state to be released for general consumption but if anyone feels they would like to give it a try then I am willing to mail it to them. It requires C++ and version 2.6 of the InterViews toolkit. Jim Wight --------- J.K.Wight@newcastle.ac.uk Computing Laboratory, University of Newcastle upon Tyne Newcastle upon Tyne, NE1 7RU, United Kingdom. Tel: +44 91 222 8238