Is there any way to limit the length of the input field or automatically transfer cursor to the next line when approaching the edge of the screen in the function "read()"?
Read() and limit length of the input field
Started by VaNnOrus, Nov 26 2013 09:30 AM
5 replies to this topic
#1
Posted 26 November 2013 - 09:30 AM
#2
Posted 26 November 2013 - 09:33 AM
Not in standard read() function. You can however write your own version of read function that does exactly what you need.
If you take a look into bios.lua file you can find definition of standard read that you can edit if you don't want to write it from scratch.
If you take a look into bios.lua file you can find definition of standard read that you can edit if you don't want to write it from scratch.
#3
Posted 26 November 2013 - 11:49 AM
I believe there is an api that does this.
#4
Posted 26 November 2013 - 08:56 PM
wojbie, on 26 November 2013 - 09:33 AM, said:
Not in standard read() function. You can however write your own version of read function that does exactly what you need. If you take a look into bios.lua file you can find definition of standard read that you can edit if you don't want to write it from scratch.
I will write here when I'll get the desired result :3
Edited by VaNnOrus, 26 November 2013 - 08:58 PM.
#5
Posted 26 November 2013 - 10:05 PM
VaNnOrus, on 26 November 2013 - 08:56 PM, said:
Oh, thanx, I try rewrite this function 
I will write here when I'll get the desired result :3
I will write here when I'll get the desired result :3
#6
Posted 30 November 2013 - 02:33 AM
theoriginalbit, on 26 November 2013 - 10:05 PM, said:
If you are feeling exceptionally lazy I do have a working implementation. Its a rewrite I performed of the default `read` but more efficient, and more capabilities, best of all without breaking default usages. You can find more information about it in my programs thread under code snippets.
-- UPD
that's what I did, but have not yet written walking the cursor line by line
Edited by VaNnOrus, 30 November 2013 - 03:45 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











