1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Ascii Graphics??, help

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

  1. macrumors 6502

    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

    I'm not exactly sure what your asking... I think you need to format it your self with printf statements...
  3. macrumors 6502

    i baasically need the ascii code that would print a square for me.
  4. macrumors 603



    See the extended section
  5. macrumors 6502

    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


    I thought OS X uses ncurses?
  7. macrumors 6502

    ncurses?, I am not sure. But does it allow one to use GOTOXY?
  8. macrumors member

    Google is your friend

    In terminal (or, if you prefer, google):
    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