ncurses

ncurses not found when trying to build vim

半腔热情 提交于 2019-12-04 01:52:47
问题 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

Console interface tutorials and tips (pdcurses)

懵懂的女人 提交于 2019-12-03 15:11:28
I'm looking for tutorials on using PDCurses library. Unfortunately there is text only documentation, which is more like function reference. Are pdcurses similar enough to ncurses to use ncurses tutorials??? Any tips for making console UI's ??? PS. PDCurses - mingw32. This blog entry isn't anything I'd call a tutorial but it looks like it might be an interesting starting point. It is featuring a (very, very basic) video tutorial on YouTube as well. You can always use this tutorial for Ncurses , and change the #include from ncurses.h to curses.h in order to use pdcurses. I do not know PDcurses

Working with curses in IPython. How can I improve this?

ぐ巨炮叔叔 提交于 2019-12-03 14:40:39
I've found a way to interactively work with curses while still enjoying most of the benefits of IPython. It works, with some limitations, but not as well as I'd like. The original problem, of course, is that I'd like to be able to work with my interactive Python session while having it control a terminal screen, using the curses (ncurses) module (or urwid , for example). One solution is to write a simple TCP server with a simple event loop that evaluates each string it reads from the socket and send back serialized strings representing and return results. As described here: SO: Is there a way

hscurses or ncurses, which one to use?

二次信任 提交于 2019-12-03 11:50:44
I'm writing a program which needs a UI. The program is in haskell. For the UI, I think of using ncurses library. Should I use hscurses library for haskell and write the UI in haskell or should I use ncurses library and write the UI in C and call haskell functions from C? Which is the most preferred way? I don't see any advantages in writing the UI in C and call functions from C. You can choose how you are going to do the UI from several libraries available on Hackage : hscurses ncurses nanocurses vty and vty-ui ansi-terminal (on windows) I don't know which is better, there's a small

g++ conio.h: no such file or directory

匿名 (未验证) 提交于 2019-12-03 08:39:56
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to write a program with g++ that uses conio.h header. What I'm actually trying to do is calling gotoxy function which I used in Borland compiler and windows OS. So the first question is: is there a gotoxy function or equivalent in g++? Second: why can't I include conio.h? I read some stuff that said I should install libstdc++ package , I tried but it seems that I already have it (it's accompanied by gcc). 回答1: There's no direct equivalent for g++. conio.h is specific to some DOS compilers. But you can get what you want using

What ncurses frameworks are available for BASH? [duplicate]

余生颓废 提交于 2019-12-03 08:10:13
This question already has answers here : Bash script with graphical menus (2 answers) Are there some more Text User Interface (TUI) frameworks for bash (other than this)? : http://code.google.com/p/bashsimplecurses/ I want to take user input (data entry) process the entry If all you need to do is prompt the user for information, take a look at dialog . http://invisible-island.net/dialog/dialog.html Agi Hammerthief bashsimplecurses is pretty capable (from the little I've seen), but you might want to try GTK Server . (Have a look at the docs page for tutorial and manual links). It can work with

Go back up a line in a linux console?

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I know I can go back the line and overwrite its contents with \r . Now how can I go up into the previous line to change that? Or is there even a way to print to a specific cursor location in the console window? My goal is to create some self-refreshing multiline console app with PHP. 回答1: Use ANSI escape codes to move the cursor. For example: Esc [ 1 F . To put the Escape character in a string you'll need to specify its value numerically, for example "\x1B[1F" As sujoy suggests , you can use PHP ncurses for a more abstract way to move the

Highlighting and Selecting text with Python curses

本小妞迷上赌 提交于 2019-12-03 06:59:36
This is my first post to stack overflow. I've been lurking this site for information for years, and it's always helpful, so I thought that I would post my first question. I've been searching for some similar examples, but can't seem to find anything. Ultimately, I'm trying to write a simple text ui for finding false positives and false negatives in a text extraction program. The false positive module is a simple yes/no selection, and displaying colored text and using getch() is easy enough. The False negative portion however, is a becoming difficult. So this is what I want to do: Display a

gcc /usr/bin/ld: error: cannot find -lncurses

做~自己de王妃 提交于 2019-12-03 04:46:12
问题 I am running Ubuntu 12.04 and I'm currently working on a project involving C, OpenGL, a teapot and input methods. The problem started when I decided to have arrow keys as input. I checked to see the key codes for arrow keys but all of the arrows return 0. I looked up how to get this to work and I found conio.h. Unfortunately, it is an old DOS header that is not available for Linux. Then I found a substitute called ncurses. After installing the necessary libraries, by following the build

Using more lines than the window has with ncurses

折月煮酒 提交于 2019-12-03 03:47:11
I have recently been introduced to ncurses for asynchronous keyboard key listening, and getting on well with it. One issue i'm facing is that you can only have text on the visible screen, no scrollbars. I was wondering if its possible to keep using ncurses as it is so lovely, but have the program still keep the scrollbars rather than getting to the last line and staying there. scroll() . You have to set scrollok(win, TRUE) first. Actually if you just want to spew data like a normal terminal you only need to set scrollok() by itself. #include <ncurses.h> int main(void) { int i = 0; initscr();