Is there a way to reproduce zsh tab completion with readline - c

As the post subject’s says, I want to know if there is a way with GNU readline library in C to reproduce the colored background like zsh does when pressing tab key.
I want to add this feature for the shell, I am currently working on.

Related

How could I get Code::Blocks to show errors as I type for C programs?

I would have thought this would be on by default, don't we pretty much all want that in an IDE.. I've checked all over it's settings for this.
If you could suggest a plugin for Sublime Text to have this ability too, that would be great. My guess is it's all pretty language specific, I know there is Ensime for Scala developers.
First, your second question: ...a plugin for Sublime Text to have this ability too. There is a discussion HERE about that.
The closest thing to IntelliSense for Code::Blocks (that I am aware of) is a feature called Code Completion.
It provides a symbols browser for your projects and code-completion inside the editor. During code-completion, a system of symbols is used to identify the type associated with tokens.
It works with C & C++.
If your version of Code::Blocks is reasonably recent, this feature is already installed. Settings->Editor... will popup a dialog. On the left slide menu, you will see the glyph for Code Completion:
Once there, these options are available for you to select:
Note, there are other items in this same slide menu that may be of interest to you, such as Occurrences Highlighting, SpellChecker, etc.

How to create options button with ncurses

EHLO
I am into C and ncurses on Linux for the creation of an installer and I am kinda new on this. I have seen installers for linux(especially Anaconda) that can display windows, with buttons like "OK""NEXT""BACK" like on this link https://hurley.files.wordpress.com/2008/01/snack-popcorn-snapshot.png?w=500 and I need some information about it, I have found menu examples but not too much about "buttons" as I call it.
Greetings.
The example shown is from one of the slang-based applications such as whiptail. Anaconda uses python scripts which load the newt library and run those. As far as I know, there is essentially no documentation for any of those (other than source code), and that is a longstanding issue, for instance this comment, and this.
Whiptail is an application "like" dialog, but much simpler. dialog is a curses-based application which can be run using shell-scripts (such as bash). You can find more information about dialog on its homepage.
Well thank you guys.
I went to read some newt docs and it's amazing, actually is pretty simple and the official documentation is very straght-forward and it works, so I will better keep working my installer with newt instead of with ncurses.

How to send click signals through a transparent window as xeyes with Xlib?

xeyes [code] is a famous application on X Window System. It is developed by X Toolkit Intrinsics (aka Xt). I'm programming in C purely with Xlib, but I cannot reproduce the same effect as follows:
P.S. I think it is absolutely possible to write in Xlib because Xt is based on Xlib.
How to send click signals under another window as xeyes with Xlib?
Make some changes in XCreateWindow()? Any help is appreciated.
Using non-rectangular windows is an extension. It's not part of the core protocol.
The XShape... functions are provided in libXext. So to answer your question is that it is not possible to do this with only Xlib.
There is some documentation for this library.
The source of xeyes is available, study it. You want to learn how functions with the XShape... prefix are used there. Unfortunately the manual page (man XShape) is of no help whatsoever, it just list the functions without explaining what they do or how to use them. You need to learn by example from existing applications.
Note, modern application have better-looking transparency with continuous range from 0 (opaue) to 1 (fully transparent). It is based on a different mechanism.

gui in linux using gcc

hi every one i want ask that i have made a program and i have store a data in csv file. now i want a gui which includes buttons which upon pressing opens a a file and plot a graph.is there a way through which i can add gui in my program using gcc.and also i want to ask how can i make a moving graph just like ECG.
thank alot.
Have you looked into using a toolkit like GTK+, if not i would suggest you check it out. GTK+ is written natively in C so i think it should work for you.
Rephrasing your quesiton:
You have a C program that stores data in a csv file. You wish to display this information as a graph but don't know how to build a GUI or graphical display. Further, you want animation (it would be good if you linked to what "ECG" is) probably to display temporal aspects.
If I have this right, I suggest you learn the GTK and Cairo libraries and use those to build your GUI. Build GUI's is tedious and unrewarding work (to me), particularly in C. I'd think hard about if you really want to bother making a GUI instead of doing something simple like calling out to gnuplot to build the graph as a file that the user can open, though this won't get you any animation.
I suggest you switch your project to C++ and use Qt for your GUI.
If gcc is not a requirement, then check out SciPy or Octave.

text editor using c

Hi i want to make a text editor using c. I don't want to make any GUI, the text editor is going to be a console application. I would like to ask if there are any libraries which implement some basic functionality for example, i want to execute a function when user presses ctr+s.
You're going to want to look into the curses library. There are versions of it for most Unix-like systems as well as for console programs in Windows (and probably programs running under PowerShell, but not sure).
This library has functions for reading key presses, moving around the screen, and drawing window-ish borders with either ASCII or terminal graphics characters in a platform/terminal independent way. Some versions even have the ability to work with mice.
There's lots more that curses can help you do, but you'll have trouble appreciating it until you read more in depth about it and see some examples in action (and actually realize that they are using curses).
The most popular version for free *nix systems is ncurses and the windows version is called pdcurses.
Use ncurses and take a look at the the source code for vim.
Curses and other such libraries are a good place to start.
http://en.wikipedia.org/wiki/Curses_%28programming_library%29
You can find a simple ncurses-based text editor on my webpage here:
http://www.melvilletheatre.com/articles/cstuff/1.html

Resources