Go to advanced search

by davenull
Tue Apr 05, 2016 9:54 am
Forum: OpenVG
Topic: New to graphics programming - what to learn?
Replies: 13
Views: 17619

Re: New to graphics programming - what to learn?

ah, I see!
git is already installed, so I'll try it ASAP (have some WiFi issues FTM unfortunately since a couple of weeks, with all my WiFi sticks at my Raspi)
by davenull
Tue Apr 05, 2016 9:01 am
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

"Linux can do what you want." is actually not very helpful, so please be more detailed: how can I get the F1-F12 readings and/or special keys plus optional modifiers readings apart from a) repeatedly reading getchar and feeding that into an extra state machine which first had to be developed before,...
by davenull
Mon Apr 04, 2016 4:45 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

I gladly would, but I must be able to drop that weird terminal screen. I only want to use the plain keyboard-read functions. Of course I wouldn't need all of the key+shift+ctrl+alt combinations (that would be surely too much to ask of LINUX, and which perhaps would be possible only on really powerfu...
by davenull
Mon Apr 04, 2016 11:48 am
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

yes, it seems the screen output is somehow modified, e.g. for carriage return. But I'm not sure if this ncurses is what I really need... :-/ just getting a constant number for each available keystroke combination (F1, shift+F1, ctrl+F1, alt+F1, shift+ctrl+F1,...) would be needed, plus a chart table ...
by davenull
Mon Apr 04, 2016 11:33 am
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

now I compiled your single-line version, but there still is a special ncurses window - I need to drop that. Using printf("%s\n", str); gives no output like in a std console window, no carriage return. and when I press ENTER, it repeats the entry before (e.g., F4 key"), but not "ENTER" How to do it? ...
by davenull
Mon Apr 04, 2016 11:28 am
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

ok, I now retyped your program and it compiles, but
1) it runs in an extra window, and
2) when pressing shift+F1 it says: "Upper case letter", not "shift F1".
How can both issues be fixed?

edit: over cross posting, I'll try your new one ASAP!
by davenull
Mon Apr 04, 2016 10:44 am
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

I don't need all that extra windows stuff, I use the standard LXTerminal which is started automatically when running my program from geany, and I additionally start a openVG window for graphic purposes. I'm fine with that and I don't need and don't want more than that. Of the ncurses thing I only ne...
by davenull
Mon Apr 04, 2016 9:49 am
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

hey,
thank you, I'l try it ASAP!
the program always seems to use a special proprietary screen as it appears to me -
actually I' don't want that, I just want the stdio screen and keyboard for printf and getchar. Plus the reading procedure for function/special keys, of course.
Is that possible, too?
by davenull
Mon Apr 04, 2016 9:03 am
Forum: OpenVG
Topic: New to graphics programming - what to learn?
Replies: 13
Views: 17619

Re: New to graphics programming - what to learn?

how to download and install it then on Raspbian Jessie?
by davenull
Mon Apr 04, 2016 7:38 am
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

so could someone make the ncurses demo program run with his Raspbian Jessie?

To me it does not work.
Or what is faulty?
by davenull
Sun Apr 03, 2016 8:07 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

ok, now it compiles and runs, but there is no window moving as described here:

http://www.cyberciti.biz/faq/linux-inst ... os-fedora/

so it does not work!

is there a better, reasonable demo program and perhaps a tutorial?
by davenull
Sun Apr 03, 2016 8:05 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

I want to run the example program: /* CURWIN1.C ========= (c) Copyright Paul Griffiths 1999 Email: mail@paulgriffiths.net Moving windows with ncurses. */ #include <stdlib.h> #include <stdio.h> #include <curses.h> int main(void) { WINDOW * mainwin, * childwin; int ch; /* Set the dimensions and initia...
by davenull
Sun Apr 03, 2016 8:03 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

what's wrong?
by davenull
Sun Apr 03, 2016 8:01 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

g++ -Wall -pthread -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -o "ncursestest001" "ncursestest001.c" -lshapes -L/opt/vc/lib -lOpenVG -lEGL -lwiringPi -lrt -lpigpio (im Verzeichnis: /home/pi/programs/test/ncurses) /tmp/ccQI9RaK.o: In functi...
by davenull
Sun Apr 03, 2016 7:58 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

ok, done. ncursestest0001.c: /* CURWIN1.C ========= (c) Copyright Paul Griffiths 1999 Email: mail@paulgriffiths.net Moving windows with ncurses. */ #include <stdlib.h> #include <stdio.h> #include <curses.h> int main(void) { WINDOW * mainwin, * childwin; int ch; /* Set the dimensions and initial posi...
by davenull
Sun Apr 03, 2016 7:44 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

now what please, in detail? commands to copy and paste, please! pi@raspberrypi:~ $ sudo apt-get install ncurses ncurses-dev Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Note, selecting 'libncurses5-dev' instead of 'ncurses-de...
by davenull
Sun Apr 03, 2016 7:42 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

what to do to install the correct lib?
by davenull
Sun Apr 03, 2016 7:41 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

how to?
by davenull
Sun Apr 03, 2016 7:38 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

pi@raspberrypi:~ $ sudo apt-get install ncurses ncurses-dev Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Note, selecting 'libncurses5-dev' instead of 'ncurses-dev' Package ncurses is not available, but is referred to by anot...
by davenull
Sun Apr 03, 2016 7:36 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

pi@raspberrypi:~ $ sudo apt-get install ncurses ncurses-dev Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Note, selecting 'libncurses5-dev' instead of 'ncurses-dev' Package ncurses is not available, but is referred to by anot...
by davenull
Sun Apr 03, 2016 7:24 pm
Forum: Beginners
Topic: Wifi issues: slow or no Connection to Router
Replies: 13
Views: 1792

Re: Wifi issues: slow or no Connection to Router

it's really a
still can't get a reasonable internet connection (iceweasel) yet by my Raspi 2 via WiFi, by no WiFi stick.
ping router IP is fine!!

Why can't that be fixed by the Raspi developers?

On my vicinated Windows PC everything runs quick and smooth!
by davenull
Sun Apr 03, 2016 7:20 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

how can I check if it's already installed and which is the current version?
by davenull
Sun Apr 03, 2016 6:38 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

OMG, no, never! I need a simple way to get the keyboard scan codes, anything else is rediculous to be coded. So back to start: I need a lib for keyboard simple key and special key reading from a C program which generates simple but unique numbers which represent all possible specified key strokes, a...
by davenull
Sun Apr 03, 2016 6:25 pm
Forum: C/C++
Topic: read keyboard keypress: function keys
Replies: 78
Views: 14713

Re: read keyboard keypress: function keys

I need it to use it from my C program! pseudocode: i=getkeycode(); if(i==27) {...} // ESC: return NULL, terminate program (quit) else if(i==64031) {...} // F1: switch openVG window 1 else if(i==64032) {...} // F2: switch openVG window 2 else if(i==64033) {...} // F3: switch openVG window 3 else if(i...

Go to advanced search