From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31348 invoked by alias); 5 Jul 2007 04:39:43 -0000 Received: (qmail 31335 invoked by uid 22791); 5 Jul 2007 04:39:42 -0000 X-Spam-Check-By: sourceware.org Received: from stelecom.gomel.by (HELO stelecom.gomel.by) (82.209.213.61) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 05 Jul 2007 04:39:37 +0000 Received: from localhost (localhost [127.0.0.1]) by stelecom.gomel.by (Postfix) with ESMTP id 482C0B01D775; Thu, 5 Jul 2007 07:39:34 +0300 (EEST) Received: from stelecom.gomel.by ([127.0.0.1]) by localhost (stelecom.gomel.by [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19075-26; Thu, 5 Jul 2007 07:39:33 +0300 (EEST) Received: from localhost (unknown [82.209.209.246]) by stelecom.gomel.by (Postfix) with ESMTP id BAB16B01D771; Thu, 5 Jul 2007 07:39:32 +0300 (EEST) Date: Thu, 05 Jul 2007 04:39:00 -0000 From: Sergei Gavrikov To: wang cui Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20070705043836.GA6444@ubuntu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Any suggestion about text-based GUI function? X-SW-Source: 2007-07/txt/msg00049.txt.bz2 On Thu, Jul 05, 2007 at 03:34:03AM +0000, wang cui wrote: > Hi, > > As we always provide console for user interaction. It's difficult for use > to remember and understand so many commands. > > I'd like to provide a text-based GUI interface, a great example is Turbo C > program. > > I did some work on my target, analysis user input(eg. arrow keys) from > terminal(HyperTerminal), and keep the terminal screen layout unchanged, but > update corresponding fields. Also automaticaly update statistic fields when > changed. > I found it useful for newbie user. > > Is there guide article or open-source library to help accomplish such > function? You would like to read this nice article: http://www-128.ibm.com/developerworks/library/pa-tams3/ Peter Seebach told about using BSD curses under eCos. AFAIK, there are 2 _main_ TUI libraries in open-source world. These are slang and ncurses. But let think about an Expect (http://www.tcl.tk) too. Using Expect and any TUI wrapper (I prefer `whiptail' on Linux), it isn't difficult to write an interactive system is embedding no extra libraries in your eCos programs. What do we need? That's just any CLI prompt. regards, -- Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss