From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DNS_FROM_OPENWHOIS, SPF_NEUTRAL autolearn=no version=3.2.5 Message-ID: <4D907058.4020204@gmail.com> Date: Mon, 28 Mar 2011 15:26:16 +0400 From: Alexey Gladkov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16pre) Gecko/20110308 Lightning/1.0b3pre Thunderbird/3.1.10pre MIME-Version: 1.0 To: kbd@lists.altlinux.org References: <20110321214236.GA13370@graeme> <4D8C9693.9040006@gmail.com> <20110326223322.GA21591@altlinux.org> <4D8F0463.1050207@gmail.com> <20110328111918.GC15694@altlinux.org> In-Reply-To: <20110328111918.GC15694@altlinux.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [kbd] New vt_mode tool for kbd? X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2011 11:26:27 -0000 Archived-At: List-Archive: 28.03.2011 15:19, Dmitry V. Levin wrote: > Usage: kbdinfo [-C DEVICE] getmode [text|graphics] > kbdinfo [-C DEVICE] gkbmode [raw|xlate|mediumraw|unicode] > kbdinfo [-C DEVICE] gkbmeta [metabit|escprefix] > > If only one argument is given, then just print the current mode to stdout > and exit 0 (unless ioctls returned an error). > > If two arguments are given, then print nothing to stdout and exit 0 iff > the current mode matches the mode described by these two arguments. > > This interface would be both script-friendly and extensible. This is very good idea. Thanks! -- Rgrds, legion