After doing this, if you press the down arrow key the doubled character will stay.
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Doubled last character in Interactive Lua Prompt
Started by SuicidalSTDz, 04 May 2013 - 02:11 PMPosted 04 May 2013 - 04:11 PM
Enter text until it scrolls the line one space to the right. Now, scroll to the beginning and then scroll to the end. The last character doubles.
After doing this, if you press the down arrow key the doubled character will stay.
After doing this, if you press the down arrow key the doubled character will stay.
Posted 04 May 2013 - 05:52 PM
Yeah, I've had this before. Was too lazy to report it. Also, the letter is a ghost, doesn't affect the code.
Posted 04 May 2013 - 06:05 PM
Yeah, I know. But, it is still a bug :P/>
Posted 04 May 2013 - 07:15 PM
I know that as well. I was just giving more information on the subject, stating it is just a visual bug.Yeah, I know. But, it is still a bug :P/>
Posted 04 May 2013 - 07:57 PM
Yeah, I've had this before. Was too lazy to report it.
Exactly the same here xD
Posted 04 May 2013 - 09:25 PM
That 'bug' has been there for ages :P/>
Posted 04 May 2013 - 09:34 PM
If it has been there for ages, why has it not been fixed yet? :P/>
Posted 05 May 2013 - 01:41 AM
Posted 06 May 2013 - 11:03 AM
That. Temporary solution:
Spoiler
Go to bios.lua, find read(), and insert a whitespace into every term.write (two of them maybe?).Sorry, no line numbers, but what is Ctrl+F for?
Posted 06 May 2013 - 11:10 AM
CTRL+F is the shortcut for find. It works in most web browsers and text editors.That. Temporary solution:Spoiler
Go to bios.lua, find read(), and insert a whitespace into every term.write (two of them maybe?).
Sorry, no line numbers, but what is Ctrl+F for?
Posted 06 May 2013 - 11:45 AM
Umm… Yeah, I know that. Said it because I gave no line numbers (since they're changing with every new version), but you can find "function read" with Ctrl+F…CTRL+F is the shortcut for find. It works in most web browsers and text editors.
Posted 06 May 2013 - 12:01 PM
You added a question mark to it and it was worded like a question so I assumed you were wondering what CTRL+F was.Umm… Yeah, I know that. Said it because I gave no line numbers (since they're changing with every new version), but you can find "function read" with Ctrl+F…CTRL+F is the shortcut for find. It works in most web browsers and text editors.
Posted 06 May 2013 - 12:41 PM
http://www.computerc...post__p__114606That. Temporary solution:Spoiler
Go to bios.lua, find read(), and insert a whitespace into every term.write (two of them maybe?).
Sorry, no line numbers, but what is Ctrl+F for?
:P/>
anyway, here is the new redraw function:
local function redraw( _sCustomReplaceChar )
local nScroll = 0
if sx + nPos >= w then
nScroll = (sx + nPos) - w
end
term.setCursorPos( sx, sy )
local sReplace = _sCustomReplaceChar or _sReplaceChar
if sReplace then
term.write( string.rep(sReplace, string.len(sLine) - nScroll).." ")
else
term.write( string.sub( sLine, nScroll + 1 ).." ")
end
term.setCursorPos( sx + nPos - nScroll, sy )
end
around line 228Posted 07 May 2013 - 06:53 PM
He was saying it in an implicative way.You added a question mark to it and it was worded like a question so I assumed you were wondering what CTRL+F was.Umm… Yeah, I know that. Said it because I gave no line numbers (since they're changing with every new version), but you can find "function read" with Ctrl+F…CTRL+F is the shortcut for find. It works in most web browsers and text editors.
Posted 08 May 2013 - 01:43 AM
When I see this bug I always think I made typo. Luckily it's a ghost character in the way that it will not be passed to the function