Good afternoon
I wanted to ask if there is any command to clear the console and how to use it in a script of rombot?
Clean console command.
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
Clean console command.
If you think something is right just because everyone else believes,you're not thinking.
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Clean console command.
Code: Select all
clearScreen()
At the script prompt, you can enter "clear" to clear the screen:
Code: Select all
Script> clear
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
Re: Clean console command.
Hello, good evening
I have an error when making clearScreen()
I have an error when making clearScreen()
If you think something is right just because everyone else believes,you're not thinking.
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Clean console command.
I see. Try this:
Then clear the screen by using _clear().
Code: Select all
function _clear()
local _, _, x, y = getConsoleAttributes();
for j = 1, y do
printf(string.rep(' ', x));
end
clearScreen();
end
- Lamkefyned
- Posts: 348
- Joined: Thu May 23, 2013 11:38 am
- Location: Spain
Re: Clean console command.
Thank you it worked
If you think something is right just because everyone else believes,you're not thinking.
Who is online
Users browsing this forum: No registered users and 0 guests