0
点赞
收藏
分享

微信扫一扫

Curses 中的 curs_set() 函数

十里一走马 2022-03-24 阅读 50


NAME

curs_set - set the cursor mode

SYNOPSIS

#include <curses.h>

int curs_set(int visibility);

DESCRIPTION

The curs_set() function sets the appearance of the cursor based on the value of visibility:

0 Invisible

1 Terminal-specific normal mode

2 Terminal-specific high visibility mode

The terminal does not necessarily support all the above values.

RETURN VALUE

If the terminal supports the cursor mode specified by visibility, then curs_set() returns the previous cursor state.

Otherwise, the function returns ERR.

ERRORS

No errors are defined.



举报

相关推荐

0 条评论