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)
"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,...
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...
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 ...
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? ...
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!
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...
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?
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...
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...
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...
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...
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...
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...