Search:

Type: Posts; User: Skarr

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,637

    Keyboard map in Slackware

    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
  2. Thread: it's not colours

    by Skarr
    Replies
    0
    Views
    1,357

    it's not colours

    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...
  3. Replies
    0
    Views
    1,627

    Ugly fonts in GTK

    The default font for GTK (on Slackware 9.0) is very ugly. How do I change it?
  4. Replies
    1
    Views
    1,393

    GTK+ 2.0 with C++

    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
  5. Replies
    1
    Views
    2,302

    Frontend programming

    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
  6. Replies
    6
    Views
    1,999

    If you want to avoid this problem on any...

    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...
  7. Replies
    2
    Views
    1,834

    Uh, how do I check for the escape key?

    Uh, how do I check for the escape key?
  8. Replies
    2
    Views
    1,834

    Arrow and function keys

    Is there a way for me to check for arrow/function keys from user input. (ncurses?).

    Thanks
    Skarr
  9. Replies
    2
    Views
    1,244

    Well, yeah

    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.
  10. Replies
    2
    Views
    1,244

    pointers when passed as parameters

    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;
  11. Thread: Scancodes

    by Skarr
    Replies
    0
    Views
    1,320

    Scancodes

    How do I read scancode for input? (Like if someone presses backspace or one of the arrow keys). Does ncurses handle this?
  12. Thread: .so libraries

    by Skarr
    Replies
    4
    Views
    6,999

    Yes, but what kind of code goes in the .so...

    Yes, but what kind of code goes in the .so libraries?
  13. Thread: .so libraries

    by Skarr
    Replies
    4
    Views
    6,999

    .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)...
  14. Replies
    3
    Views
    1,561

    Well, there's more to the project than what I...

    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.
  15. Replies
    3
    Views
    1,561

    Compilation problem

    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...
  16. Replies
    4
    Views
    2,596

    Could you post a simple Makefile where it works...

    Could you post a simple Makefile where it works with gmake?
  17. Replies
    1
    Views
    1,568

    Hmm, works without the memset() call, whassit do?

    Hmm, works without the memset() call, whassit do?
  18. Replies
    1
    Views
    1,568

    Reading chunks from a file

    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...
  19. Replies
    0
    Views
    1,118

    to point or not to point

    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...
  20. Replies
    1
    Views
    1,122

    thisfunction = thatfunction (?)

    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...
  21. Replies
    6
    Views
    1,632

    Yeah, but that takes out the meaning of the whole...

    Yeah, but that takes out the meaning of the whole function, doesn't it?
  22. Replies
    6
    Views
    1,632

    #include char inchar() { char...

    #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();
  23. Replies
    6
    Views
    1,632

    I just tested it in a program like: #include...

    I just tested it in a program like:

    #include <stdio.h>

    char inchar(void);

    // The function here

    int main(void) {
  24. Replies
    6
    Views
    1,632

    vVv - Keypresses (again)

    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...
  25. Thread: getstring

    by Skarr
    Replies
    1
    Views
    2,128

    getstring

    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
Results 1 to 25 of 29
Page 1 of 2 1 2