Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

fixed console areas in c

Name: Anonymous 2009-02-14 16:12

how do i define a fixed area in the console, sort of like a canvas which is to be updated, modified. i'm looking for an alternative to just printing everything sequentially because that clutters the console history.

Name: Anonymous 2009-02-14 16:13

(n)curses

Name: Anonymous 2009-02-14 16:17

#include <unistd.h>

Put that at the top.

for(;;) fork();

Just add that before you print to the console and it will write over what you had previously.

Name: Anonymous 2009-02-14 16:25

not possible with pure c (i.e. depends on the console in question)

Name: Anonymous 2009-02-14 17:09

Bring me the Amulet and I'll tell you.--More--

           ----------
           |........|         ---------------      ------------
           |........|         |......<......|      |..........|
           |.{......-#########|......{......|    ##-..........|
           -.--------        #..%...........|    # |..........|#     ---------
            #                #|.............|  ### |......(...$######-^......|
            #                #|.............|  #   |.....)....|#     |^..{.>.|
            #                #-------.-------######...........|#     |.......|
            #             #######################  ------------######-.......|
            #             #     #     #      #                       |.......|
            #           ###     #     ##     #                 0#####......$.|
            ###         # ------#     -.-----#                       ---------
              #       ### |...f|#     |.....|#
             -.-----  # ##..@...#     |.*...|#
             |.....|### # |....|      |......#
             |.....+# ### ------      |.....|
             |.....|  #               -------
             |.$.^..###
             -------

Name: Anonymous 2009-02-14 17:38

GetConsoleBuffer or a variant

Name: Anonymous 2009-02-14 20:20

>>1
It's platform-specific.

Name: Anonymous 2009-02-14 20:30

Name: Anonymous 2009-02-14 20:32

ncurses

Name: Anonymous 2009-02-15 12:16

>>5
I died a lot in that game.

Name: Anonymous 2009-02-15 12:22

newwin

Name: ​​​​​​​​​​ 2010-09-08 13:38

Name: Anonymous 2010-12-24 2:24

Don't change these.
Name: Email:
Entire Thread Thread List