Home | Forums | What's new | Resources | |
Tips on this code..... |
slinga - Mar 29, 2003 |
slinga | Mar 29, 2003 | |||
Something's wrong with the edit option (it's displaying html)... Anyway, here's another quick question. How do I clear the entire screen? I can do it manually, but I'm sure there's a function I'm overlooking. system("clear"); does nothing apparently... |
vbt | Mar 29, 2003 | |||
to clear text I used "reset_vbar", I'm sure there is a better method to do that and I think there was a function to clear bitmap named something like that : slClearBitMap |
antime | Mar 29, 2003 | |||||||
Slinga, the problem with your code is the use of the postfix operators. The result of a postfix increment or decrement is the value of the expression before the operator is applied, so if cursor happens to be 6, the expression becomes
Code:
The solution is to use the prefix operators, like so:
Code:
(Disclaimer: I'm not a language lawyer, but that's how I've understood it works.) |
vreuzon | Mar 30, 2003 | |||||||
in sgl302j\DOC0A_US (I guess we use the same antime's archive), a mysterious file : PACKS.TXT, describing the text debug functions. Here's the reset_vbar part :
Code:
Slinga : Why dont you write your
Code:
|