This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
BytePointer's profile picture

Multiline text input?

Started by BytePointer, 20 June 2014 - 04:16 AM
BytePointer #1
Posted 20 June 2014 - 06:16 AM
Hello CCF,

I'm making a QuickTweet program for ComputerCraft that uses the Twitter REST API 1.1 to quickly post tweets from a Minecraft computer.
The only problem I'm facing right now is the fact that I can't make multiline text boxes. I want my users to be able to edit new Tweets with
the ability to edit multi-line. Right now, using read() or term.read() results in a one-line text input, and when the user presses Enter, the
input is just submitted. This is not what I want.

Long story short…

I need to be able to create multi-line text inputs, or 'text areas'

Thanks!
(also sorry if it's long, I wanted to get my point out)

– Nullbyte
Edited on 20 June 2014 - 04:24 AM
BytePointer #2
Posted 20 June 2014 - 06:45 AM
Anyone?
theoriginalbit #3
Posted 20 June 2014 - 06:51 AM
don't be so impatient. people will answer your question when they answer you question. if you post your attempts at doing this, and any relevant errors its more likely going to give you more useful help too. the amount off effort you put forth is the same to how much you will receive.
CometWolf #4
Posted 20 June 2014 - 06:58 AM
He did post his attempt at doing it, which ofcourse won't cause any errors, but it won't really work either. You just have to create your own read function, which switches lines on arrow up or down or when the cursor is at the end of the current line.
Bomb Bloke #5
Posted 20 June 2014 - 07:48 AM
Speaking of, the source for the original read function is in lua.bios.
BytePointer #6
Posted 20 June 2014 - 10:30 AM
assets/lua/bios.lua?
Ah, yes.
Thanks for the help guys, the arrow thing was an idea.