[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mvcur() function does not work

From: Alexey Miheev
Subject: mvcur() function does not work
Date: Mon, 21 May 2007 16:24:09 +0400

I have tried to use mvcur() function to move the cursor on screen. But
as I see this functions does nothing on major Linux distributions (Red
Hat 4, SuSe 10, Ubuntu 6.06).
LSB 3.1 refers to SUSv2 (The Single UNIX Specification, Version 2) for the
description of the libncurses functions. According to this standard,
the function returns 0 only upon successful completion.

In the following code, mvcur() returns OK, but the visible cursor does
not change its place.

#include <stdio.h>
#include <curses.h>

int main(int argc, char* argv[])
        int res;

        move(LINES/2, COLS/2);
        res=mvcur(LINES/2, COLS/2, 5, 5);

        printf("mvcur() return value was %d\n", res);

        return 0;

Regards, Alexey Miheev
Linux Verification Center, ISPRAS
web:    http://www.linuxtesting.org
e-mail: address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]