I've recently installed Slackware 9.0, and I set the keyboard to danish (dk-latin1, I think), but in X, the keymap is still English. How do I change the X keymap?
Thanks
Skarr
Type: Posts; User: Skarr
I've recently installed Slackware 9.0, and I set the keyboard to danish (dk-latin1, I think), but in X, the keymap is still English. How do I change the X keymap?
Thanks
Skarr
A colour is produced by light hitting a surface. When there is no light, there is no colour (that is black). When all is light, you can't see the reflection, ergo that is not a colours either...
The default font for GTK (on Slackware 9.0) is very ugly. How do I change it?
I've noticed that g_signal_connect() refuses to take functions declared in classes as the callback argument. Is there a way to get around this?
Thanks
Skarr
How is X frontend programming generally done? Do you simply compile the console app with the X code into one big bulk or is there a smarter way?
Thanks
Skarr
If you want to avoid this problem on any terminal, you should make use of terminfo, so you don't try to access functionality that doesn't exist on the terminal.
Take a look at the terminfo man...
Uh, how do I check for the escape key?
Is there a way for me to check for arrow/function keys from user input. (ncurses?).
Thanks
Skarr
I know that, but if I initialize the string in main() I would have a locked size for my string. And if i read stuff from (say) a file, I won't know how big tje buffer should be.
I've been wondering: what happens to a pointer when it's passed as a parameter to a function? Why is this:
<code>
int main(void) {
char *str;
*str = 'a';
return 0;
How do I read scancode for input? (Like if someone presses backspace or one of the arrow keys). Does ncurses handle this?
Yes, but what kind of code goes in the .so libraries?
Okay, shared libraries:
The .a files in */lib makes sense - ar archives containing object files to be linked into the program making use of the library. But what is the .so files? (e.g. libc.so.6)...
Well, there's more to the project than what I posted here, but the rest of the code is irrelevant. So that's why I use a Makefile.
I'm having this problem weird compilation problem:
I try to compile the below sources, but it won't work. It says I haven't implemented the functions declared in linkedlist.h, but they're all in...
Could you post a simple Makefile where it works with gmake?
Hmm, works without the memset() call, whassit do?
I'm working on an editor (mostly to get hang of file/string handling) and I've run into this problem: When I read, say 20 bytes from a file using read(), and the file contains like 5 bytes, the...
What should I use if I have like 100 objects, and I'm don't know how many of those should be used, so I don't want to initialize immediately. I tried a pointer, but I'm not interested in another...
I have this problem:
I have a class (let us call it A). A contains a function called doit(). Every time I need to make doit() different, I have to make a subclass, and change it virtually. Is...
Yeah, but that takes out the meaning of the whole function, doesn't it?
#include <termios.h>
char inchar()
{
char c;
static struct termios o, n;
tcgetattr( STDIN_FILENO, &o );
cfmakeraw( &n );
tcsetattr( STDIN_FILENO, TCSANOW, &n );
c = getchar();
I just tested it in a program like:
#include <stdio.h>
char inchar(void);
// The function here
int main(void) {
Hi vVv
Thanks for the function you posted earlier on keypresses. It does, however only work once in my program, the rest of the function calls are just ignored. D'you know how to fix that ('cause...
I need a function just like getchar(), just returning a string. I tried writing one myself, but something went wrong, and it couldn't return the string (char *) properly.
Thanks
Skarr