Ascii Graphics??, help

Discussion in 'Mac Programming' started by Quboid, Dec 15, 2006.

  1. macrumors 6502

    Joined:
    Oct 16, 2006
    Location:
    everywhere
    #1
    I am about to do my last progmramming assignment and last project for this semester. I making a calculator and i want to use the ascii codes the build the body for it. I can't seem to google the right code table, anyone have an idea. I am looking for codes that would generate a block on the screen through the printf function.
     
  2. macrumors regular

    Joined:
    Nov 23, 2006
    #2
    I'm not exactly sure what your asking... I think you need to format it your self with printf statements...
     
  3. thread starter macrumors 6502

    Joined:
    Oct 16, 2006
    Location:
    everywhere
    #3
    i baasically need the ascii code that would print a square for me.
     
  4. macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #4
    http://www.asciitable.com/

    See the extended section
     
  5. thread starter macrumors 6502

    Joined:
    Oct 16, 2006
    Location:
    everywhere
    #5
    Thanks guys!!!!, hey, is it even possible to use the gotoxy operator and gechar, gethe etc in Xcode?, the absence of the conio.h library is killing me. I tried curses.h but it still wont work. Any help?, i really need it this time.
     
  6. macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #6
    I thought OS X uses ncurses?
     
  7. thread starter macrumors 6502

    Joined:
    Oct 16, 2006
    Location:
    everywhere
    #7
    ncurses?, I am not sure. But does it allow one to use GOTOXY?
     
  8. macrumors member

    Joined:
    Jan 18, 2006
    Location:
    Finland
    #8
    Google is your friend

    In terminal (or, if you prefer, google):
    Code:
    man ncurses
    Functions that move the cursor include the word "move" or are prefixed with the letters "mv". Conio gotoxy(x,y) is ncurses move(y,x).

    Good luck :)
     

Share This Page