![]() |
|
#1
|
||||
|
||||
Print a character without moving cursoris it possible to print a character without moving the cursor to the next position ???
i am trying to create a fullscreen-BOX, but as soon as the bottom-right character is printed the screen shifts downward by one line. help me out guys !!! |
||||
|
#2
|
|||
|
|||
|
Quote:
What compiler/operating system? Many windows compilers have a function called getch(), prototyped typically in <conio.h>. This is a non-standard C library function, and its use is may not be portable to other platforms. For linux/unix platforms, here is an example of an equivalent function that works for me: http://www.gidforums.com/t-3386.html Regards, Dave |
|
#3
|
||||
|
||||
|
Quote:
the complier that i am using is Turbo C++ version 3.0 and it's DOS based complier the function getch() that you are refering to is available in my complier but it is used for getting an INPUT from console [i.e. it simply gets a character from console but does not echo to the screen] but i want to OUTPUT a character to console getch() cannot solve my purpose |
|
#4
|
|||
|
|||
|
Quote:
I'm sorry, I didn't read your request very carefully. Somehow my poor little peanut-brain registered a request to get user input without echoing it. I don't know of any standard (or non-standard, for that matter) output functions useable with Turbo C++ that don't advance the cursor. Pre-Windows NT operating systems allowed direct writing to console memory, but modern operating systems vigorously guard against such actions. Regards, Dave |
|
#5
|
||||
|
||||
|
Quote:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#6
|
|||
|
|||
|
Quote:
Sorry, Walt, the output functions (printf(), putchar(), etc) always result in an incremented cursor. CPP / C++ / C Code:
(I used the for(;;); stuff to make sure that something else, like getchar(), wouldn't be suspected of affecting the output.) Regards, Dave |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Conversion: Binary, Decimal, Hexadecimal | WaltP | C Programming Language | 1 | 10-May-2006 07:49 |
| Can someone check to see if my program is correct | tommy69 | C Programming Language | 2 | 12-Apr-2004 21:36 |
| Guestbook error | BobbyDouglas | Web Design Forum | 1 | 16-Oct-2003 23:17 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The