Jump to content




Doubled last character in Interactive Lua Prompt


  • You cannot reply to this topic
14 replies to this topic

#1 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 04 May 2013 - 03: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.

Attached Thumbnails

  • Attached Image: Capture.PNG
  • Attached Image: Capture1.PNG


#2 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 04 May 2013 - 04: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.

#3 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 04 May 2013 - 05:05 PM

Yeah, I know. But, it is still a bug :P

#4 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 04 May 2013 - 06:15 PM

View PostSuicidalSTDz, on 04 May 2013 - 05:05 PM, said:

Yeah, I know. But, it is still a bug :P
I know that as well. I was just giving more information on the subject, stating it is just a visual bug.

#5 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 04 May 2013 - 06:57 PM

View PostShnupbups100, on 04 May 2013 - 04:52 PM, said:

Yeah, I've had this before. Was too lazy to report it.

Exactly the same here xD

#6 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 04 May 2013 - 08:25 PM

That 'bug' has been there for ages :P

#7 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 04 May 2013 - 08:34 PM

If it has been there for ages, why has it not been fixed yet? :P

#8 Smiley43210

  • Members
  • 204 posts

Posted 05 May 2013 - 12:41 AM

This? http://www.computerc...-function-read/

#9 LBPHacker

  • Members
  • 766 posts
  • LocationBudapest, Hungary

Posted 06 May 2013 - 10:03 AM

View PostSmiley43210, on 05 May 2013 - 12:41 AM, said:

That. Temporary solution:
Spoiler


#10 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 06 May 2013 - 10:10 AM

View PostLBPHacker, on 06 May 2013 - 10:03 AM, said:

View PostSmiley43210, on 05 May 2013 - 12:41 AM, said:

That. Temporary solution:
Spoiler
CTRL+F is the shortcut for find. It works in most web browsers and text editors.

#11 LBPHacker

  • Members
  • 766 posts
  • LocationBudapest, Hungary

Posted 06 May 2013 - 10:45 AM

View PostSammich Lord, on 06 May 2013 - 10:10 AM, said:

CTRL+F is the shortcut for find. It works in most web browsers and text editors.
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...

#12 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 06 May 2013 - 11:01 AM

View PostLBPHacker, on 06 May 2013 - 10:45 AM, said:

View PostSammich Lord, on 06 May 2013 - 10:10 AM, said:

CTRL+F is the shortcut for find. It works in most web browsers and text editors.
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...
You added a question mark to it and it was worded like a question so I assumed you were wondering what CTRL+F was.

#13 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 06 May 2013 - 11:41 AM

View PostLBPHacker, on 06 May 2013 - 10:03 AM, said:

That. Temporary solution:
Spoiler
http://www.computerc...post__p__114606
: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 228

#14 Smiley43210

  • Members
  • 204 posts

Posted 07 May 2013 - 05:53 PM

View PostSammich Lord, on 06 May 2013 - 11:01 AM, said:

View PostLBPHacker, on 06 May 2013 - 10:45 AM, said:

View PostSammich Lord, on 06 May 2013 - 10:10 AM, said:

CTRL+F is the shortcut for find. It works in most web browsers and text editors.
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...
You added a question mark to it and it was worded like a question so I assumed you were wondering what CTRL+F was.
He was saying it in an implicative way.

#15 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 08 May 2013 - 12: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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users