Date: Wed, 4 Feb 2009 19:37:14 +0100 From: cpghost <cpghost@cordula.ws> To: Redd Vinylene <reddvinylene@gmail.com> Cc: questions <freebsd-questions@freebsd.org>, Rajarajan Rajamani <r.rajamani@gmail.com> Subject: Re: Could we get rid of the extra blank line in the MOTD? Message-ID: <20090204183714.GA1104@phenom.cordula.ws> In-Reply-To: <f1019d520902040953x49bd860fv3958670827334ce@mail.gmail.com> References: <f1019d520902040717l16055bafn20e805b87003e94c@mail.gmail.com> <4af955a20902040757q464b3d0ey2f6b32eeef382ad9@mail.gmail.com> <f1019d520902040953x49bd860fv3958670827334ce@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 04, 2009 at 06:53:07PM +0100, Redd Vinylene wrote: > On 2/4/09, Rajarajan Rajamani <r.rajamani@gmail.com> wrote: > > The messages are from /etc/motd > > > > Edit is to display what you'd like. That's not his problem. Something *else* prints a newline before the contents of /etc/motd... See login(1) and check out /etc/login.conf. Just guessing and not tested: if the console driver supports ANSI control sequences, you could add the sequence that clears the screen and homes the cursor (Esc[2J) [1] to the beginning of /etc/motd and see if it works. Something like this: Esc[2JThis is the first line of the motd. This is the second line. etc... (Use the real Esc-character for this, not the three chars 'E', 's' and 'c'; i.e. 1B(hex), 33(oct), 27(dec)) But again, it should only work if the console driver supports ANSI escape sequences. [1] http://ascii-table.com/ansi-escape-sequences-vt-100.php -cpghost. -- Cordula's Web. http://www.cordula.ws/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090204183714.GA1104>