/etc/issue file

1997-07-18 Thread Paul Miller
I know this doesn't totally relate to Debian...

I want to add a clear screen character to the begining of the /etc/issue
file instead of having a clear command in the .bash_logout... I think it
is ^L... how can I add this character with emacs?

-Paul


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: /etc/issue file

1997-07-18 Thread Philippe Troin

On Fri, 18 Jul 1997 02:18:27 EDT Paul Miller ([EMAIL PROTECTED]) 
wrote:

 I know this doesn't totally relate to Debian...
 
 I want to add a clear screen character to the begining of the /etc/issue
 file instead of having a clear command in the .bash_logout... I think it
 is ^L... how can I add this character with emacs?

^Q^L

Phil.



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: /etc/issue file

1997-07-18 Thread stick
Hello, Paul.

 
 I know this doesn't totally relate to Debian...
 
Not everything on this list needs to be strictly Debian related.  Many
people get their first contact with Linux/*nix via Debian, so these
questions are expected.

 I want to add a clear screen character to the beginning of the /etc/issue
 file instead of having a clear command in the .bash_logout... I think it
 is ^L... how can I add this character with emacs?
 
I'm not sure how you would do it in Emacs - I use vi (actually Elvis...)

The characters you want are ESC[HESC[J  where ESC is the escape
character (ie. one byte - not ESC).  In vi you can enter
this character by first typing a ^V then pressing the Esc key.

The ESC[ is the ANSI escape sequence - H puts the cursor in the
Home position - upper left hand corner of the screen.  The J
does the actual clear screen.  (I think a 2J also works...it's what
DOS uses...)

Another way to capture these characters is to do the following:
# clear  clear.txt

This runs the clear command and sends the output to the file clear.txt.
This file could then be incorporated into /etc/issue.

Note that the ESC may be denoted by ^[ - it's the same thing, just a
different way to denote it.
 -Paul
 

Hope this helps,
Chuck

-- 
Chuck Stickelman, Owner E-Mail: [EMAIL PROTECTED]
Practical Network DesignVoice:  (419) 529-3841
9 Chambers Road FAX:(419) 529-3625
Mansfield, OH 44906-1302 USA


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: /etc/issue file

1997-07-18 Thread Shaya Potter

Open up the file in vi.  Then at the first letter go into insert mode.
Type ctrl-v (this allows escape codes to be literally entered) then press
escape, then c. so you should have something that looks like 

^[cDebian

HTH,

Shaya

On Fri, 18 Jul 1997, Paul Miller wrote:

 I know this doesn't totally relate to Debian...
 
 I want to add a clear screen character to the begining of the /etc/issue
 file instead of having a clear command in the .bash_logout... I think it
 is ^L... how can I add this character with emacs?
 
 -Paul
 
 
 --
 TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
 [EMAIL PROTECTED] . 
 Trouble?  e-mail to [EMAIL PROTECTED] .
 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: /etc/issue file

1997-07-18 Thread Brian K Servis
[EMAIL PROTECTED] writes:

 I want to add a clear screen character to the beginning of the /etc/issue
 file instead of having a clear command in the .bash_logout... I think it
 is ^L... how can I add this character with emacs?
 
I'm not sure how you would do it in Emacs - I use vi (actually Elvis...)

The characters you want are ESC[HESC[J  where ESC is the escape

Ctrl-Q is the emacs literal quote, FYI. 

Ctrl-Q ESC [H Ctrl-Q ESC [J  should do it in emacs. 

Brian 
-- 
Mechanical Engineering  [EMAIL PROTECTED]
Purdue University   http://www.ecn.purdue.edu/~servis


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .