For my InZernet project, I am creating a mail server and I need @<domain> at the right of the screen.
The only problem is that when (for say) the username goes over 10 characters it overwrites the @<domain> at the right side of the screen
Any help will be much appreciated!
Add @test.com to end of input?
Started by lifewcody, Feb 03 2015 06:07 AM
6 replies to this topic
#1
Posted 03 February 2015 - 06:07 AM
#3
#4
Posted 03 February 2015 - 07:26 AM
I suppose one way to achieve that would be to record the current terminal, define a window with dimensions according to how you want your "textbox", redirect to that, call read(), then redirect back to the original terminal and discard the window.
#5
Posted 03 February 2015 - 07:29 AM
Bomb Bloke, on 03 February 2015 - 07:26 AM, said:
I suppose one way to achieve that would be to record the current terminal, define a window with dimensions according to how you want your "textbox", redirect to that, call read(), then redirect back to the original terminal and discard the window.
Ah! That is a brilliant idea! Thank you
#6
Posted 08 February 2015 - 10:13 AM
You could do this, string.sub(str, 1, 10).
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











