是否可以在Linux平台的C / C ++中使用ncurses库创建垂直滚动条 [英] Is it possible to create the vertical scroll bar using ncurses library in C/C++ in linux platfrom

查看:89
本文介绍了是否可以在Linux平台的C / C ++中使用ncurses库创建垂直滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用应用程序,它需要垂直滚动条,因为我们使用ncurses库来选择选项和打印输出。请告诉我们是否可以使用Linux平台的ncurses库创建垂直滚动条。



我尝试过:



我以这样的方式重新安排出来,如果我按下按钮清除屏幕并重新打印出来。所以它就像滚动一样。但需要在项目要求中创建滚动。

解决方案

参见 NCURSES编程HOWTO [ ^ ]

I am working application, which needs the vertical scroll bar, since we are using the ncurses library for selecting option and printing outputs. Please let us know is it possible to create the vertical scroll bar using the ncurses library for linux platfrom.

What I have tried:

I am re-arranged the out in such way that, If I press the button clears the screen and reprint the out. so it is acting like scrolling. But need to create the scroll in project requirement.

解决方案

See NCURSES Programming HOWTO[^]


这篇关于是否可以在Linux平台的C / C ++中使用ncurses库创建垂直滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆