Terminal control/Restricted width positional input/No wrapping: Difference between revisions

From Rosetta Code
Content added Content deleted
m (see also)
Line 8: Line 8:
For the purpose of this task, obtain input from the user, showing data entry at row 3, column 5, with input width restricted to a maximum of 8 characters.
For the purpose of this task, obtain input from the user, showing data entry at row 3, column 5, with input width restricted to a maximum of 8 characters.


Note: In this task input wrapping is not allowed. (See Terminal Control/Restrict width positional input/With wrapping) for input wrapping variant
Note: In this task input wrapping is not allowed. (See [[http://rosettacode.org/Terminal_Control/Restricted_width positional_input/With_wrapping]]) for input wrapping variant.

For a similar task using a graphical user interface, see [[http://rosettacode.org/Graphical_User_Interface/Restricted_width_positional_input/No_wrapping]].


[[Category:Terminal Control]]
[[Category:Terminal Control]]

Revision as of 16:49, 10 February 2013

Terminal control/Restricted width positional input/No wrapping is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Create a routine to obtain data entry using a specific place on the terminal screen. Data entry fields should be restricted to a specific length, and it should not be possible for the cursor to move beyond the input length.

The routine should accept parameters for row number, column number and input length, and should obtain a string value entered by the user.

For the purpose of this task, obtain input from the user, showing data entry at row 3, column 5, with input width restricted to a maximum of 8 characters.

Note: In this task input wrapping is not allowed. (See [positional_input/With_wrapping]) for input wrapping variant.

For a similar task using a graphical user interface, see [[1]].