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

From Rosetta Code
Content added Content deleted
m (category and internal link fixups)
mNo edit summary
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 [[http://rosettacode.org/Terminal_Control/Restricted_width_positional_input/With_wrapping|Terminal_Control/Restricted_width_positional_input/With_wrapping]]) for input wrapping variant.
Note: In this task input wrapping is not allowed. (See [[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|Terminal_Control/Restricted_width_positional_input/With_wrapping]].
For a similar task using a graphical user interface, see [[Graphical User Interface/Restricted width positional input/No wrapping]].


[[Category:Terminal control]]
[[Category:Terminal control]]

Revision as of 23:37, 7 April 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 Terminal control/Restricted width positional input/With wrapping) for input wrapping variant.

For a similar task using a graphical user interface, see Graphical User Interface/Restricted width positional input/No wrapping.