ncurses

ncurses not found when trying to build vim

梦想与她 提交于 2019-12-01 11:10:33
I am trying to build vim in my user dir after recently upgraded to Fedora 23 I have ncurses and ncurses-devel [root@statquant-laptop lib]# dnf install ncurses Last metadata expiration check performed 1:09:48 ago on Sat Jan 9 10:33:06 2016. Package ncurses-5.9-21.20150214.fc23.x86_64 is already installed, skipping. Dependencies resolved. Nothing to do. Complete! [root@statquant-laptop lib]# dnf install ncurses-devel Last metadata expiration check performed 1:09:58 ago on Sat Jan 9 10:33:06 2016. Package ncurses-devel-5.9-21.20150214.fc23.x86_64 is already installed, skipping. Dependencies

Defining a new color in ncurses

久未见 提交于 2019-12-01 10:44:45
I am trying to learn ncurses and was wondering if I can create my own custom colors. I am aware that by using init_color() , I can modify any pre-defined colors in the ncurses library. But, is there a way I can define a new color with custom RGB values? init_color() is the only way to define new colors but the number of colors and color pairs available depends on the terminal you are using. Many terminals can support up to 256 colors but on most systems the default TERM value is xterm which only supports 8. xterm can be compiled with 256 color support and I think gnome-terminal supports 256.

Ncurses and Linux pipeline

爷,独闯天下 提交于 2019-12-01 10:40:38
I'd like to write a simple program using ncurses for displaying some data. I would then like for the program to write to stdout in such a way that I can then use a pipe (|) on the command line to pipe some data out. My current attempt doesn't work. I can see the "GOT HERE"'s in a file using '>', but there's a whole bunch of other stuff. The program also exits immediately. #include <stdio.h> #include <ncurses.h> int main(int _argc, char ** _argv) { initscr(); /* Start curses mode */ printw("Hello World !!!"); /* Print Hello World */ refresh(); /* Print it on to the real screen */ getch(); /*

How do I change the cursor color in ncurses forms?

心不动则不痛 提交于 2019-12-01 09:50:05
问题 I can't find any method of changing the cursor color in ncurses forms library from green to anything else. Googling and searching the manpage for cursor or color hasn't helped. Anyone know how this is done? 回答1: You can change the color by writing \e]12;COLOR\a or \033]12;COLOR\007 , they all the same, here a simple example: #include <stdio.h> #include <unistd.h> void cursor_set_color_string(const char *color) { printf("\e]12;%s\a", color); fflush(stdout); } int main(int argc, char **argv) {

Ncurses and Linux pipeline

主宰稳场 提交于 2019-12-01 09:22:59
问题 I'd like to write a simple program using ncurses for displaying some data. I would then like for the program to write to stdout in such a way that I can then use a pipe (|) on the command line to pipe some data out. My current attempt doesn't work. I can see the "GOT HERE"'s in a file using '>', but there's a whole bunch of other stuff. The program also exits immediately. #include <stdio.h> #include <ncurses.h> int main(int _argc, char ** _argv) { initscr(); /* Start curses mode */ printw(

Defining a new color in ncurses

泪湿孤枕 提交于 2019-12-01 09:09:43
问题 I am trying to learn ncurses and was wondering if I can create my own custom colors. I am aware that by using init_color() , I can modify any pre-defined colors in the ncurses library. But, is there a way I can define a new color with custom RGB values? 回答1: init_color() is the only way to define new colors but the number of colors and color pairs available depends on the terminal you are using. Many terminals can support up to 256 colors but on most systems the default TERM value is xterm

Ubuntu 10.10下安装ncurses-devel

两盒软妹~` 提交于 2019-12-01 07:50:53
解决Ubuntu 10.10 使用`make menuconfig`配置Linux 内核时,出现缺少'ncurses-devel'库支持。 *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. *** 1. 问题状况 一般情况下使用系统自带的软件管理器apt-get就可以安装了(`sudo apt-get install ncurses-devel`),但使用后却出现下面的错误提示: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 E: 未发现软件包 ncurses-devel 再试了另一条命令`sudo apt-get install ncurses`, 出现: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 现在没有可用的软件包 ncurses,但是它被其它的软件包引用了。 这可能意味着这个缺失的软件包可能已被废弃, 或者只能在其他发布源中找到 E: 软件包 ncurses

How do I reduce input lag in an NCurses C Application

此生再无相见时 提交于 2019-12-01 07:17:11
I am getting major amounts of input lag when I run my application. More details: When I press 'w', 'a', 's', 'd' (My assigned input keys) the object moves however it continues to move for an extended period of time after the key has been released. The source code is below however small parts of the code have been cut out to shorten the questions however if the source code below does not compile I have all of the code up on github. https://github.com/TreeStain/DodgeLinuxGame.git Thankyou for your time. -Tristan dodge.c: #define ASPECT_RATIO_X 2 #define ASPECT_RATIO_Y 1 #define FRAMES_PER_SECOND

Installing ncurses for ruby on Windows

杀马特。学长 韩版系。学妹 提交于 2019-12-01 07:06:40
I am trying to install ncurses for ruby on windows. I have not installed ncurses before on my machine. I thought that having the "ruby devkit" , it had asked for would be enough, but now I am being asked to specify options... I don't know which options to pick, or if I need to do/install other things for the gem to get installed: C:\Ruby193\Devkit>gem install ncurses -- --ruby=C:/Ruby193/bin/ruby --without-make-prog --without-opt-dir Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing ncurses: ERROR: Failed to build gem

curses in python getstr() while refreshing

爱⌒轻易说出口 提交于 2019-12-01 07:03:04
I am writing a front end for a server application using the curses module. THe main windows returned by curses is divided into 2 sub-windows. The top half of the screen prints output from the server while the bottom line takes input with window.getstr(). Sometimes when I am entering text and the top half is updating the whole screen goes crazy with random characters replacing the existing characters. Is there a specific cause for this or is it a curses bug? I'm guessing you are using a thread to update the upper display while window.getstr() runs in the main thread? If so, the problem is that