^L on console?

Ed Schouten ed at 80386.nl
Mon Jan 4 21:47:56 UTC 2010


* Ed Schouten <ed at 80386.nl> wrote:
> Hi Xin,
> 
> * Xin LI <delphij at gmail.com> wrote:
> > It seems that ^L behaves differently on console.  Before login, it
> > won't clear the screen and put the cursor to the left-up corner, while
> > with login and csh, it would do what it's supposed to do.
> > 
> > This behavior seems to be different from older FreeBSD releases, is it
> > related to the recent console driver changes (and is the expected
> > behavior)?
> 
> Even though it's different than previous releases of FreeBSD, it is the
> expected behaviour. FreeBSD 9 uses an xterm-like terminal emulation.
> Xterm doesn't seem to blank the screen when it echoes a ^L. login and
> csh do blank the screen, but they do it by hand.
> 
> I could change it, but I'm afraid it breaks stuff... :-)

As a side note, you can test this yourself by doing this inside an
xterm:

	stty -echoctl
	cat
	<press ^L here>

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20100104/dc1efa74/attachment.pgp


More information about the freebsd-current mailing list