Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have a program I am trying to port to linux.
The program is a command prompt program that displays memory on screen, you can move around the memory using the arrow keys.
Im new to linux and don't really understand how the terminal works.
What Im looking for is some good tutorials or a chapter in a book to teach me hoe to write linux programs using the terminal the same way I would use command prompt in windows.
I want to know things like changing background and text colours, clearing the screen, being able to move up and down the lines of text and how to detect keyboard input. Basically how to create a user interface using the linux terminal.
I am using centos and g++ if that makes a difference.
Something like htop? You should have a look on ncruses.
I suggest you need ncurses
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there a way to record all the sound that is played on a Linux Machine using PulseAudio? E.g. like Stereomix in Windows.
I dont want a complete Program, I just need some entry point to start my researches. Somehow I do not find very much regarding this topic.
So if anyone has informations on this topic (of course this can be tips, hints or maybe open source programs that do this), please let me know!
I researched this exact problem yesterday, so I have some steps you can try. I was using Ubuntu 15.04.
Install pavucontrol, and run it.
Go to the "Recording" tab.
Run a command like this in a shell, arecord -f cd | hexdump -Cv | grep '0000 ', and you should see a new entry appear in the pavucontrol recording tab. You might see non-zero data if your microphone is enabled.
Run YouTube or something in the background to generate sound.
Click the drop-down item next to "ALSA Capture from" and switch 'Built-in Audio Analog Stereo' to 'Monitor of Built-in Audio Analog Stereo'. You should see non-zero data in the arecord session.
From there, its a matter of writing code to record audio using the ALSA api. You can use arecord as a reference.
The system (mine anyway) somehow remembers the "from" setting between invocations of arecord, even though the item in the Recording tab comes and goes.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I want to play a video of some type/format in my c++ program, i have installed Allegro 4.2.2 and Allegro5 along with both MSVC10 and MSVC13, i don't want to use any other library as they are a bit difficult to understand, if there is an easier way then tell me else tell me how to accomplish this task with Allegro?
As of Allegro5.1, there is a video
addon (it is not available in
5.0).
There is an
example
included in the allegro5 repository demonstrating how to use it.
The general gist is:
Invoke al_init_video_addon
Open the video with al_open_video
Start the video with al_start_video
Get the current frame as a bitmap with al_get_video_frame
Draw that bitmap with the usual bitmap drawing functions (al_draw_*_bitmap)
Repeat 4-5 during your game loop, then invoke al_close_video when you are done.
In the example they use al_draw_scaled_bitmap to scale the bitmap to the
screen; just take a look at the comments.
Note that you will need to link the video addon when linking your program
(-lallegro_video).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Friends I read that many windows applications like Firefox browser are written in C++. So I decided to learn C++and learnt many concepts of object oriented programming. But all I can do now is simply make console program that runs in a command prompt screen with white text in black background. How can I create graphics and gui for my software. Also I see in installation directory that program fines has many different files. How can I work with many files and create a real life windows software (hey I'm not asking you how to code Microsoft office or so... Just some simple application)
Could you give me an idea how a program like Google chrome is made
You need a framework, because you need to communicate with the operating system. This also means your application will be platform dependent.
IMHO the best start is to skip learning (the ugly) Windows API and learn some multiplatform framework like Qt.
With Qt the start is easy. Just download Qt with Qt Creator, click "Wellcome/Examples", select any example, compile and you're just running your first graphic app!
The list of examples can be also found here http://doc.qt.io/qt-5/qtexamplesandtutorials.html which should give you an idea what you can do.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I need a custom Rich-Edit control for making a text processing application. It must be Open-Source so that I can add my own feature. The windows default Rich-Edit controls are buggy for me cause I'm using my own font ( Bangla Font ). I've used all version of windows Rich-Edit but none those works well for me.
So now I need an owner drawn Rich-Edit control which must be Open-Source and also should include all the features of windows rich edit control.
I've searched on Google but have not found any useful.
If anybody know, Please give me the website link.
Take a look at Scintilla
It's Open Source and Notepad++ uses it.
EDIT: since Scintilla isn't really made for that kind of rich edit you could download Open Office's source code and find out how they do it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm needing to do some screen layout proposals, and really like the look of the pictures used in Joel's Mercurial tutorial, example here:
http://hginit.com/01.html
Can someone enlighten me on what tool(s) will generate this kind of output?
I guess a related question would be if people have a favorite screen mock up tool? It's not a requirement for me that the mockup be "functional".
Thanks!
Mike
It looks like balsamiq to me; the Comic Sans is a dead giveaway...
Edit: I’ve used balsamiq for screen mock-ups, and it’s very good. The only downside is that it is not free. And it uses Comic sans! ;)
I agree with Sébastien, but would like to point out that Pencil might enable you to produce similar-looking mockups.
this looks like toolbar buttons used in the command line window
it took me a sec to realize you have to set the window widget's properties to display the buttons as shown to get them to show up