Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Feb 2009 19:37:14 +0100
From:      cpghost <>
To:        Redd Vinylene <>
Cc:        questions <>, Rajarajan Rajamani <>
Subject:   Re: Could we get rid of the extra blank line in the MOTD?
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <>

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 <> 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

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.

(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.



Cordula's Web.

Want to link to this message? Use this URL: <>