Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MTqXi-0002Tq-Sd for mharc-grub-devel@gnu.org; Thu, 23 Jul 2009 01:08:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTqXh-0002ST-3y for grub-devel@gnu.org; Thu, 23 Jul 2009 01:08:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTqXc-0002MP-AQ for grub-devel@gnu.org; Thu, 23 Jul 2009 01:08:32 -0400 Received: from [199.232.76.173] (port=59217 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTqXc-0002MB-0d for grub-devel@gnu.org; Thu, 23 Jul 2009 01:08:28 -0400 Received: from mail-yx0-f193.google.com ([209.85.210.193]:53023) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTqXb-0001RY-EM for grub-devel@gnu.org; Thu, 23 Jul 2009 01:08:27 -0400 Received: by yxe31 with SMTP id 31so1183719yxe.24 for ; Wed, 22 Jul 2009 22:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:message-id :from:to:content-type:content-transfer-encoding:mime-version:subject :date:x-mailer; bh=XCxZmFivdWGJxssd6N5oElQrPeb9KC5P7WMu9Z4Rh2I=; b=JXGlo0+EX6CaHAOVKxjSCreRH9knQbFL4sPpCRwS1qZ21bsE75/lf8sfXqGRghC5T8 KMG5jsXsiQZlNcVrrFC+QA9t5kZAe2BT8iGlTn2u3Vj+gLtEHnMDBL16b3EUQPaV5r6L fU2qHZuTaVpiGQ8qmD5/0YWOUB7jrFojEccqw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=qMK2QYDN8tevhuiAyLOSmSJkNp3jC4pfdEtjJXXh3EOnh547XLvAv/pkIZV17u82Mj GOOjE1jwg7eH1mIsea072tAanHxW2/bIhpqXEwuVznpMqYXn2ohvFPAgp2/k021J2SNM yGLIc3tWJoiBk1qThmT1uZL0O7Yge3TsQVlEg= Received: by 10.90.32.9 with SMTP id f9mr1470053agf.95.1248325707001; Wed, 22 Jul 2009 22:08:27 -0700 (PDT) Received: from mail.definitelynotsafe.com (cpe-66-75-249-204.san.res.rr.com [66.75.249.204]) by mx.google.com with ESMTPS id 9sm4270787agc.62.2009.07.22.22.08.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Jul 2009 22:08:26 -0700 (PDT) Sender: Joe Auricchio Received: from [10.24.0.125] (unknown [10.24.0.1]) (Authenticated sender: jauricch) by mail.definitelynotsafe.com (Postfix) with ESMTPSA id 01EDA17587 for ; Wed, 22 Jul 2009 22:07:48 -0700 (PDT) Message-Id: <4F38CAFF-C240-46FC-84BA-D3B96872B3E3@gmail.com> From: Joe Auricchio To: The development of GRUB 2 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Wed, 22 Jul 2009 22:08:24 -0700 X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [PATCH 2/2] Alias cls as clear X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2009 05:08:33 -0000 * commands/minicmd.c: Add clear as alias for cls. My background is in Unix, so 'clear' comes much more naturally to my fingers than 'cls'. But it's bad to clutter grub with too many commands. So I leave this to the maintainers: do we add both commands, only one, or neither? -joe --- a/commands/minicmd.c 2009-07-22 15:43:30.000000000 -0700 +++ b/commands/minicmd.c 2009-07-22 15:43:16.000000000 -0700 @@ -348,7 +348,7 @@ static grub_command_t cmd_cat, cmd_help, cmd_root; static grub_command_t cmd_dump, cmd_rmmod, cmd_lsmod, cmd_exit; -static grub_command_t cmd_cls; +static grub_command_t cmd_cls, cmd_clear; GRUB_MOD_INIT(minicmd) { @@ -376,6 +376,9 @@ cmd_cls = grub_register_command ("cls", grub_mini_cmd_cls, 0, "clear the screen"); + cmd_clear = + grub_register_command ("clear", grub_mini_cmd_cls, + 0, "clear the screen"); } GRUB_MOD_FINI(minicmd) @@ -388,4 +391,5 @@ grub_unregister_command (cmd_lsmod); grub_unregister_command (cmd_exit); grub_unregister_command (cmd_cls); + grub_unregister_command (cmd_clear); }