[maemo-developers] console curses application

From: demas andrey.demidov at gmail.com
Date: Mon Jun 2 11:38:53 EEST 2008
Hi,
  It's my first experience in development on maemo platform.  I'm developing ca
console application. 
  I have downloaded virtual machine and have tried to run some sample applicatons.  
  But all examples I have seen have GUI interface, so I have the several questions:

  1. How can I run a console apptiocation on scratchbox? 
      If i run sample GUI appplictions (./example1.py) I can found running
aaplication on the Xephyr window. 
      But if I run hello-world console application I don't see any effect.

  2. Is there curses library on maemo platform? I have found the 'top' program
on N810, 
     so I suppose the answer is 'yes'. But when I try to include the header
(#include <curses.h>) 
     scratchbox cannot find this header. Where can I find a simple example of
curses application? 

     Something like this:

#include <unistd.h>
#include <stdlib.h>
#include <curses.h>

int main() {
    initscr();
    move(5, 15);
    printw(“%s”, “Hello World”);
    refresh();
    sleep(2);
    endwin();
    exit(EXIT_SUCCESS);
}

   3. Can I create console application on python with curses library?  I need
somthing like:

   import curses
   # ....

Thanks in advance,
Andrey



More information about the maemo-developers mailing list