Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Pages:
1-
fixed console areas in c
1
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.
2
Name:
Anonymous
2009-02-14 16:13
(n)curses
3
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.
4
Name:
Anonymous
2009-02-14 16:25
not possible with pure c (i.e. depends on the console in question)
5
Name:
Anonymous
2009-02-14 17:09
Bring me the Amulet and I'll tell you.--More--
----------
|........| --------------- ------------
|........| |......<......| |..........|
|.{......-#########|......{......| ##-..........|
-.-------- #..%...........| # |..........|# ---------
# #|.............| ### |......(...$######-^......|
# #|.............| # |.....)....|# |^..{.>.|
# #-------.-------######...........|# |.......|
# ####################### ------------######-.......|
# # # # # |.......|
# ### # ## # 0#####......$.|
### # ------# -.-----# ---------
# ### |...f|# |.....|#
-.----- #
##..@...#
|.*...|#
|.....|### # |....| |......#
|.....+# ### ------ |.....|
|.....| # -------
|.$.^..###
-------
6
Name:
Anonymous
2009-02-14 17:38
GetConsoleBuffer or a variant
7
Name:
Anonymous
2009-02-14 20:20
>>1
It's platform-specific.
8
Name:
Anonymous
2009-02-14 20:30
>>1
http://www.opengroup.org/onlinepubs/007908799/cursesix.html
9
Name:
Anonymous
2009-02-14 20:32
ncurses
10
Name:
Anonymous
2009-02-15 12:16
>>5
I died a lot in that game.
11
Name:
Anonymous
2009-02-15 12:22
newwin
12
Name:
2010-09-08 13:38