Live data from Hacker News

Clear Your Terminal in Style

adammusciano.com

131–133 of 133 posts

Re: Clear Your Terminal in Style

#132
post #127

Earlier quoted context omitted.

Your "gut" is wrong. It's ED 3.

It's a common feature, but not formally standardized. ED 3 isn't actually in the [ECMA-048] spec. It was an xterm feature introduced in June 1999. Several terminal developers later adopted the feature. In April 2011, a Red Hat developer submitted a patch to the Linux kernel, modifying its console driver to do the same thing. So it's not a formal standard, but it's universal on Linux since 3.0 and many terminal emulat…

... none of which contradicts the point that the protocol does know about scrollback. The aforementioned developer, Petr Písař, got the implementation wrong, note.

* https://unix.stackexchange.com/a/375784/5132

* http://jdebp.uk./Softwares/nosh/guide/commands/setterm.xml

Re: Clear Your Terminal in Style

#133
In times past, Solaris' /usr/bin/clear was a sh script which ran "tput clear", but the amusing parts was the notice which includes

  # Copyright (c) 1987, 1988 Microsoft Corporation
  # All Rights Reserved
  # This Module contains Proprietary Information of Microsoft
  # Corporation and should be treated as Confidential.
Post reply on HN