I work on a Bash reproduction in C for my school. I try to schematize how I will code the pipe | feature and I wanted your advices. I know that there is a lot of solutions for this on the Web but i don't want the code but the way to do that I want.
I launched good old paint to show you my vision :
I tried to code a demonstration to prove the concept but it is a fail.
I thought that creating just one pipe for all execves is a very simple solution but i don't know if it could work.
What i'm asking is a more experienced vision to tell me if it could work or not.
Thank you for reading me,
Related
I want to make automatically screenshots of our visualiziation.
I managed to switch through the pictures.
But getting the screenshots is quite difficult.
I found an quite easy Powershell script that works fine.
But I have to call it with c Code due our visualiziation.
It offers only "Winexec" and "ProgramExecute".
I didn't manage to find the right code...
WinExec("Powershell -/Skript -Param1 -Param2", SW_SHOWNORMAL);
or
unsigned int ProgramExecute(char* Program_Name)
Has anybody an idea where I can find the right order?
Thanks :)
I use the fine software "greenshot" with automatic save.
No coding and almost anybody can create screenshots of the visualization ;)
..and sometimes powershell is not installed, or the security setting of the policy prohibits this kind of scripts from running correct...
//PerD
Hi is there any possible way to temporarily disable user input into the terminal in c programming language?
There is probably a very good reason why you can't (possible malicious uses) but if its possible, can someone please illustrate how? maybe there is a function, a setting or even an obscure system command?
For context: a friend was having issues with a hard drive, so i created a program which ran a few terminal command and printed the output to a text file which he would send me. It all worked fine, however he didn't really know what he was doing so i printed instructions to the console to instruct him in what to do. although this all worked out, the thought did occur that i could potentially disable user input for that particular terminal window until it was required, and thus the question.
Its also a pretty basic question so if its actually a duplicate (although i could not find one) than please label as such.
I have been trying to figure out how to make an app similar to emacs in that when you run it, it runs in the terminal but it takes up the whole terminal and acts almost like a window. I can't find anything online about this, can anyone give me pointers of where to get started to figure this out?
For *nix, there is ncurses.
Wikipedia explains it to you: It is a library to write "GUI-like" applications in text format.
Also: Ncurses for Windows
Hi i need to write some Graphic interace program that allow keeping, finding and adding data about some topic (something like database). Here is a example (zoo manager) http://imageshack.us/a/img96/5070/prog2projekt.png.
I have never working on that kind of preject before ?
Does anyone has some simmilar program with source code ? It would be very helpful to me.
Thanks
I'm Interested in writing gedit-plugins in C. I've checked Gedit/NewMDIPluginHowTo
...but haven't had any luck with it.
How can I get more information about writing gedit plugins in C?
If you're willing to use Python instead, here is a tutorial for writing gedit plugins in Python.
The only tutorial is the one you already found :
Gedit/NewMDIPluginHowTo
I know it can be hard to understand in a first view, but if you read it a few times and give it a try with a basic example, you should be able to achieve getting results quite fast.
Is there something specific that you don't understand?
You can also download some examples of plugins available in C:
https://gitlab.gnome.org/GNOME/gedit/-/tree/gnome-2-30/plugins
Well, you can always email some of the core Gedit developers about your question, I'm sure they have something to give. Try find them via Gedit: Help>About>Credits.
Good luck.